Change order of posts (reverse chronological order)

  • Author
    Posts
  • #3325313

    jjshields56
    Member

    Greetings,

    I’m putting together a travel/vacation blog and would like to show my posts in reverse chronological order.

    I have found this info that states to use the shortcode [display-posts order='ASC']. Unfortunately, this does not seem to work :-( source: https://en.support.wordpress.com/display-posts-shortcode/

    More details:
    I’m using Apostrophe 2 theme
    I’m using the free version of wordpress.com
    I created a page called ‘Blog Posts’ and on the page, I added just the text ‘[display-posts order='asc']‘
    When I view the page I see the blog posts, but they are newest to oldest order. I want them in oldest to newest order.

    Thanks for your help!!!

    The blog I need help with is belleviewprop.wordpress.com.

    #3325539

    I have found this info that states to use the shortcode [display-posts order='ASC']

    Hi there,

    In the shortcode, please try replacing the apostrophes before and after ASC with quotation marks instead.

    Example:

    [display-posts order="ASC"]

    If the issue persists, please post a link to the page where the shortcode is visible, and we can take a closer look.

    #3325548

    jjshields56
    Member

    Thanks for the info.

    However… it did NOT work :-(

    Any other ideas???

    Thanks

    #3325553

    Please post a link to the page where the shortcode is visible.

    #3325562

    jjshields56
    Member

    Here is the link for the test page.

    https://jjsrv.wordpress.com/test/

    Here is a screenshot of the page in the editor

    https://jjsrv.wordpress.com/2019/06/14/screen-shot-of-blog-page-with-shortcode/

    Thanks for all your HELP!!!!

    Much appreciated.

    #3325579

    Excellent, thank you for posting the link. I can see what’s happening.

    The shortcode only really works on single pages or single posts. It’s not intended to be used on the blog index page.

    Do posts appear as you’d like them to if you click the link below?

    https://jjsrv.wordpress.com/test/?order=asc

    #3325590

    jjshields56
    Member

    YES… It works perfectly.

    I found this last night & was my Plan B.

    I was hoping for Plan A :-)

    Thanks again for all your help!!

    Cheers,

    #3325601

    YES… It works perfectly.

    You’re welcome, glad I could help :)

    The shortcode only works on a single page or post, like the contact page.

    To modify the order of the posts on the blog page set in Design → Customize → Homepage Settings → Posts Page, a query needs to be added to the page URL.

    The same method can be used if you’d like to change the order on category or tags pages too.

    https://en.support.wordpress.com/show-your-posts-in-chronological-order/#add-a-string-to-your-urls

The topic ‘Change order of posts (reverse chronological order)’ is closed to new replies.