Topic: Thumbnails for pages

I have a page titled "Library" in my blog where I am going to post free ebooks. There will be around 20 of them. I would like them to display the same way as my "featured stories" now display... Without the slideshow and "recent articles"...
Anyone know how I can do that? http://www.21stcenturynetworker.com

Thumbs up

Re: Thumbnails for pages

originlay suggested by extatix. and modified throw wordpress codex ....

1- create a category named library and assign all your ebooks to it.
2- find the id of the page titled "library".
3- paste this lines of code into your archive.php file after the get header declaration(arras version 1.4.3.1)
4- change the page id in the code to the id of the library page. e.g ($the_query = new WP_Query('page_id=2');)
5-style the div  class box into the style sheet to your likeness. (the div grabs the content of that page called library and show it only on the archive page called library you made) .
6- add the category called library to your nave bar (not the page)..and your ready to make money...

<?php if (is_category('library")) { ?>
<div class="box">
<?php $the_query = new WP_Query('page_id=2');
while ($the_query->have_posts()) : $the_query->the_post();
$do_not_duplicate = $post->ID; 

 the_content(); 
 endwhile; 
 wp_reset_query(); ?>
</div>
<?php } else { ?>
<!--<p>if it doesn't work replay back to son_azules@yahoo.es</p>-->
<?php } ?>

Last edited by son_azules (2010-07-16 21:33:30)

we got more than what we are giving back....

Thumbs up

Re: Thumbnails for pages

Sweet, Thanks!

son_azules wrote:

originlay suggested by extatix. and modified throw wordpress codex ....

1- create a category named library and assign all your ebooks to it.
2- find the id of the page titled "library".
3- paste this lines of code into your archive.php file after the get header declaration(arras version 1.4.3.1)
4- change the page id in the code to the id of the library page. e.g ($the_query = new WP_Query('page_id=2');)
5-style the div  class box into the style sheet to your likeness. (the div grabs the content of that page called library and show it only on the archive page called library you made) .
6- add the category called library to your nave bar (not the page)..and your ready to make money...

<?php if (is_category('library")) { ?>
<div class="box">
<?php $the_query = new WP_Query('page_id=2');
while ($the_query->have_posts()) : $the_query->the_post();
$do_not_duplicate = $post->ID; 

 the_content(); 
 endwhile; 
 wp_reset_query(); ?>
</div>
<?php } else { ?>
<!--<p>if it doesn't work replay back to son_azules@yahoo.es</p>-->
<?php } ?>

Thumbs up