Hi there,
Just like the topic title, i am customizing the Post template and i am in the middle of creating my own sidebar. and so i was wondering how can i add related articles box (or rather, how to filter the posts with same category) inside the custom sidebar widget that i created?
In terms of ‘related’, other than same category, is there any other way to define it?
Thanks!
Hi,
The related article option can be enable only from theme panel and is not displaying in sidebars only at the bottom of articles also this can be filtered only by category or tag -> https://i.imgur.com/4dtrIqi.png
In sidebar you can set only widgets and those has only normal filters -> https://i.imgur.com/s7ISeXW.png
Thank you!
Hi,
In case that you do not have many categories, then it is a better idea to make sidebar for each category and and set in it a block that it is filtered after that category (after that you set the correspondent sidebar for each article).
In case that you have many categories and articles, then the above suggestion is not so good and the only way is to make changes in theme files and the code used for this is on this file path -> wp-content/plugins/td-composer/mobile/includes/modules/td_module_single_mob.php -> https://i.imgur.com/mfRpJ3i.png you need to set that code in posts sidebars -> wp-content/plugins/td-composer/legacy/Newsmag/parts/single
I hope this will help you!
Thank you!
Hi Calin,
Thanks for the reply.
Unfortunately, i am a bit confused with your suggestion on adding code from wp-content/plugins/td-composer/mobile/includes/modules/td_module_single_mob.php into posts sidebars -> wp-content/plugins/td-composer/legacy/Newsmag/parts/single…
How can i do so?
To make it clearer, please go to this link: http://verztec-online.com/clients/annals/recurrent-vascular-events-in-ischaemic-stroke-patients-with-diabetes/ and look at the Sidebar on the bottom right side. I am trying to add Related Articles inside sidebar here.
So basically, i want the Related Articles box (located at bottom of every Posts) to be shifted into the Sidebar instead.
Hopefully this is illustrating my situation better.
Looking forward for your advice!
Thank you in advance.