Are custom posts included when getting a categories’ posts?
You need to do: WP_Query(‘cat=1&post_type=any’) Or if you want just your custom post to show, put the name of it instead of any. More info in Codex
You need to do: WP_Query(‘cat=1&post_type=any’) Or if you want just your custom post to show, put the name of it instead of any. More info in Codex
Well I don’t know anything about genesis, but if it does indeed use WP_Query args, then your args array should be something like: $args = array( ‘post_type’ => ‘artists’, ‘meta_key’ => ‘ecpt_featured_artist’, ‘meta_value’ => 1, );
It’s not the perfect solution, but it will do considering the amount I’ve spent on it so far. I couldn’t find the offending code, but I believe that this is something to do with the Thesis Core. So instead, I wrote a filter to change the copy based on the post type: function resource_archive_title() { … Read more
Dublicate question. But I think my question + link will help some ppl out. How to add category to: ‘wp-admin/post-new.php’?
You have to create an template file called taxonomy-{name}.php to show the posts assigned to a custom taxonomy. So in your case it should be taxonomy-partners-category.php . Category related archive pages work only with “Posts”. Info: http://codex.wordpress.org/Template_Hierarchy . Scroll down to Custom Taxonomies display.
This is one way… <?php $headertag = ( is_front_page() ) ? ‘h1’ : ‘h6’; ?> <hgroup> <<?php echo $headertag; ?> class=”site-title”><a href=”https://wordpress.stackexchange.com/questions/88144/<?php echo home_url(“https://wordpress.stackexchange.com/” ); ?>” title=”<?php echo esc_attr( get_bloginfo( ‘name’, ‘display’ ) ); ?>” rel=”home”><?php bloginfo( ‘name’ ); ?></a></<?php echo $headertag; ?>> <h2 class=”site-description”><?php bloginfo( ‘description’ ); ?></h2> </hgroup>
Using wp_list_categories http://codex.wordpress.org/Template_Tags/wp_list_categories Something like this should give you what you want $args = array( ‘hierarchical’ => true, ‘hide_empty’ => 0, ‘title_li’ => ” ); wp_list_categories($args);
It sounds like you want to hook into pre_get_posts for the blog index. The following should only effect the blog index. That is what is_home() is for. Of course, you can edit the function to alter that behavior if you want. function add_post_type_to_index_wpse_88317($qry) { if (is_home()) { $qry->set(‘post_type’,array(‘post’,’movies_cp’)); // plus any others you want. } … Read more
This is how your index.php and other public facing pages should be.. Don’t forget to add get_header() and get_footer() <?php get_header(); ?> <!– Row for main content area –> <div id=”content”> <div> <!– Main Content Loop HERE, or just use while have posts and get the content;..–> <?php get_template_part(‘loop’, ‘index’); ?> </div> </div><!– End Content … Read more
The code for WordPress would be: wp_nav_menu() for custom nav menus wp_page_menu() as the default fallback for custom nav menus wp_list_pages() for a list of static pages See the linked Codex pages for the various parameters to pass to each, and the CSS classes output by each.