Support » Plugin: Contextual Related Posts » Reverse Chronological
Reverse Chronological
-
Hi. I just downloaded your excellent plug in. Is there any way to display the related posts in reverse chronological order? ie Most recent at the top, oldest at the bottom.
Thanks
Steve
-
Thanks Ajay
Where is functions.php located? I can’t find it.
Steve
Anyone?
Hi Ajay
Can you help me out here? I’m unclear which functions.php file to tweak
Thanks
Steve
Sorry, I don’t check the forums daily.
You can use the theme’s functions.php file or better yet in a wp-content/mu-plugins/ – create a new PHP file here with the code.
Hi Ajay
Thanks for this information. Unfortunately, because my WordPress site is hosted elsewhere (1 and 1 IONOS), the folder is read only (’43’) it won’t let me add anything to that location.
I’m not very experienced with php (hardly at all actually!) and wondered if there is a work-around?
Thanks
Steve
Can you edit your theme’s functions.php? This is is wp-content/themes/[THEME NAME]/functions.php
Any reason that they block your folder? I’m not familiar with such hosts but it sounds a bit funny it’s locked.
Another option is to see if you can use a functional plugin – see here: https://brianhogg.com/functional-wordpress-plugins/
If you have any dev company who helps you with the site, they should also be able to assist on this.
Thanks Ajay
I’ll take a look at
wp-content/themes/[THEME NAME]/functions.phpI’m not familiar with using php, so do I just add your suggested script at the end of the above… Or somewhere else.
(1 and 1 IONIS is a major player in Europe for domains and hosting. I think they lock it down because I pay them to ‘manage it’ and they don’t want an amateur like me ‘breaking it’. ๐ )
Let me know about whether it matters where I place YOUR script in the existing theme’s functions.php.
Appreciated! โบ ๐
PS It tried the functional script idea and it didn’t make any difference to the order of the posts ๐
Steve
Are you in a position to ask them to do this change for you?
You can edit your current theme’s functions.php – it might be possible to edit it from Appearance / Editor and find and edit the functions.php
Copy paste this at the end. If there is a closing
?>
at the end, put the code just before that.Thanks again Ajay
I’m on it – I’ll let you know!
๐
Steve
Hi again Ajay
I’ve had a closer look at the ‘Appearance’ function within WordPress, but apart from the ‘additional CSS’ window there’s no facility to add the extra code of any sort.
I’ve emailed IONIS to see if they’ll make the change for me (a good suggestion – thanks).
If they won’t (which, based on recent experiences, they’re unlikely to comply) I’m going to try contacting Brian Hogg and determine why his suggestion didn’t work.
‘Onwards and upwards!’ ๐
Steve
Thanks Steve. In a few versions further, I will implement this feature as it has been asked by a few people.
The next version will be focused on moving the options into the Settings API to make it similar to my other plugins.
Cheers Ajay
I’ll be happy to test it for you! ๐
Thanks for developing this Plugin! ๐
Regards
Steve
Hi Ajay
Any news on when ‘chronological’ sequence will be an option?
Thanks
Steve
This will be in v2.7.0.
You can follow the development in this repo – https://github.com/WebberZone/contextual-related-posts/issues/85
Please note it is a few weeks away given the recent release. You could beta test the version once I close the above ticket in the repo if you are in a position to replace the plugin files.
- The topic ‘Reverse Chronological’ is closed to new replies.