Post type no single page

First, before you start, just reflush your permalinks. It is sometimes strange why the Template Hierarchy fails. You code checks out, and should in theory work. Everything checks out, and to make sure, I tested it on my side. You can use this work around to “force” wordpress to use a template. Here we would … Read more

Handling single.php in Multisite

I’m surprised get_current_blog_id() didn’t work, since that’s probably the best way to approach it. Always try doing a var_dump( $current_blog ) to make sure you’re testing for what you need. Edit (19 Aug 2015): Also, triple check that you know which header you’re expecting to see and that you’re making the change you want in … Read more

diffrent style for post single page

You could listen for the $_SERVER[‘HTTP_REFERER’] and add a class to the body depending on that referer add_filter( ‘body_class’,’wpse_body_classes’ ); function wpse_body_classes( $classes ) { if ( is_page( ‘event’ ) ){ // event is the page slug of the page we wish to add the class for if( wp_get_referer() == ‘/url/of/get_involved’ ){ $classes[] = ‘my-light-bg’; … Read more