Layouts is a WordPress plugin that lets you design responsive layouts for entire pages, from the header down to the footer.
Layouts User Guides include detailed documentation on how Layouts editor works and how you can create Layouts and assign them to specific content, or as templates for all items of a post type.
When you ask for help or report issues, make sure to tell us the versions of the Toolset plugins that you have installed and activated.
Viewing 15 topics - 1,111 through 1,125 (of 1,145 total)
Problem: I would like to show a View on my site only on specific days of the week. The View should only appear Monday - Thursday.
Solution:
There is no built-in way to accomplish this, but you can use a custom shortcode to return the day of the week and test that value in a conditional. Add this code to functions.php:
I've added a plugin (Modern Event Calendar), that adds its own custom post type. When I view a single post from that post type, it uses single.php instead of the template (single-cpt-slug) that comes with the plugin. When I deactivate the layouts plugin, it uses the correct template. I don't have any layouts set for that custom post type. I also have some single templates that work correctly for some cpts created by toolset.
Solution:
The plugin "Modern Event Calendar" is USING slug "mec-events" for the "events" post type, you can copy the file from "Modern Event Calendar" plugin folder: