Custom Post type and Taxonomy in post URL error
Custom Post type and Taxonomy in post URL error
Custom Post type and Taxonomy in post URL error
Add a meta to custom post type which corresponds to a particular taxonomy
The solution to this was pretty simple.Had I read WP documentation thoroughly for get_categories Apparently I had to set this ‘hide_empty’ => false when I fetched my taxonomies 🙂
How to add base permalink to custom posts?
Your main issue is here is date formatting. Although the other answer will work, it is ineffecient and will cause inconsistant amount of posts per page in paginated queries. The issue here is, if you have 100 posts and only 10 has a date in future, you are wasting a lot of resources querying an … Read more
This sounds like core bug #22895. Access to the menu item will not be allowed unless the user also has the edit_posts capability (for the Post post type).
The hook you choose is important here. I found success choosing the latest hook I could wp_insert_post. If other functions are hooked to the same action they need to be considered because if they create/update posts too these hooks will be called again. The codex lists the Post, Page, Attachment, and Category Actions (Admin) in … Read more
Multiple post types or single post type with category taxonomy?
The ‘child_of’ argument lets you select subcategories from a parent category, and a you can get the current taxonomy id to pass as the value: <?php $category_id = get_queried_object_id(); $args = array( ‘hide_empty’=>1, ‘depth’=>1, ‘hierarchical’=> 0, ‘show_count’=> 1, ‘taxonomy’=> ‘portfolio-types’, ‘child_of’ => $category_id ); ?> <ul> <?php wp_dropdown_categories( $args ); ?> </ul> So in the … Read more
Custom post type issue