• Resolved mrrode

    (@mrrode)


    Any help is much appreciated!

    Debug Info

    {“lacrosse”:{“name”:”lacrosse”,”label”:”lacrosse”,”singular_label”:”lacrosse”,”description”:””,”public”:”true”,”publicly_queryable”:”true”,”show_ui”:”true”,”show_in_nav_menus”:”true”,”delete_with_user”:”false”,”show_in_rest”:”true”,”rest_base”:”\/learn\/lacrosse\/”,”rest_controller_class”:””,”has_archive”:”true”,”has_archive_string”:”\/learn\/lacrosse\/”,”exclude_from_search”:”false”,”capability_type”:”post”,”hierarchical”:”false”,”rewrite”:”true”,”rewrite_slug”:”\/learn\/lacrosse”,”rewrite_withfront”:”false”,”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”,”revisions”,”page-attributes”,”post-formats”],”taxonomies”:[],”labels”:{“menu_name”:”My lacrosse”,”all_items”:”All lacrosse”,”add_new”:”Add new”,”add_new_item”:”Add new lacrosse”,”edit_item”:”Edit lacrosse”,”new_item”:”New lacrosse”,”view_item”:”View lacrosse”,”view_items”:”View lacrosse”,”search_items”:”Search lacrosse”,”not_found”:”No lacrosse found”,”not_found_in_trash”:”No lacrosse found in trash”,”parent”:”Parent lacrosse:”,”featured_image”:”Featured image for this lacrosse”,”set_featured_image”:”Set featured image for this lacrosse”,”remove_featured_image”:”Remove featured image for this lacrosse”,”use_featured_image”:”Use as featured image for this lacrosse”,”archives”:”lacrosse archives”,”insert_into_item”:”Insert into lacrosse”,”uploaded_to_this_item”:”Upload to this lacrosse”,”filter_items_list”:”Filter lacrosse list”,”items_list_navigation”:”lacrosse list navigation”,”items_list”:”lacrosse list”,”attributes”:”lacrosse attributes”,”name_admin_bar”:”lacrosse”,”item_published”:”lacrosse published”,”item_published_privately”:”lacrosse published privately.”,”item_reverted_to_draft”:”lacrosse reverted to draft.”,”item_scheduled”:”lacrosse scheduled”,”item_updated”:”lacrosse updated.”,”parent_item_colon”:”Parent lacrosse:”},”custom_supports”:””}}

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

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

    (@tw2113)

    The BenchPresser

    When in doubt, I’d recommend removing these for testing sake, and let them use the default values:

    rest base
    has archive string
    rewrite slug

    It would make the archive url be .com/lacrosse/ if working right. Ideally, the “learn/lacrosse” part shouldn’t be combined like that, especially if the post type is supposed to be “lacrosse”. If I had to guess, you’re wanting that permalink structure for whatever reason it is, instead of .com/lacrosse/

    Does that sound right?

    Thread Starter mrrode

    (@mrrode)

    Thanks Michael for the response and Ill try this out! I was trying to create something similar to this if you have any ideas? https://moz.com/learn/seo

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hmm. For that type of idea, I’d probably look into parent/child posts in a “learn” post type, or potentially “learn” as a taxonomy with terms. “SEO” would be one of the terms among others.

    Trying to make it so it’d be easy enough to get the URLs desired without having to mix post types and taxonomies in the permalink structure. Mixing the two is not the easiest.

    Thread Starter mrrode

    (@mrrode)

    Thread Starter mrrode

    (@mrrode)

    But breadcrumb trail goes to home page oddly and im still using a rewrite slug and now a archive url

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Yeah, not quite sure exactly how the theme is set up to potentially handle those parts or how the breadcrumbs are ready for that. Assuming you’re going the parent/child posts route, you’d need to also find a way to do queries for post parent that way, you’d only show child posts of “lacrosse” at that url example, and then only children of a different topic to learn about.

    Thread Starter mrrode

    (@mrrode)

    So if I was to go the learn taxonomy route would you not need a cpt? “SEO” on example has archives for posts -i.e- learn/seo/links-link-building and also has regular posts -i.e- /learn/seo/external-link or are they mixing uboth post type and taxonomy? or would ACF combined with CPT help with accomplishing this?

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    I can’t say for certain exactly what should or already is composing your breadcrumbs. All I know is ultimately the last crumb should represent a post with content. How you construct the rest is out of my hands. Since it’s probably either a plugin feature or a theme feature built in, I can’t even say for certain how it’ll be constructed either. That’d be up to the original developers to help answer questions with.

    Wish I could be more help here with that portion of your questions.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘CPT Post Type Archive Redirects to Random Blog Post’ is closed to new replies.