How to change "post template" for many items at once?

Posted in: Newspaper
Post count: 14

I need to appoint a post template for all articles in one of the categories (many articles).
For the other categories I use the default site post template.
How can I change the “post template” for many items (for all articles in the category) at once?
If this is not possible, then where in the database can I find information about the “post template” assigned to each article.
P.S. It would be great to include this feature in the «Per category settings» section

  • This topic was modified 9 years by Freeman.
Post count: 14

Did anyone respond?
Or the question needs to be clarified?

Post count: 22421

Hello,

You can change all the articles post template at once from here: http://screencast.com/t/qoxdhp6P but there is no option to change the post template for specific posts only such as a specific category or tag. sorry
Thanks.

Post count: 14

Unfortunately, I need to change the post template for posts in specific category.
Tell me where in the database to store information about the “post template” designated specific material?
I think to change the “post template” through MySQL will be faster.

Post count: 22421

OK,

In this case you will have to search through both post tables. There are only 2 tables that keep all post info One is wp_posts and the other is wp_post_meta

Thank you!

Post count: 14

Good day!
I know which tables contain information about the posts.
But what exactly is responsible for setting “post template”?

I can see the table

ID
post_author
post_date
post_date_gmt
post_content
post_title
post_excerpt
post_status
comment_status
ping_status
post_password
post_name
to_ping
pinged
post_modified
post_modified_gmt
post_content_filtered
post_parent
guid
menu_order
post_type
post_mime_type
comment_count

Which of them is responsible for “post template”?
Thank you!

Post count: 22421

Hello,

Unfortunately it’s not that easy as simply finding the field in the database as there are methods that add the information automatically or not add theme at all. You must have settings set to your post otherwise the post settings array in the database will be empty. You will find the settings for each post under
wp_postmeta->td_post_theme_settings meta key

Thanks.

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