WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] WP-dTree: sort posts within a category (3 posts)

  1. b-717
    Member
    Posted 5 years ago #

    Hello,

    I have running WP-dTree 3.4.1 on WP 2.6.1
    To sort posts within a category by title instead of date, I found
    http://wordpress.org/support/topic/202502
    and changed the lines 74 and 88 in wp-dtree_cat-functions.php as shown:

    //." ORDER BY ".$wpdb->posts.".post_date DESC";
    ." ORDER BY ".$wpdb->posts.".post_title ASC";

    The I deactivated the plugin an activated the plugin.

    But within a category, the posts remain sorted by date. But I want to have them sorted by title alphabetically.

    Please help.

    Greetings,
    Josef

  2. b-717
    Member
    Posted 5 years ago #

    Hello,

    I have running WP 2.6.1, and I updated WP-dTree to 3.5
    The categories are well sorted alphabetically, but within a category, the posts are sorted by date. To get them sorted alphabetically, I changed the WP-dTree settings to:

    List posts by Title Ascending
    and updated settings (and deactivated and activated the plugin).

    Bad result:
    within a category, the posts remain sorted by date.

    (good result: within the monthly archives, the posts are sorted bay date).

    What can I do? Which php-file must I change in what manner?

    Please help / thx for your help
    Josef

  3. b-717
    Member
    Posted 5 years ago #

    Problem solved as follows:
    WP-dTree 3.5 deactivated. Instead of this plugin: http://codex.wordpress.org/Alphabetizing_Posts

    Josef

Topic Closed

This topic has been closed to new replies.

About this Topic