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.
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.
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!
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.