Remove Sidebars from page

If you are creating your own theme you could add this to your page.php template file if(!is_page(‘999’)) { //Page to exclude sidebar from dynamic_sidebar(‘sidebarID’); } Replace 999 with the page ID you wish to exclude, and sidebarID with the sidebar you want to show.

How can I correctly redirect user to the submitted post and define a template for each new post in WordPress?

you need to get the ID from wp_insert_post and make sure you exit or die so: $pid = wp_insert_post($new_post); wp_redirect( get_permalink( $pid ); die(); As for the second part you can use the WordPress Template Hierarchy and simply name each one of your custom post type designs as single-{post_type}.php for example if your post type … Read more

Page template doesn’t display simple HTML if inserted into other page?

Couldn’t you use the custom form like this: STEP ONE: Open a Text editor and paste your form content- <?php // Custom Contact Form ?> <div id=”my-ccf”> <form id=”contactform” method=”post” action=”<?php bloginfo(‘template_directory’); ?>/_assets/submitemail.php”> <input name=”user” type=”text” value=”Name” /> <input name=”email” type=”text” value=”E-Mail”/> <input name=”url” type=”text” value=”Website” /> <input name=”subject” type=”text” value=”Subject” /> <textarea rows=”10″ name=”message” … Read more

Static Website No Titles But Still Nav

Somewhere in your page.php template will be a tag containing the_title(), and that’s what you have to delete. In my WordPress theme, for example, the code looks like this: <?php if ( have_posts() ) : ?> <?php while ( have_posts() ) : the_post(); ?> <div class=”entry”> <div <?php post_class(); ?>> <div class=”post-meta”> <h1><?php the_title(); ?></h1> … Read more

Controlling the Admin panel for page templates

I would think that in the admin panel there would be fields for each area. I don’t get this part, could you elaborate?. Overall this sounds like a custom page templates to me. You can create templaets in advance, but assign them to pages via admin rather than hardcode slig/id match in template name.