• Resolved RestonUSE

    (@restonuse)


    Does anyone else have issues of orderby and order not working? I’ve tried the following shortcodes but they all return the exact same thing:

    (sidenote: I tried tpg posts and the orderby works. Not sure if that matters but I wanted to try another plugin to see if there was a problem across my WP installation)

    [display-posts posts_per_page=”20″ include_author=”true” include_date=”true” orderby=”date” order=”DESC”]

    [display-posts posts_per_page=”20″ include_author=”true” include_date=”true” orderby=”date” order=”ASC”]

    [display-posts posts_per_page=”20″ include_author=”true” include_date=”true” orderby=”title” order=”DESC”]

    [display-posts posts_per_page=”20″ include_author=”true” include_date=”true” orderby=”title” order=”ASC”]

    https://wordpress.org/plugins/display-posts-shortcode/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Bill Erickson

    (@billerickson)

    Those shortcodes are correctly formatted. If you aren’t seeing the order change, my guess is your theme or a plugin is modifying the the WordPress query using something like query_posts.

    You could try switching themes briefly and disabling plugins to identify the cause.

    Did you track down what was causing the issue? I am having the same problem but it is on a live site so I am a little reluctant to change themes and disable plugins.

    I’m going back to bed. Feel like a complete twit. I wasn’t awake enough to realize the posts were ordering descending instead of what I expected, ascending. More Coffee!!!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘OrderBy issues?’ is closed to new replies.