• Resolved GregF

    (@gregf)


    I created a CPT called “Trips” and a taxonomy called “Trip Categories”. These work as expected. However, requests for regular post categories result either in a 404 error or in redirection to one of the CPT pages when the first part of the page slug are the same. For example, /category/baja/ redirects to /baja-sea-of-cortez-kayaking/.

    I’ve spent a lot of time trying to figure this out. Any ideas?

    Thanks.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    did you set rewrite slug values for your “trip categories” taxonomy to something like “category” ?

    I’m curious if you have a conflict the standard category taxonomy where like your grand canyon link above is trying to find “grand canyon” from the “category” tax and not finding any matching terms.

    Thread Starter GregF

    (@gregf)

    The rewrite slug on the taxonomy is “trip-categories”, so there shouldn’t be a conflict there.

    I’m not sure that I understand your second question but when I look under Posts > Categories there are 11 posts with the slug of “grand-canyon”.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hmm.

    Any chance you would be willing to visit your CPTUI tools area share the blobs of content on the right side of the “post types” and “taxonomies” tabs? It’d allow me to import your settings as is. I’m curious what may or may not be going on. I don’t have immediate answers here.

    Thread Starter GregF

    (@gregf)

    Here you go:

    {“trip”:{“name”:”trip”,”label”:”Trips”,”singular_label”:”Trip”,”description”:”Packaged trips offered by Rivers & Oceans”,”public”:”true”,”publicly_queryable”:”true”,”show_ui”:”true”,”show_in_nav_menus”:”true”,”delete_with_user”:”false”,”show_in_rest”:”true”,”rest_base”:””,”rest_controller_class”:””,”has_archive”:”true”,”has_archive_string”:””,”exclude_from_search”:”false”,”capability_type”:”post”,”hierarchical”:”false”,”rewrite”:”true”,”rewrite_slug”:””,”rewrite_withfront”:”true”,”query_var”:”true”,”query_var_slug”:””,”menu_position”:”20″,”show_in_menu”:”true”,”show_in_menu_string”:””,”menu_icon”:”dashicons-admin-site”,”supports”:[“title”,”thumbnail”],”taxonomies”:[“trip_categories”],”labels”:{“menu_name”:”Trips”,”all_items”:”All Trips”,”add_new”:”Add New”,”add_new_item”:”Add New Trip”,”edit_item”:”Edit Trip”,”new_item”:”New Trip”,”view_item”:”View Trip”,”view_items”:”View Trips”,”search_items”:”Search Trips”,”not_found”:”No Trips Found”,”not_found_in_trash”:”No Trips Found in Trash”,”parent_item_colon”:””,”featured_image”:””,”set_featured_image”:””,”remove_featured_image”:””,”use_featured_image”:””,”archives”:””,”insert_into_item”:””,”uploaded_to_this_item”:””,”filter_items_list”:””,”items_list_navigation”:””,”items_list”:””,”attributes”:””,”name_admin_bar”:””,”item_published”:””,”item_published_privately”:””,”item_reverted_to_draft”:””,”item_scheduled”:””,”item_updated”:””},”custom_supports”:””}}

    {“trip_categories”:{“name”:”trip_categories”,”label”:”Trip Categories”,”singular_label”:”Trip Category”,”description”:”Categories for Rivers & Oceans Trips”,”public”:”true”,”publicly_queryable”:”true”,”hierarchical”:”false”,”show_ui”:”true”,”show_in_menu”:”true”,”show_in_nav_menus”:”true”,”query_var”:”true”,”query_var_slug”:””,”rewrite”:”true”,”rewrite_slug”:”trip-categories”,”rewrite_withfront”:”0″,”rewrite_hierarchical”:”0″,”show_admin_column”:”true”,”show_in_rest”:”true”,”show_in_quick_edit”:”true”,”rest_base”:””,”rest_controller_class”:””,”labels”:{“menu_name”:”Trip Categories”,”all_items”:”All Categories”,”edit_item”:”Edit Category”,”view_item”:”View Category”,”update_item”:”Update Categories”,”add_new_item”:”Add New Category”,”new_item_name”:”New Category”,”parent_item”:”Parent Category”,”parent_item_colon”:”Parent Category:”,”search_items”:”Search Categories”,”separate_items_with_commas”:”Separate Categories with Commas”,”add_or_remove_items”:”Add or remove Categories”,”not_found”:”No Categories Found”,”no_terms”:”No Categories”,”popular_items”:””,”choose_from_most_used”:””,”items_list_navigation”:””,”items_list”:””},”meta_box_cb”:””,”default_term”:””,”object_types”:[“trip”]}}

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Thanks.

    As is, I’m not managing to recreate the issues, and that’s not trying to say you’re not experiencing them. Just that there are likely going to be other factors playing their parts in what’s going on, that I don’t have the ability to recreate.

    Unsure if you have a test copy of the site that you’re able to recreate the issue on, and thus also safely potentially debug what’s going on and why with these queries and results.

    Thread Starter GregF

    (@gregf)

    I was able to resolve the problem, which was self-inflicted. It was part of a block of code in functions.php that was being used to display archives in a grid. Thanks for looking into it.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Ahh. Darn self gotchas. Glad you got it figured out, nonetheless.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Conflict with blog post categories’ is closed to new replies.