Hello,
how can I remove a certain category from the related articles in a cloud based template?
I found this older post, where Bogdan B. shows a way to do this for the standard template of an older version of Newspaper by editing td_module_single_base.php.
https://forum.tagdiv.com/topic/remove-category-from-related-articles-filter/
Which file do I have to edit for cloud based templates with Newspaper X?
Hi,
For the cloud you’ll need to make the change that Bogdan show in this file wp-content/plugins/td-cloud-library/includes/tdb_config.php -> http://prntscr.com/q37yee
Thank you!
Hi,
Yes, the “,” need to be add at the end of this line -> http://prntscr.com/q3dsec after that add the category_id.
Hope this will work.
Thank you!
Hello Calin,
yes, this is what i did -> https://prnt.sc/q3e9ol but posts from that category still appear as related articles, although I also cleared the cache.
Any idea?
Hi,
Please try to make the changes in wp-content/plugins/td-composer/legacy/common/wp_booster/td_data_source.php and add like this
$wp_query_args['category__not_in'] = array('3291');
https://i.imgur.com/ou31lQR.png
Hope this will help you!
Thank you!