Is there a way to list the blogs by publication date? I’m transferring old blog from my wordpress site to Backlight and it would be great if I could have them listed my the Publication Date instead of when I add them.
Are we talking about how they’re displayed in the admin view?
@Ben will likely know more about what can be done here.
no not so much on the admin view but more on the view when clients would look at my blog page. Since I’m changing everything over to the new system I didn’t start with the oldest blog I have and work forward. On the WordPress site I have I can adjust the publish date so they appeared in that order and not the order I created them.
Hi @Roy_K, the order of posts within both the admin and within the viewed blog itself is controlled by the Post Order field of the top-level of the blog. This supports options of the creation time (Newest First, Oldest First) and Alphabetically.
I can look to add publication time into those options (Most Recently Published First, Most Recently Published Last). Does that sound like it would do what you need?
As long as that would work from the time on the Publication Date that would be perfect.
Hi @Roy_K, this has been implemented in Backlight 6.4.2. Two new options have been added to the Post Order setting when editing the top-level Blog:
- Most-recently published first
- Most-recently published last
The behaviour of these is that the posts will be ordered by availability. This is the latest of the creation time and publication date (if set). Let me know how you find that feature.
I’m not having any luck with it. I’ve reinstalled the package twice already with no luck on changing the order of the post. Even going back and changing the Publication Date.
maybe try clearing template and browser cache?
did both of those and even tried another browser with no luck
Can you provide an admin login so that I can see what’s happening in the database? The best way to do so is by clicking on my profile name followed by ‘Message’. Can you also provide a link to the page where the order isn’t as-expected and an explanation of the order you’re expecting?
Hi @Roy_K, thanks for the access. The issue is that your publication dates are earlier than the posts have been created. The mechanism takes the latest of publication date and creation time. It’s not designed for retrospective publication dates.
Ok, well that’s not helping me bring my blogs from my other site to this site. I guess I’ll just keep using the old system I have then.
I have spent considerable time on this to address your request. I am looking to improve it based on your feedback.
The intention of publication dates was to withhold posts until the date had been reached. Can you explain your rationale for having back-dated publication dates?
What you did is great. The problem I’m having is since I already have a blog page I don’t want to have two blog pages. So, I need to move my old blogs over to this one. But I’m not starting from the oldest to the newest but working my way backwards. While doing this I posted a new blog and that was when I realized the post were not in order any more.
I’m not a programmer but it seems to me if it was an option just place the sort order by the publication date only, and not check the creation date this might do what i need… if that is even possible.
Hi @Roy_K, I have modified the sorting to honour publication dates that are earlier than the creation date. The way that it works is that it sorts on publication date, using the creation date as the publication date whenever no publication date has been set. Can you give it a go and let me know whether that works as expected. I haven’t bumped the version number, so this can be installed by reinstalling the Publisher module:
- Visit Admin > Backlight Modules
- Click Reinstall for module-publisher
That’s it! Thank you!
