Support » Plugins » [Plugin: List category posts] Problem using “List Category Posts” plugin

  • I tried to use “List category posts” plugin to list posts from different categories in different places using these short codes, as advised by the plugin documentation:

    [catlist name=category-X  orderby=date numberposts=9]
    
    [catlist name=category-Y  orderby=date numberposts=9]

    The problem is it keeps showing the latest 9 posts no matter what category they belong to.

    http://wordpress.org/extend/plugins/list-category-posts/

Viewing 2 replies - 1 through 2 (of 2 total)
  • When it does something like that (show the last 9 no matter what), usually that means something’s defaulting, somewhere. Does the plugin specify whether the ‘name’ is the slug or the actual name? Whichever you’re using, did you try the other? Like, category name (seen by user) may be “cross country skiing” but the slug is ski_xctry.

    But if all you want is to show posts in category 1 in one section/column on the front page, and posts from category 2 in a another section, why not just tweak the front page’s code a little?

    ie, in section one:

    <ul class="list">
    <h2>school updates</h2>
    
    <?php $feature_post = get_posts( 'category=39&numberposts=4' ); ?>
    <?php foreach( $feature_post as $post ) : setup_postdata( $post ); ?>
    [continuing with rest of usual loop for posts]

    that shows the last four posts in category #39. then do it again for the next section you want to display:

    …get_posts( ‘category=51&numberposts=6’…

    and so on.

    Thread Starter bluebird2

    (@bluebird2)

    The site I am working on is a magazine with different issues. I want a list of articles in every issue to be listed in the introductory post. I cannot hardcode it.

    Here is a sample introductory posts:
    http://thepublicsphere.com/2009/03/issue-3-march-2009/
    http://thepublicsphere.com/2008/12/in-this-issue-2/

    I used the slugs in my short-codes not the names of the categories.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: List category posts] Problem using “List Category Posts” plugin’ is closed to new replies.