How do I hide tinymce within the edit screen of a particular page

Have you ever tried the functions described here? It seems to be exactly what you’re looking after. Here’s a slightly variation of the function for reference: // Run only when editing a page // For new pages load-page-new.php should be used // See: http://core.trac.wordpress.org/browser/tags/3.5.1/wp-admin/admin.php#L217 add_action( ‘load-page.php’, ‘hide_tinyeditor_wp’ ); function hide_tinyeditor_wp() { // Not really necessary, … Read more

Custom page template to sidebar/widget

Use a shortcode include plugin and simply add a shortcode inside a text widget in the sidebar you’ll be using on the widgets or customizer page. Here are some example plugins and how they work: Include Me – [includeme file=”filename.php”] Custom Content Shortcode – [load file=template/sidebar.html] Insert Pages Plugin – [insert page=”{slug}|{id}” display=’title|link|content|all|{custom-template.php}’] Include Shortcode … Read more

Template Redirect to /2015 to use page template

If you really want to override the yearly archive for 2015, then you can try the following: add_filter( ‘template_include’, function( $template ) { //————————- // Edit this to your needs: //————————- $year = 2015; $report_template = “tpl-annual-report-{$year}.php”; //———————————————- // Override the default yearly archive template //———————————————- if ( is_year() // Yearly archive && $year == … Read more

Plugin create pages and use templates

I got it. It kind of makes sense but doesnt really. The one template wasnt working becuase I was looking for just the slug. Since its a child of the other page I needed to add it in the is_page statement. This worked (I also just did it all in one function): function ch_register_page_template($page_template;) {////////////////<————-Works … Read more