Custom Post Type >.
Alright.. I have wordpress set up (only using pages), and I have a sidebar-lef.php and sidebar-right.php. The page structure is sidebar left | content(page content) | sidebar right … I was trying to pull in CPT into my left sidebar. However, when I do, it appears in the content section totally overriding the page content I entered in. I have this in my functions.php:
<?php // Creates Movies post type register_post_type('movies', array( 'label' => 'Movies', 'public' => true, 'show_ui' => true, 'capability_type' => 'post', 'hierarchical' => false, 'rewrite' => array('slug' => 'movies'), 'query_var' => true, 'supports' => array( 'title', 'editor', 'excerpt', 'page-attributes',) ) ); ?>
And I have this in my sidebar-left.php:
<div id="sidebar-left"> <?php query_posts(array('post_type' => array('post', 'movies'))); ?> </div>
Any clue what I am doing wrong
- The topic ‘Custom Post Type >.’ is closed to new replies.