display custom post on separate page

The simplest way is to create Page (maybe call it “All Codes”). Then, you “hijack” that page’s PHP template by creating a PHP file in your theme’s directory called page-all-codes.php (note how the “all-codes” part corresponds to the slug of the Page you created). You can then use WP_Query to get a list of your … Read more

wp3 custom post types rss

Use this to include post types to your feed: function myfeed_request($qv) { if (isset($qv[‘feed’])) $qv[‘post_type’] = get_post_types(); return $qv; } add_filter(‘request’, ‘myfeed_request’); Just add it to your functions.php. This should help. Source.

adding page types in menu

Sorry, try this: ‘show_ui’ => false, ‘menu_position’ => ‘edit.php?post_type=main_posttype or registered section’ For example if you want it under Themes it would be: ‘menu_position’ => ‘themes.php’ This on your post type registering.

Page template that uses lightbox to display post images

You could use WordPress’ built-in Thickbox script. Just place the following code somewhere before wp_footer();: add_action( ‘wp_footer’, ‘t5_thickbox_jquery’ ); function t5_thickbox_jquery() { ?> <script> jQuery( ‘a img.size-medium, a img.attachment-thumbnail’ ) .parent() .addClass( ‘thickbox’ ) .attr( ‘rel’, ‘page’ ); </script> <?php add_thickbox(); } See this answer for more details.

Disable trash for post type

If I understand your question correctly I just came across a similiar situation in a test project I’m working on. I just added a custom meta field active and none active as a checkbox. When I get my posts on the pages I filter on this meta field aswell. So on the live website I … Read more

How do i display post from a taxonomy term?

Try this. $type=”buehne”; // Name of the Custom Post Types $tag = ‘TagName’; $args = array( ‘post_type’ => $type, ‘paged’ => $paged, ‘posts_per_page’ => -1, ‘orderby’ => ‘menu_order’, ‘order’ => ‘ASC’, ‘tax_query’=>array( array( ‘taxonomy’=>’th3’, //name of the Taxonom ‘field’=>’slug’, ‘terms’=>array($tag) )) ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); if(is_object_in_term($post->ID,’th3′,’TagName’)) … Read more

How to hide a custom post type

There is a parameter named “public” where you can set if you want the custom post type to be private or public add_action( ‘init’, ‘create_post_type’ ); function create_post_type() { register_post_type( ‘acme_product’, array( ‘labels’ => array( ‘name’ => __( ‘Products’ ), ‘singular_name’ => __( ‘Product’ ) ), ‘public’ => false, ‘has_archive’ => true, ) ); }