Show custom taxonomies in admin panel under custom post type
Show custom taxonomies in admin panel under custom post type
Show custom taxonomies in admin panel under custom post type
Can’t open Custom Post Types Link in navigation
You don’t need a custom rewrite rule to handle this, just set your taxonomy rewrite slug like: ‘rewrite’ => array( ‘slug’ => ‘projects/category/%project_cat%’ )
Comments are bound to post IDs. So you need a post ID for each user. Register a custom post type, make it not public and create one hidden post for each user. Store the ID in an user-meta field. Now assign the comments to that post’s ID. Do not use comments_template(). That’s an ugly monster, … Read more
You need to use get_the_title() (codex). the_title() (codex) doesn’t actually return anything but prints the title.
Tags results not displaying for post types
Replace the code: From: <div> <?php $q = new WP_Query(array($item)); if($q->have_posts()) : while($q->have_posts()) : $q->the_post(); the_excerpt(); endwhile;endif; ?> </div> To: <div><?php $post = get_post($item->ID); echo $post->post_excerpt; ?> </div>
This is what I use to build new custom Taxonomy to my custom post types. And it works for me. function fun_book() { // Add new “Fun” taxonomy to Book Post Type register_taxonomy(‘fun’, ‘book’, array( // Hierarchical taxonomy (like categories) ‘hierarchical’ => true, // This array of options controls the labels displayed in the WordPress … Read more
There are surely many other ways to archive something like this but the easiest – in my opinion – would be to create or generate a custom post type and the use of a plugin like Advanced Custom Fields which gives you the possibility to create a metabox with filtered post relations.
The easiest solution will be using Advanced Custom Fields plugin, I guess. You can easily add custom write panels with it and limit them only for some posts based on post type, template file, etc. If you’d like to do implement it yourself, then you’ll have to add your custom meta box using add_meta_box function.