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 » Atahualpa 3 Wordpress theme » Center area post/pages »

PHP code issue while showing posts from a certain category


 
Prev Previous Post   Next Post Next
  #1  
Old Mar 29, 2011, 02:43 AM
sradhey
 
9 posts · Aug 2010
PHP code issue while showing posts from a certain category

I am using Content ABOVE the LOOP area to show some posts from certain categories.
I am using the following code to show 5 posts from category 3:

<?php query_posts('cat=3&showposts=5'); ?>
<ul>
<?php while (have_posts()) : the_post(); ?>
<li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
<?php endwhile;?>
</ul>

It works perfectly but then the same output is shown IN THE LOOP as well.
I want IN THE LOOP to display all the rest of the categories (everything except category with id 3).

How do I do this ?

Last edited by juggledad; Mar 29, 2011 at 04:39 AM. Reason: spelling
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sidebar Issue-Recent Posts and Meta showing up in Sidebar,Should Only be Links sdchoboken Atahualpa 3 Wordpress theme 1 Jul 13, 2010 06:27 PM
[SOLVED] Images showing html code wrapped around photo in Posts (pages are fine) - Pa gungo Atahualpa 3 Wordpress theme 7 Jan 4, 2010 03:20 AM
[SOLVED] Images showing html code wrapped around photo in Posts (pages are fine) gungo Atahualpa 3 Wordpress theme 2 Jan 2, 2010 06:43 AM
issue: blank Central Panel - PHP code options stored with an \ ssokolenko New Versions, & Updating 3 Sep 15, 2009 05:29 PM
Posts showing up twice on category pages? michiganbasketball Atahualpa 3 Wordpress theme 1 Mar 12, 2009 04:56 PM


All times are GMT -6. The time now is 01:52 AM.


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