Shortcodes: How to Change Post Order

  • Unknown's avatar

    Hello!

    I’ve checked the support for any guides on how to reverse the order of posts and the one I found useful was using this particular short-code:

    [display-posts order="ASC"]

    However when I used it, there seems to be no change to the order. I created a separate page for the posts and it was where I applied the shortcode.

    I’m not familiar with using short code, so any help on how to do this or proceed would be very useful, thanks!

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hi there,

    if you mean the order of posts on the index page, the only possible posts order in WordPress.com blogs is a reverse chronological order (most recent post on top).
    The shortcode you printed is to display list of the posts somewhere (on a page or in a text widget…)

  • Unknown's avatar

    There is also this possibility, but I have never tried it.

  • I checked that the shortcode is working as expected. This shortcode will display your 10 least recent post titles in the page to which it is added.

    Could you link the page you have added this shortcode?

  • Unknown's avatar

    sorry about the confusion since the blog automatically listed was my primary blog which does not have problems currently.

    The blog I was referring to was this: https://simayu.wordpress.com/posts/

    I set the page attribute template to ‘default template’, and wrote the code in the main text. Sorry if I’m being naive, but I would like to know how it works and how I can use it. :)

  • Unknown's avatar

    Figured out how it works. Thanks for the help anyways!

  • Unknown's avatar

    You’ll do a favor to other WordPress.com users (including me) if you share your solution here! :)

  • The topic ‘Shortcodes: How to Change Post Order’ is closed to new replies.