This topic contains 1 reply, has 2 voices, and was last updated by Ernest Marcinko 5 years, 3 months ago.
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
Home › Forums › Product Support Forums › Related Posts Pro for WordPress Support › Offsetting Posts
This topic contains 1 reply, has 2 voices, and was last updated by Ernest Marcinko 5 years, 3 months ago.
Is there a method to offset the related posts so that it publishes older posts instead of newer?
Hi!
Well, not without a modification to the code. The ordering always uses relevance, then date descending.
If you want to change that, just follow these steps:
1. Open up the wp-content\plugins\related-posts-pro\includes\related_content.class.php file on your server via FTP.
2. Find line 577 which should be this:
ORDER BY relevance DESC, " . $wpdb->posts . ".post_date DESC
3. Change that to:
ORDER BY " . $wpdb->posts . ".post_date ASC
..or, if you still want relevance as primary, but date ascending you can also try:
ORDER BY relevance DESC, " . $wpdb->posts . ".post_date ASC
4. After the change, save the plugin options, so the cache is cleared.
This should very likely do the trick.
Best,You must be logged in to reply to this topic.
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |