iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Syndication and Social Media Discussion Forum Got a favorite blog, podcast or otherwise syndicated site? Let eveybody else in on it. Have some questions, comments, ideas or concerns about how to more effectively use blogs, syndication and social media for your business/pleasure? Let's chat about those too.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-14-2008, 11:09 PM
WebProWorld Pro
 
Join Date: Oct 2005
Location: Belgium
Posts: 215
Gert Leroy RepRank 0
Default wordpress: display all posts in the sidebar from 1 specific category

wordpress:
i'm looking for a plugin/widget that displays in the sidebar all the posts from a specific category. Something like the "recent posts" widget, but for a specific category, independent of the date.

thanks !
Reply With Quote
  #2 (permalink)  
Old 05-16-2008, 11:27 AM
incrediblehelp's Avatar
WebProWorld 1,000+ Club
WebProWorld MVP
 
Join Date: Jan 2004
Location: Live in Cincy Now
Posts: 7,573
incrediblehelp RepRank 4incrediblehelp RepRank 4incrediblehelp RepRank 4incrediblehelp RepRank 4incrediblehelp RepRank 4
Default Re: wordpress: display all posts in the sidebar from 1 specific category

I dont understand. So right now certain category pages on your blog has a different sidebar?
Reply With Quote
  #3 (permalink)  
Old 05-16-2008, 11:34 AM
WebProWorld Pro
 
Join Date: Oct 2005
Location: Belgium
Posts: 215
Gert Leroy RepRank 0
Default Re: wordpress: display all posts in the sidebar from 1 specific category

well,
i want to display all the posts from a specific category in the sidebar.

that means: displaying the title of the posts, just like the "recent posts" widget.

i'm asking this because for a certain site i'm using wordpress as a CMS and not as a blog.
SO, instead of having a sidebarwidget that displays all the categories (which is very blog-like) i would like a widget that displays all the titles (clickable off course) of 1 certain category. That would structure my site a lot better.

thanks
Reply With Quote
  #4 (permalink)  
Old 05-16-2008, 12:51 PM
WebProWorld New Member
 
Join Date: May 2008
Location: Beautiful British Columbia, Canada
Posts: 3
Simrun Media RepRank 0
Default Re: wordpress: display all posts in the sidebar from 1 specific category

Hi Gert,

I'm not sure of a plugin or a widget, but there is WordPress custom code that you can use. For example, the query_posts command. You just query the posts and then set up however you'd like the items displayed. See: Template Tags/query posts « WordPress Codex

Example:

Code:
  <?php query_posts('category_name=special_cat&showposts=10'); ?>

  <?php while (have_posts()) : the_post(); ?>
    <a href="<?php the_permalink(); ?>> <?php the_title(); ?></a><br />
  <?php endwhile;?>
This will show the title of each post as the link to the post, for the last 10 posts (each seperated by a line break) in the category named "special_cat."
Reply With Quote
  #5 (permalink)  
Old 05-17-2008, 11:46 PM
WebProWorld Pro
 
Join Date: Oct 2005
Location: Belgium
Posts: 215
Gert Leroy RepRank 0
Default Re: wordpress: display all posts in the sidebar from 1 specific category

thanks,

i have found the perfect plugin/widget here:
WordPress › Category Posts Widget « WordPress Plugins
Reply With Quote
  #6 (permalink)  
Old 05-20-2008, 05:07 PM
WebProWorld Pro
 
Join Date: Oct 2005
Location: Belgium
Posts: 215
Gert Leroy RepRank 0
Default Re: wordpress: display all posts in the sidebar from 1 specific category

thanks Simrun Media !
that query does the job indeed (if you don't use a widget and get inti the code directly)
Reply With Quote
Reply

  WebProWorld > Site Design > Syndication and Social Media Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wordpress hurting with duplicate posts? uberanimal Google Discussion Forum 5 02-07-2008 12:01 AM
WordPress.com versus WordPress.org --- at last some clarity! CCdeLF Graphics & Design Discussion Forum 1 01-16-2008 04:47 PM
New Feature: New Posts Display mike WebProWorld: Guidelines/Announcements/Suggestions 0 10-18-2007 01:24 PM
Where did the left sidebar go? bj WebProWorld: Guidelines/Announcements/Suggestions 7 08-07-2007 01:34 AM


All times are GMT -4. The time now is 04:52 PM.



Search Engine Optimization by vBSEO 3.3.0