-
Author
-
March 2, 2016 at 16:48 #108010chrisatnetworldParticipant
The “Related Posts” portion at the bottom of a blog article page is always showing the very first 3 articles. I would like to change it to show the 3 most recent or order it randomly so that it shows different related posts each time. How/where can I change this? Do I have to alter the PHP template or is there a setting in the admin somewhere I am missing?
Example:
Article page: http://icxa.org/2016/03/billy-bishop-toronto-city-airport-creative-competition-st-joseph-thrilled-to-be-a-top-5-finalist/
At the bottom it shows “ComQi wins…” then “ICX Association Honors” and “Scala announces” which are the first three posts in the “Industry News” category. It shows these three at the bottom of every article in this category. I want it to ORDER BY post date DESC or RANDOM
March 3, 2016 at 07:55 #108197LauraModeratorHello, it shows related posts and right now can’t be changed
If you want to change it you may need to change theme functions, we can only help you with small modificationsHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
March 3, 2016 at 10:50 #108218LauraModeratorHello, you can check it out at the file kleo\page-parts\posts-related.php
And you will see its sort by randomCOPY CODE/* Query args */ $args=array( 'post__not_in' => array($post->ID), 'showposts'=> 8, 'orderby' => 'rand' //random posts );
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
March 3, 2016 at 15:29 #108262chrisatnetworldParticipantThanks for the reply Laura. But according to that code it should show (or orderyby) random posts, which would work fine for me, but it doesn’t. It always shows the oldest 3 posts. So that seems like a bug.
March 4, 2016 at 16:19 #108552LauraModeratorHello, could you share admin credentials so i can check it out? 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
March 28, 2016 at 09:29 #113047LauraModeratorHello, will assign the ticket to a higher support level who can help and advise you in your query.
Thanks! 🙂Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
March 30, 2016 at 22:02 #113685RaduModeratorHi,
I see that you have an old kleo version (3.0.8) the theme current version is 4.0.4 i suggest you to update the theme then test again.
Let me know
Cheers
Radu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionApril 1, 2016 at 19:45 #114160dribgibParticipantNewest version of Kleo – this bug still exists.
I see this code:
$args=array(
‘post__not_in’ => array($post->ID),
‘showposts’=> 8,
‘orderby’ => ‘rand’ //random posts
);But it doesn’t actually work ;o
April 4, 2016 at 17:24 #114433RaduModeratorHi,
I understand,
I will add this to buglist untill we patch this pluase replace the code form above with this
COPY CODE/* Query args */ $args=array( 'post__not_in' => array($post->ID), 'showposts'=> 8, 'orderby' => 'rand', //random posts 'order' => 'ASC' //most recent first );
Also let me know if that works ok.
Cheers
Radu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAugust 14, 2017 at 04:36 #170532Imzaia WorldParticipantHello there,
I still have this problem as well.
Has any fix been found in the meantime?
Thank you.
Regards,
YinAugust 15, 2017 at 17:49 #170724RaduModeratorHi,
Just replace this file content : /kleo/wp-content/themes/kleo/page-parts/posts-related.php
With this one: https://pastebin.com/raw/KwvbBDjp
This will be fixed in next theme update so just replace that file content.
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘Bugs & Issues’ is closed to new topics and replies.