Support » Plugin: Contextual Related Posts » Reverse Chronological

  • Resolved Steve

    (@stevepalmeratwordpress)


    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

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author Ajay

    (@ajay)

    Steve

    (@stevepalmeratwordpress)

    Thanks Ajay

    Where is functions.php located? I can’t find it.

    Steve

    Steve

    (@stevepalmeratwordpress)

    Anyone?

    Steve

    (@stevepalmeratwordpress)

    Hi Ajay

    Can you help me out here? I’m unclear which functions.php file to tweak

    Thanks

    Steve

    Plugin Author Ajay

    (@ajay)

    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.

    Steve

    (@stevepalmeratwordpress)

    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

    Plugin Author Ajay

    (@ajay)

    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.

    Steve

    (@stevepalmeratwordpress)

    Thanks Ajay

    I’ll take a look at
    wp-content/themes/[THEME NAME]/functions.php

    I’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

    Plugin Author Ajay

    (@ajay)

    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.

    Steve

    (@stevepalmeratwordpress)

    Thanks again Ajay

    I’m on it – I’ll let you know!

    🙂

    Steve

    Steve

    (@stevepalmeratwordpress)

    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

    Plugin Author Ajay

    (@ajay)

    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.

    Steve

    (@stevepalmeratwordpress)

    Cheers Ajay

    I’ll be happy to test it for you! 🙂

    Thanks for developing this Plugin! 👍

    Regards

    Steve

    Steve

    (@stevepalmeratwordpress)

    Hi Ajay

    Any news on when ‘chronological’ sequence will be an option?

    Thanks

    Steve

    Plugin Author Ajay

    (@ajay)

    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.

Viewing 15 replies - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.