I have literally more than 2000 posts to be published. However, I would like to change some configurations of these drafts:
– Page header – Logo – Choose Logo (with a specific image obviously)
– Sidebar / Content
My preconfiguration is different from those above mentioned.
How can I make a template with those two changes to be applied on those 2000 posts automatically, instead of modifying them manually one by one?
Ok then you would use the generate_sidebar_layout filter and do something like this:
add_filter( 'generate_sidebar_layout','tu_custom_category_sidebar_layout' );
function tu_custom_category_sidebar_layout( $layout )
// If we are on a category, set the sidebar
if ( is_category( 'Whatever' ) )
// Or else, set the regular layout