Decouple Sidebar items and bottom items in single-post template

Posted in: Newspaper
Post count: 6

Hi,

we have about 20 posts per category where all are using the same single-post-template.Elements are main-content, featured-posts in the sidebar on the right and some featured posts following below the main-content. Now on every single post of that category the featured posts are exactly the same (same sidebar posts and same posts below the main-content). We need to set the items in the sidebar and below the main-content individually per post – we need to display items even of other categories. How can we do that? Setting ids from articles of other categories doesn’t help because then we still have the same items on every single-post.

Post count: 21065

Hello!

The solution could be only to change the template for the other posts to change it like you want, or you can duplicate the post template and then you have to assign the cloned one for the posts you want to change items in it.

Thank you!

Post count: 6

Hi,

thank you for the quick answer. But that would mean to set up a new template for every single post? That’s not very practicable if you are planning to have hundreds of posts and more.

Maybe you can help me with this question:
Now I would like to edit the used single-post template. I can find the default single-post templates as PHP files in plugins/td-standard-pack/Newspaper/single.php … but the editors of the website already cloned cloud-templates now and I can’t find the matching PHP files to edit them. Can you tell me where all the cloned templates are saved? The same with category-templates (cloned ones) – I would need to find the location of them too.
Thank you in advance – best regards
Karsten

  • This reply was modified 5 years by mikabo.
Post count: 21065

Hello!

Unfortunately, this is the single option you have there.
The cloud templates do not have PHP files because they are stored in the database as custom post types.

Thank you!

Post count: 6

Hi Bettina,

thank you for the fast response. Ok then I know the way to go.

Have a nice weekend- best regards
Karsten

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.