• Resolved ajaramilllowh

    (@ajaramilllowh)


    Hi, I am attempting to use Display Posts to show an archive list of all posts in a certain category (35 total) using ASC order. However, I am experiencing the same issue as https://wordpress.org/support/topic/display-post-doesnt-work-at-more-than-10-posts/ where the plugin only uses ASC order for the first 10 posts while the rest appear to be in order of date.

    This is the shortcode I am using:
    [display-posts category=”category-name” posts_per_page=”20″ order=”ASC”]

    This problem occurs regardless of the order of parameters in the shortcode. Is there a way to do this with Display Posts?

    Thanks.

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

    (@billerickson)

    The default query settings are:
    – order = date
    – order = DESC

    When you add order=”ASC” to your shortcode, you are changing the direction of the order but not the type of ordering. It is still ordering it by date, but now it’s oldest => newest instead of newest => oldest.

    I’m guessing you want it ordered by the title of the post, in ascending order (A-Z). Try changing your shortcode to:

    [display-posts category=”category-name” posts_per_page=”20″ order=”ASC” orderby=”title”]

    Thread Starter ajaramilllowh

    (@ajaramilllowh)

    Indeed, that works. Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Parameters not working after first 10 posts’ is closed to new replies.