How to make text show up – new page template

Your template must have the the_content() function called within the WordPress loop to show up the text you’ve entered while creating new post. You might have missed the the_content() function in your custom template, that function retrieves and show the content of your page. Here is sample usage <?php get_header(); ?> <div> <?php if (have_posts()) … Read more

Register/Get sidebar?

http://codex.wordpress.org/Function_Reference/get_sidebar <?php get_sidebar(‘other’); ?> for instance will call the template sidebar-other.php you would add the dynamic_sidebar() code in that sidebar-other.php template; see also http://codex.wordpress.org/Widgetizing_Themes

Page template with different page and post content

the_content() (and many others) must be inside The Loop. For retrieving a post/page/custom-post-type data outside the Loop, take a look here: Get post content from outside the loop The working code, based on your example, would be: <div class=”middle-inner”> <div class=”center-inner”> <!– This is content –> <?php global $post; query_posts(“post_type=roomtype&orderby=name”); if ( have_posts() ) { … Read more

Removing the TinyMCE editor for a given page template

You can try to hook on load-page hook instead of admin_init. It is supposed to be called only when a page is being edited, and then you should be able to use the global $post variable function hide_editor() { global $post; $template_file = get_post_meta($post->ID, ‘_wp_page_template’, true); if($template_file == ‘page-home.php’){ // template name here remove_post_type_support(‘page’, ‘editor’); … Read more

How to remove the Template drop down, but keep Parent and Order

When you remove that box from admin (as you’ve written in the comment), you should be able to re-register that box with custom function (modified original) to render the box: if ( post_type_supports($post_type, ‘page-attributes’) ) add_meta_box(‘pageparentdiv’, ‘page’ == $post_type ? __(‘Page Attributes’) : __(‘Attributes’), ‘my_page_attributes_meta_box’, null, ‘side’, ‘core’); function my_page_attributes_meta_box($post) { $post_type_object = get_post_type_object($post->post_type); if … Read more

Display all posts for taxonomy term across multiple custom post types

You can do this with an array of post types and a tax query for your term. The question you linked had special requirements as only one of the post types used the taxonomy. $args = array( ‘post_type’ => array( ‘books’, ‘movies’, ‘shows’ ), ‘posts_per_page’ => -1, ‘tax_query’ => array( array( ‘taxonomy’ => ‘status’, ‘field’ … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)