Similar Articles

Posted in: Newspaper
Post count: 57

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.

Post count: 57

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?

Post count: 854

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.

Post count: 57

Hello, where do I find this snippet now?
In the 7 version, there is no td_module_blog.php

Post count: 23312

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!

Post count: 57

Hello Catalin,

this solution makes random selection within a category (random tags), while the previous made it random all over the site <- I need that. Is there a way for that, please?

Post count: 23312

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!

Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic.