Hello, I see similar articles block always shows the same posts – latest ones. I don’t always have tags, and have the same author for every post – so there is nothing else for me to chose but SIMILAR ARTICLE TYPE – by category. How can I change it to random posts? (like on widgets, where I may chose SORT ORDER – Random Posts). Thank you.
Here is similar topic: https://forum.tagdiv.com/topic/similar-articles-with-random-tags/
cybergetro offered to use [‘orderby’ => rand]
Where do I insert it?
hi,
if you take a look at that post (https://forum.tagdiv.com/topic/similar-articles-with-random-tags/) you will see the file td_module_blog.php. in this file the modification are needed.
'orderby' => 'rand',
like here : http://screencast.com/t/BYhqRkkFCpF
Thanks for you message.
Radu A.
Hello dan21,
Please re-check the following topic here -> https://forum.tagdiv.com/topic/similar-articles-with-random-tags/ because there was given solution.
Thanks for the message!
Hello dan21,
Unfortunately, the Related Articles feature has been designed to use only the posts from the same category which can be filtered by categories and tags. If you want to change the functionality from this block, you should alter the code from the theme core file where the code is created, like this -> http://screencast.com/t/xTxHRlUhgl If you have a solid knowledge of PHP and HTML you should implement it yourself, otherwise please consider hiring a freelancer/developer to help you because we cannot provide custom work at the moment, sorry!
Another alternative for you would be to disable the Related Posts block and add in that section with do_shortcode method a simple block which you can filter it by latest articles from entire site and your problem will be solved. Also, you can give the similar name to your block, like Latest Articles. As a hint, you can see here an example to post template style 1, like this -> http://screencast.com/t/Ns3rVIIf
Thanks for your understanding!
