swhcr.com

Wordpress Custom Post Type Category Page Not Working

Home > Custom Post > Wordpress Custom Post Type Category Page Not Working

Wordpress Custom Post Type Category Page Not Working

Contents

Had issues for hours and hours and was so stressed then found your blog, re saved my perms links and I'm a happy little Vegemite once again yaye! Can't figure it out. After a day and a half, FINALLY something that works for me! Ha! this contact form

The thing was that the categories I had created were for a Custom Post (content) Type that I had created myself using Custom Post Type UI plug-in that is so handy. Worked like a charm. more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Reply Chris Burbridge says: November 18, 2014 at 3:28 pm Thank you very much, indeed.

Wordpress Custom Post Type Archive Page Not Found

Things to check: Before you do anything else, first go to setting/permalinks and re-save the permalink structure. In the past i used a pluggin ("Simple custom post type archives") to archive the custom post type and in my theme i had to use a file to display all Try a WPMU DEV membership today, completely for free, no obligation! I guess I thought that it would work the same way as the single-event.php file, is this wrong? –Ryan McGarvey Jun 10 '13 at 16:18 add a comment| 3 Answers 3

Thanks, Mikey. The result of this is that your recipe post archive is now: site URL + '' Which is already taken by the homepage, so your post archive is impossible to get Reply Chris Sorbi (Admin) says: September 15, 2013 at 1:46 pm Have you tried switching your theme for the default theme? Custom Post Archive Why do Internet forums tend to prohibit responding to inactive threads?

This means that when you add a post under this type, your permalinks would be: http://yoursite.com/book/your-post-name and the archive for this post type would be: http://yoursite.com/book/ What happens here is that Custom Post Type Archive Not Showing I have archive.php template and archive-zombies.php template. Cancel Reply Job Board Twenty Over Ten is hiring a Web Designer/Developer Hart is hiring a Web Designer Oregon State University Extended Campus is hiring a UX Graphic Designer See More How do I get the last lines of dust into the dustpan?

Is it typical for a president to fill his cabinent with campaign staff and political allies? Flush_rewrite_rules thank you for any help you can provide. I’ve searched everywhere, why they say archive-posttype.php? Can you teleport or Dimension Door out of your clothes?

Custom Post Type Archive Not Showing

I knew that my post type was fine so there was just something that kept messing up my work. Thank you thank you thank you! Wordpress Custom Post Type Archive Page Not Found Is there an easier way to test argument validation and field initialization in an immutable object? Cpt Ui Archive Page What this function does is that it constantly flushes the rewrite rule with every request so you definitely don’t want it in there.

Reply ↓ hj Permalink to comment# November 17, 2014 how to link a custom post page to archive page Reply ↓ Develocom Permalink to comment# November 20, 2014 The problem with http://swhcr.com/custom-post/wordpress-custom-post-type-archive-not-working.html Shortest path between two points with n hops How can an employee kindly decline to participate in an office potluck? I had trouble in various ways with all the rest of the code snippets above. Here is the code I'm using, adapted from this thread: is_archive() ) { Archive Page Not Working Wordpress

Many Thanks Reply Andru says: August 31, 2015 at 2:54 pm Thank very much! What is the mechanism for the hydrolysis of the boron-alkoxide complex in NaBH4 reduction? What now? navigate here Thank you again for sharing!

asked 2 years ago viewed 1711 times Blog How We Make Money at Stack Overflow: 2016 Edition Linked 1 Adding Categories across posts, and custom post types 3 Is there a Wordpress Archive Template Help Center Envato Market Terms Author Terms Envato Market Licenses Contact Envato Join our Community Home Forums Become an Author Community Meetups Become an Affiliate Email Newsletters Sign up for new I've also tried leaving the slug as the default, and setting rewrite => true, which doesn't help either. –Ryan McGarvey Jun 6 '13 at 18:30 @user2280983 Did you ever

Good example!

Kerri Dawe @gottabekd 5 years, 1 month ago adding ‘has_archive' => true when I register my post type as mentioned here solved my problems. It is made possible through sponsorships from products and services we like. *May or may not contain any actual "CSS" or "Tricks". What do I need to do? Taxonomy Template thanks, Bart Reply ↓ Emilien Permalink to comment# November 27, 2014 I have the same problem… did you come up to a solution?

Viewing 15 replies - 1 through 15 (of 39 total) 1 2 3 → parandroid @parandroid 6 years, 4 months ago Put code below to your functions.php add_filter('pre_get_posts', 'query_post_type'); function query_post_type($query) I was able to get everything working with this: function custom_post_archive($query) { if(!is_admin()) { if (!is_post_type_archive() && $query->is_archive()) $query->set( 'post_type', array('projects', 'nav_menu_item', 'post','team') ); remove_action( 'pre_get_posts', 'custom_post_archive' ); } } add_action('pre_get_posts', Thanks for sharing! http://swhcr.com/custom-post/wordpress-custom-post-type-url-not-working.html 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.