show blog chronological order – code not working
-
Get my blog to show in chronological order. I’m following the instructions from wordpress here. Seems simple enough:
>>
Reverse the order by adding ?order=asc to the end of the URL: http://dailypost.wordpress.com/2014/01/?order=asc
Now you should see all the posts starting with the oldest!
>>So I created a custom URL for a test blog page – so I can make sure this works before I commit to using wordpress.
https://testsite.wordpress.com/blog/test/?order=asc
But when I hit ‘update’ the url turns into: https://testsite.wordpress.com/blog/testorderascI also tried this just with the default blog page url – same result.
The blog I need help with is: (visible only to logged in users)
-
Hi,
The URL https://dailypost.wordpress.com/2014/01/ is a dynamic archives page which displays posts for the month of January 2014, in reverse chronological order. Adding ?order=asc to the end of the URL results in the order being reversed. Doing the same thing on that site’s posts page, https://dailypost.wordpress.com/posts/ does not reverse the order.
The URL https://testsite.wordpress.com/blog/test/ is that of a static page. Neither the page with the slug ‘blog,’ nor its child page, with the slug ‘test,’ are published pages. However, even if they were adding ?order=asc to the end of their URL would not change the order of whatever they might display. That is to be appended to the URL of archives pages only. For example, it will work on category pages such as
https://dailypost.wordpress.com/category/beginner/?order=asc
and author archives pages such as
https://dailypost.wordpress.com/author/kjellre-2/?order=asc. -
-
Ah, thank you for the explanation. So if I’m reading this correctly, you’re saying there is no way to organize a blog page to show in chronological order (newest to oldest) in wordpress?
The intention is to create a series of posts that walk people through “how to” do something, starting with step one, through step last. I am writing it as I go through the experience myself. I want the first step to appear first when you click on the subtopic in the blog drop down nav. Last step to first, in reverse chronological order, isn’t a very helpful/intuitive way to walk through something like this.
Eventually a friend and I are going to co write a story, and want the chapters to display from 1 – last. Etc. Multiple reasons to have an active blog page – where there will eventually be a definitive end post – display like this.
I just want to make sure I understand that I’m being told this is not possible to do? Or is there a way to do it, but I have to pay for access to the stylesheets to modify the code there for it to function?
Or is there another, third, answer/option you could point me to somewhere in this uber overwhelming forum labyrinth?
Thanks again for your help.
-
So if I’m reading this correctly, you’re saying there is no way to organize a blog page to show in chronological order (newest to oldest) in wordpress?
Only the “Alter the Publish Date” option in the Show your Posts in Chronological Order support page actually involves changing the order of posts on the blog page.
- The “Add a String to Your URLs” only applies to archives pages.
- The “Use a Shortcode” option involves using display posts shortcode. While display posts shortcode can be used to reverse the order on the blog page, it can’t do so on the blog page. You would insert the shortcode into a static page and then you could assign that page as your blog page. Doing so won’t reproduce the style of the blog page.
- The “Create a Book-Like Structure” option might be a valid option, since you say
Eventually a friend and I are going to co write a story, and want the chapters to display from 1 – last. Etc.
but the instructions in the Write a Book support page won’t change the order of the posts in the blog page unless you alter the publish dates.
-
Correction:
While display posts shortcode can be used to reverse the order on the blog page, it can’t do so on the blog page.
Sorry, that’s obviously not what I intended to say. Meant to say:
While display posts shortcode can be used to reverse the order on the posts when displayed, it can’t do so on the blog page. Display posts shortcode may be inserted in a static page, a post, or in a text widget, but not on dynamic pages such as the blog page or archives pages. -
-
¡Ay! It seems I’m rather error prone today. I said:
You would insert the shortcode into a static page and then you could assign that page as your blog page. Doing so won’t reproduce the style of the blog page.
Not quite. You may use display posts shortcode inserted in a static page to display posts in chronological order. However, assigning that page as the blog page will change the page to a dynamic page, and consequently hide its content. What I meant to say was that you may assign a static page, with display posts shortcode customized to display the posts chronologically inserted within it, as your front page (see the Set a Static “Home” Page (Front Page) support page). However, doing so will not duplicate the style(s) of the theme’s blog page.
- The topic ‘show blog chronological order – code not working’ is closed to new replies.