Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

Creating Featured posts - endwhile not working?


 
Prev Previous Post   Next Post Next
  #1  
Old Apr 6, 2013, 06:22 PM
munchy_cool
 
14 posts · Mar 2013
Creating Featured posts - endwhile not working?

I am adding the below code to my index.php to retrive 3 posts from the Featured category but it does'nt seem to work and gets only 1 post and displays endwhile below it, can anyone help?

<div id=”featured”>
<?php
query_posts(‘posts_per_page=3&cat=301′);
if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<h2><a href=”<?php the_permalink(); ?>”><?php the_title(); ?></a></h2>

<?php endwhile;?>

<?php wp_reset_query(); ?>
</div>
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Featured Image Now Not Working On Any New Posts After Upgrade anpbaystate New Versions, & Updating 2 Jan 20, 2012 06:22 PM
Featured Posts plugin evripidis Plugins & Atahualpa 1 Aug 5, 2009 09:31 PM
How to create a homepage with links to featured posts scrubbs Post-Kicker, -Byline & -Footer 9 May 31, 2009 06:22 PM
Featured posts in horizontal bar 1 technstuff Header configuration & styling 1 Feb 3, 2009 04:11 AM


All times are GMT -6. The time now is 01:33 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.