WordPress.org

Ready to get started?Download WordPress

Forums

Sub Categories Widget
[resolved] Articles list in Ascendant order (5 posts)

  1. mrengezh
    Member
    Posted 1 year ago #

    I am able to show post count in all sub-categories. But when I click the sub-category, the posts are in descendant order. How to make it in ascendant order? Thanks in advance.

    http://wordpress.org/extend/plugins/sub-categories-widget/

  2. mrengezh
    Member
    Posted 1 year ago #

    I got it. In archive.php I replace the following code:

    <?php while (have_posts()) : the_post(); ?>

    with this one:

    <?php $posts=query_posts($query_string . '&order=asc');
    while (have_posts()) : the_post(); ?>

    It works well, making sub-category widget plugin more powerful!

  3. eljkmw
    Member
    Posted 1 year ago #

    Hi there,

    Does this plugin propagate and list out posts from their sub-categories and deeper?
    Please advise. Thank you.

    Jason

  4. mrengezh
    Member
    Posted 1 year ago #

    Sorry for late response. I use this plugin because I just want to show the list of sub-categories and number of posts. Look at the following menu of the plugin, meaning it doesn't list out posts.

    Parent Category: ........[choose a parent category]
    - Use Parent Cat as Title?
    - Show Post Count?
    - Hide Empty Sub-Categories?
    - Add Parent Cat Link to Title?

  5. BC
    Member
    Plugin Author

    Posted 1 year ago #

    Glad you got it fixed. This isn't really related this plugin which is just a widget. It doesn't alter the display of the category posts but only displays a list a sub-categories for a given parent.

    I'm going to mark this are resolved since you figured it out yourself.

    Thanks for using the plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.