Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

[SOLVED] Removing a Post from the Recent Posts Category


  #1  
Old Mar 12, 2010, 08:46 AM
Chloe
 
54 posts · Dec 2009
Hello,

Does anyone know if there is a way to remove a post from the recent post category, without deleting it? (I have a post that's really a news item but it's showing up in the recent post category.) www.womenscycling.ca/blog

Thanks in advance for your help.

Chloe
  #2  
Old Mar 12, 2010, 02:47 PM
juggledad's Avatar
juggledad
 
23,667 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
You will either have to alter the posts date or edit the post to skip the specific post.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Mar 17, 2010, 11:50 AM
Chloe
 
54 posts · Dec 2009
Hi,

Because it's a "news" post I don't want to change the time stamp. Can you tell me what you mean by "edit the post to skip the specific post"?

Thanks for your help,
Chloe
  #4  
Old Mar 17, 2010, 01:06 PM
Chloe
 
54 posts · Dec 2009
I found the answer in an older posting by Flynn

Get PHP widget and put this code in:

<ul>
<?php
$recentPosts = new WP_Query();
$recentPosts->query('showposts=5&cat=-XX,-YY,-ZZ');
?>
<?php while ($recentPosts->have_posts()) : $recentPosts->the_post(); ?>
<li><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></li>
<?php endwhile; ?>
</ul>

"showposts" is the number of posts you want to show and -XX,-YY,-ZZ are the categories you want excluded.

Thanks Flynn

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Exclude category from Recent Posts in sidebar paulae Sidebars & Widgets 17 Apr 9, 2013 08:34 AM
[SOLVED] Recent posts of same category, on single post pages GeoParadise Atahualpa 3 Wordpress theme 10 Apr 19, 2010 08:54 AM
[SOLVED] Removing Time Stamp, Comments and category from post JorgePerez Comments, trackbacks & pings 6 Nov 29, 2009 01:42 PM
[SOLVED] removing sticky post from category page creativeliza Post-Kicker, -Byline & -Footer 10 Nov 10, 2009 03:56 AM
More! I want more! (recent posts in sidebar) paulae Sidebars & Widgets 0 Apr 9, 2009 08:43 PM


All times are GMT -6. The time now is 10:50 AM.


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