Is this line of coding correct, Can someone help please?
-
I have this code because I have multiple themes for different categories.
<?php $post = $wp_query->post; if ( in_category('72') ) { include(TEMPLATEPATH . '/fonts.php'); } elseif ( in_category('72') ) { include(TEMPLATEPATH . '/fonts.php'); } if ( in_category('97') ) { include(TEMPLATEPATH . '/brushes.php'); } elseif ( in_category('97') ) { include(TEMPLATEPATH . '/brushes.php'); } if ( in_category('71') ) { include(TEMPLATEPATH . '/vectors.php'); } elseif ( in_category('71') ) { include(TEMPLATEPATH . '/vectors.php'); } else { include(TEMPLATEPATH . '/single2.php'); } ?>
I notice it is loading the last single2.php with all the pages so they’re all getting a little messed up.
Example: https://dirt2.com/photoshop-brushes/3-in-1-skin-texture-combination-brush-pack/
The meta titles, seem to pop up covering the regular meta tag. If you view the source it shows up at the very, very end of the document. It goes away if I delete the content of single2.php but I need it for my regular single posts.. Any help is appreciated.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Is this line of coding correct, Can someone help please?’ is closed to new replies.