psufan
Forum Replies Created
Viewing 5 replies - 1 through 5 (of 5 total)
-
Forum: Fixing WordPress
In reply to: How To Access Raw $_POST DataOkay thanks, I was using stripslashes but I wasn’t sure if there was other conversions (like single quotes).
Finally solved, just needed:
$wp_query->is_page = true; $wp_query->is_single = false;it loads single.php instead of page.php***
Okay, I think I see more of what’s going on, because the page doesn’t exist, it doesn’t have a template and then loads page-template-blank.php instead of page.php in my template. Is there a way to dynamically set the template for a page that doesn’t exist (with $wp_query etc)?
Are there wordpress variables to tell the theme not to have sidebar/author and be full width? I wanted to handle the HTML inside the plugin instead of writing another (template) file.
Also I meant the code is all over google, not inside of wordpress.
Viewing 5 replies - 1 through 5 (of 5 total)