• Resolved reti

    (@reti)


    Hi,

    I created a custom post type, but it don’t appear in the main colllection. How to fix it?

    Regards,
    Reti

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

    (@tw2113)

    The BenchPresser

    Depends on how code savvy you may or may not be. It’s not a setting we have with the free plugin.

    Some code like https://developer.wordpress.org/reference/hooks/pre_get_posts/#comment-3296 looks like it’d be a good starting point, though I think it needs a bit more customization overall since that would add it for consideration to all the main queries.

    Thread Starter reti

    (@reti)

    OK, thanks.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Welcome

    beca.lewis

    (@becalewisgmailcom)

    For some reason I can’t find a way to post my own question, but it kinda relates to this one.

    During the last wordpress update something has happened so that I am getting 404 pages.
    To see what I mean go to Theshift.com and check the two boxes labeled Podcast and Shift Ezine.

    Three years ago this happened, and we did something. What was it?

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    @becalewisgmailcom Try flushing your permalinks by visiting that permalinks settings page and just hit save without touching settings.

    beca.lewis

    (@becalewisgmailcom)

    Okay – tried that – wish it would have worked … but it didn’t 🙁

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Do you happen to have a page named “podcast” too? or is the url/slug just meant to be for an archive of podcast episodes?

    Looks like the EZine link is a category archive, or perhaps a custom taxonomy that has a rewrite to “category” which would likely conflict with the out-of-box “category” that comes with WordPress.

    beca.lewis

    (@becalewisgmailcom)

    The later – I don’t have a page named podcast

    Would this category think just have happened? I haven’t changed anything and it’s been like this for years and years … literally!

    beca.lewis

    (@becalewisgmailcom)

    Links like this don’t work either – https://theshift.com/’/pod_cast_categories/reality-shifts

    All through this plugin

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Something had to have changed, given that it has been fine for years. However, I can’t say at all what may have as I’ve never been to the site until today.

    What changes, if any have been made to the site? Anything content? anything new updates from other unrelated plugins? WordPress core? Any new customizations made recently?

    beca.lewis

    (@becalewisgmailcom)

    Of course – I meant I hadn’t changed anything myself. However, the theme has updated, and so has wordress.

    No new customizations. No new content.

    Three years ago this happened

    https://wordpress.org/support/topic/category-feeds-broken-2/

    I noticed there is some this /’/ in the feed I posted above. Is that something? I don’t remember seeing that before

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Looks like I didn’t really have any definitive answer then either for what was going on.

    Whats in your CPTUI settings? You can get that in an copy/paste ready version by visiting the “Tools” menu items and related tabs once there. i’m curious what’s in your settings there.

    beca.lewis

    (@becalewisgmailcom)

    Here you go

    {“products”:{“name”:”products”,”label”:”Products”,”singular_label”:”Product”,”description”:””,”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”:””,”show_in_menu”:”true”,”show_in_menu_string”:””,”menu_icon”:””,”supports”:[“title”,”editor”,”thumbnail”,”excerpt”,”custom-fields”,”comments”,”revisions”,”page-attributes”,”post-formats”],”taxonomies”:[“category”,”product_categories”],”labels”:{“menu_name”:””,”all_items”:””,”add_new”:””,”add_new_item”:””,”edit_item”:””,”new_item”:””,”view_item”:””,”view_items”:””,”search_items”:””,”not_found”:””,”not_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”:””},”podcast”:{“name”:”podcast”,”label”:”Podcasts”,”singular_label”:”Podcast”,”description”:”Shift The Story Podcasts”,”public”:”true”,”publicly_queryable”:”true”,”show_ui”:”true”,”show_in_nav_menus”:”true”,”show_in_rest”:”false”,”rest_base”:””,”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”:””,”show_in_menu”:”true”,”show_in_menu_string”:””,”menu_icon”:””,”supports”:[“title”,”editor”,”thumbnail”,”excerpt”,”custom-fields”,”comments”,”revisions”,”page-attributes”,”post-formats”],”taxonomies”:[“category”,”pod_cast_categories”],”labels”:{“menu_name”:””,”all_items”:””,”add_new”:””,”add_new_item”:””,”edit_item”:””,”new_item”:””,”view_item”:””,”view_items”:””,”search_items”:””,”not_found”:””,”not_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”:””},”custom_supports”:””}}

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hrm, drat. Nothing immediate standing out as odd there.

    Just case, can you pass along the taxonomy settings too?

    beca.lewis

    (@becalewisgmailcom)

    I fixed it!

    It was in the permalinks. Somehow they got messed up – I checked my other sites and used them as an example.

    What I had was

    /’/%year%/%monthnum%/%day%/%postname%/’

    And I changed it to this

    /%category%/%year%/%monthnum%/%day%/%postname%/

    Thanks for helping me with this!

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘custom post type don’t appear in the main colllection’ is closed to new replies.