swhcr.com

Wordpress Custom Post Type Tags Not Working

Home > Custom Post > Wordpress Custom Post Type Tags Not Working

Wordpress Custom Post Type Tags Not Working

Contents

So I added the nav_menu_item to the post_type array like this: add_filter('pre_get_posts', 'query_post_type'); function query_post_type($query) { if(is_category() || is_tag()) { $post_type = get_query_var('post_type'); if($post_type) $post_type = $post_type; else $post_type = array('post','articles','nav_menu_item'); Viewing 15 replies - 1 through 15 (of 39 total) 1 2 3 → The topic ‘Custom post type tags/categories archive page' is closed to new replies. But the tags I'm using are site-wide already existing tags. DoublyLinkedList Implementation Java Shortest path between two points with n hops more hot questions question feed lang-php about us tour help blog chat data legal privacy policy work here advertising info http://swhcr.com/custom-post/wordpress-custom-post-type-url-not-working.html

Even with Ana's solution that is supposedly excluding admin. Not quite comprehending this part. That's right! Any idea what I can do, either to this function or to my widgets, to get them to play nice together?

Add Tags To Custom Post Type

Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the What does the letter 'u' mean in /dev/urandom? How do we show that the function which is its own derivative is exponential? Good example!

Skip to toolbar About WordPress About WordPress WordPress.org Documentation Support Forums Feedback Search Log In Have you taken the WordPress 2016 Survey yet? Reply ↓ Vlada Permalink to comment# September 16, 2014 Thanksfor this post, and see menu ppl solve the problem, but i don't :( I making my own theme and i successfully You cannot filter posts with category. I try URL http://localhost/wordpress/zombies and It is not working because I see 404 page.

January 11, 2015, 2:10 pm Clivio Regular Joe 0 pts 0 pts LEVEL 0 You have no idea how you've helped me! Custom Post Type Category I tried on wordpress forums too. Hope that helps! It sounds like you created a custom pot type called "Blog", which, if that's true, probably isn't a great idea.

Here is the final working solution on all WordPress pages. Plugins Themes Videos Support Blog Jobs & Pros About Contact Work with us Hub Log In Become a member Blog News & Community Add Custom Post Types... thank you again Reply ↓ Cav Permalink to comment# January 23, 2012 Can you give a slight bit more detail like… How does it know to only do this on the Is this the proper way to fix it or is there a better way?

Custom Post Type Category

query_vars['suppress_filters'] ) ) { $query->set( 'post_type', array( 'post', 'nav_menu_item', 'my_custom_post_type', 'my_other_custom_post_type' )); $query->set('suppress_filters', true); //wpml filter return $query; } } add_filter( 'pre_get_posts', 'custom_function_add_custom_post_types' ); ?> Thank you again for your help, It's very similar to the WPMU link and should still be accomplishing the same results. Add Tags To Custom Post Type Does anyone have an idea or a solution ? That may help trouble shoot.

I show recent posts for all these cpt's on all pages of site including category and tag pages. weblink Had a look at the asker's code. 'supports' doesn't accept date and tags. –Pieter Goosen May 4 '14 at 4:32 | show 1 more comment Your Answer draft saved draft WordPress.org Search WordPress.org for: Showcase Themes Plugins Mobile SupportForumsDocumentation Get Involved About Blog Hosting Download WordPress Support Log In Support » How-To and Troubleshooting » Custom Post Type Archive Template Not Password Next Already have a WPMU DEV account?

Thanks :) Reply ↓ Ray1618 Permalink to comment# August 20, 2014 Jon B's & Daans solutions worked both for me, great! But when I call a page with all the posts from that category, all I get is every normal post. How not to lose confidence in front of supervisor? http://swhcr.com/custom-post/wordpress-custom-post-type-archive-not-working.html Share on Facebook Share on Twitter Share on Google+ Craig Grella Craig is a recovering engineer and avid tech writer.

Add Custom Post Types to Tags and Categories in WordPress Craig Grella Last updated April 18, 2013 #custom post types#taxonomy WordPress gives you the ability to add custom post types and Have you gotten a response to your issue through another forum? There must be a detailed tutorial.

This article should ABSOLUTELY be updated with your solution.

Nadine custom-post-types tags templates share|improve this question asked Sep 10 '11 at 3:30 Nadine 124317 add a comment| 1 Answer 1 active oldest votes up vote 8 down vote accepted If I am just posting this comment as I noticed no one had posted anything that would point to the succcessful implementation of the above. You save me, thank you but i'm still issues with the feed, any ideas how to get it? It is built on WordPress, hosted by Media Temple, and the assets are served by MaxCDN.

It works fine, unless you click a tag that is in a post associated with a custom post type. try stepping thru the function with either die or echo, let me know the line right before it fails, again try this on a development site. WordPress Development Stack Exchange works best with JavaScript enabled current community chat WordPress Development WordPress Development Meta your communities Sign up or log in to customize your list. his comment is here Here is how my CPT was declared: register_post_type( 'objet', array('labels' => array(/* removed for clarity */), 'description' => __( 'blabla' ), 'public' => true, 'publicly_queryable' => true, 'exclude_from_search' => false, 'show_ui'

I'd like to create a custom post type which includes the standard fields and also allows me to attach an image file and a PDF. WordPress.org Search WordPress.org for: Showcase Themes Plugins Mobile SupportForumsDocumentation Get Involved About Blog Hosting Download WordPress Support Log In Support » Plugins and Hacks » Custom Post Type UI » [Resolved] June 6, 2013, 9:53 pm karks88 Site Builder, Child of Zeus 143 pts 116 pts LEVEL 4 I just ran into this very issue today. See below: http://dev.dreamlocal.com Scroll to the bottom to see the From the Blog heading and no posts below.