• Resolved ydoupo

    (@ydoupo)


    I have enabled the Enable Archive Page option from the linked Custom Post Type, in the breadcrumb from rankmath, at the single post page, every link on beardcrumb works fine, but when I enter the related taxonomy page, on the beardcrumb, there is just text, no link for the parent taxonomy

    And the pods taxonomy advanced option does not have the same Enable Archive Page option, please let me know how to enable the taxonomy archive page? currently i am using a page to display it, but the breadcrumb cannot add link.

    please help me fix this, thanks

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Paul Clark

    (@pdclark)

    Hi @ydoupo,

    As with WordPress core’s register_taxonomy(), the behavior of taxonomy archives is that if the taxonomy is public, it will produce an archive. This is because the core user interface of a taxonomy is the archive listing.

    Here are some things to check:

    • Verify the “public” checkbox is checked. It is the first option under “Advanced Options” when editing the taxonomy in Pods.
    • Verify there is not any custom rewrite in effect. This means having “Rewrite” under “Advanced Options” unchecked. This is advanced functionality.
    • At this point, verify the archive page for a specific term shows up by clicking “View” in the actions for a term on /wp-admin/edit-tags.php?taxonomy=example_taxonomy, where example_taxonomy is the custom taxonomy slug.
    • If the archive 404s, try saving permalinks as anything but “Plain” on /wp-admin/options-permalink.php. If something besides “Plain” is selected, clicking “Save Changes” should refresh all URL settings from all plugins, in case something was conflicting, such as any plugins that might not refresh permalinks when being enabled or disabled.
    • If there is still a 404, verify the slug of the page you are currently using as an archive page does not conflict with the URL of a taxonomy term archive. While it is technically possible to have a page and an archive share a URL structure, doing so requires very targeted changes to default behavior of WordPress’s URL matching system. It is easiest to redirect to a similar, but different URL, of a page, than it is to change permalinks to support both at once, as WP permalinks are powered by regular expressions which are evaluated in a specific order.
    • I would expect RankMath would work as expected with a custom registered taxonomy. If not, see the seven examples in RankMath’s documentation for various ways to customize breadcrumb display and behavior to your needs.
    • For getting the URL for various taxonomy term archives within a Pods template context, magic tags will take the form of {@permalink} if the currently queried object is a taxonomy term, or {@taxonomy_slug.permalink} if the currently queried object is a post type connected to a taxonomy with a slug taxonomy_slug.
    • Similar WordPress core functions which do the same thing as the magic tags include get_term_link(), which takes a term object, term ID, or slug, typically retrieved from wp_get_object_terms(), which takes IDs of posts and the taxonomy slug, returning IDs or WP_Term objects of the terms assigned to the post object. These functions could be combined in various forms to filter RankMath breadcrumbs to contain associated linked terms in most any context or order. For example, prioritizing certain terms in an article breadcrumb, like adding a linked “Featured” term to the breadcrumb if that is present, then falling back to other assigned options if available.
    Plugin Author Jory Hogeveen

    (@keraweb)

    This topic has been stale for a while now, closing topic!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘pods taxonomy no archive page’ is closed to new replies.