Custom Taxonomy isn’t working from frontend post submitting
Custom Taxonomy isn’t working from frontend post submitting
Custom Taxonomy isn’t working from frontend post submitting
On some servers, errors in PHP code cause 500 errors. I can’t test your code right now, but since you said the error only happens when you use your new page template this is most likely. Yes, it’s really annoying to just have a blank page and not even have a clue of what went … Read more
The is_page_template() function will not work in the admin. The second parameter of the default_content filter is the $post object. Your best bet is to leverage that to get the stored value for the page template in the post meta information: add_filter( ‘default_content’, ‘wpse_editor_default_content’, 10, 2 ); function wpse_editor_default_content( $content, $post ) { if ( … Read more
SuperCache for Custom Templates
This sounds like page caching. Page caching is a good thing, it keeps your site fast. The downside is that any personalized data is not accurate, which is why the clock is not updated. It looks like perhaps WPEngine doesn’t give you control over page caching – https://wpengine.com/blog/no-caching-plugins/ You may need to speak to them … Read more
if you want modify the content, there is the filter the_content. if you want to intercept the template file before it is included : filter template_include to catch a shortcode (like Visual Composer e.g.) : filter do_shortcode_tag and the filter vc_shortcode_output for only the shortcodes of Visual Composer
Trying to return list of child pages for a template
add_filter(‘query_vars’) not working in custom template
Just to make sure, does the title tag in your <head> area (presumably in header.php) look like this? <title><?php wp_title(); ?></title> It has to be like that for Yoast to work with it, and be able to override titles. Anyway if you add this to your single.php (or at least before get_header() is run for … Read more
Your best bet is to rename the old header.php to header.bak.php and your new copy to header.php. header.php (there’s only one such file, always) is called from the other theme templates using get_header(). What you could/eventually should do, if you don’t want to directly edit the existing theme, is set up a child theme, copy … Read more