Make non-WP page recognize conditional?
-
I was wondering, really quickly, if there was something I could place in the top of a non-WordPress handled page that would make WordPress recognize it as a non-WordPress page, and I could write a conditional statement for it?
To try and give a better explanation, I have a page that is outside of WordPress. However I’ve brought in the wp-blog-header.php file in the top, so I can use WordPress calls for the layout (get_header() and all that). However, I have a number of conditional statements for the whole site, and I need this non-WordPress page to have the same layout as my Pages (I’m using a
body id="page"thing). But the conditional doesn’t recognize the non-WP page, and is giving it the default blank body tag. It’s totally understandable *why* it’s doing this, but I can’t seem to come up with the right code snippet to place in the non-WP page to “tag” the page with something so I can make the WP conditional recognize what it is, and serve the right body ID.Man, I hope that made sense.
The topic ‘Make non-WP page recognize conditional?’ is closed to new replies.