Petra
AI assistant for GrootMade
Hi! I'm Petra 👋 Ask me to help you find the perfect WP plugin, theme, or template kit.
Assign unique layouts to individual posts from the editor.
This plugin adds a template selector to the post editor, allowing you to apply a custom layout to any individual post. It is for site builders and content creators who need more design flexibility than a single, uniform post layout provides.
cpt_post_types filter to extend the template selector functionality to custom post types, such as 'Movie' or 'Product'.is_post_template() function for use in theme files, allowing for conditional logic based on the active post template.body_class() function, the plugin automatically adds specific CSS classes (like 'post-template-my-template-php') to the body tag for precise styling control.Version
Original
Updated