Internally wp_list_categories()
uses get_term_link()
for the URL of the terms. That function can be filtered using the term_link
filter, so you could filter any links to the current term and replace them with links to the post type archive:
function wpse_307202_term_link( $termlink, $term, $taxonomy ) {
if ( is_tax( 'cat_projet' ) ) {
if ( get_queried_object_id() === $term->term_id ) {
$termlink = get_post_type_archive_link( 'post_type_name' );
}
}
return $termlink;
}
add_filter( 'term_link', 'wpse_307202_term_link', 10, 3 );
Related Posts:
- Taxonomies not appearing in columns on dashboard
- How to display term description in empty terms archive?
- Save Filter for Taxonomies
- Amend taxonomy to search in wordpress admin
- Include get_term_link inside search
- transfer two existing taxonomy terms into one custom metabox
- Sort Taxonomy List by Custom Values
- Custom Taxonomy Term Archive Page Template that Filters 2 or more Taxonomies
- Getting associated taxonomies
- How to use multiple archive templates for a taxonomy?
- problem in taxonomy-{taxonomy}.php pagination
- Adding custom taxonomy in my existing category URL
- Custom Taxonomy Query
- How to get posts which must match both custom taxonomies?
- Multi-select field for Taxonomy can’t save the value
- Create custom taxonomy and Display in metabox dropdown
- Custom Taxonomy with tax_query
- Redirect to another page using contact form 7? [closed]
- How to create a custom taxonomy using a shortcode?
- Override Taxonomy Template
- WordPress implode & wp_insert_post question
- Output unique taxonomy terms of posts inside a loop
- Get the taxonomy of the post
- Remove custom taxonomy column from my custom post type columns
- how can i display taxonomy instead of category on my web page?
- Taxonomy Meta Box in User Profile?
- How Parent Taxonomy automatically added to the post when using `wp_set_object_terms()`?
- Get posts in certain Taxonomy terms for the current page url
- Question on using custom structures for categories
- Proper way to update the slug of a taxonomy using register_taxonomy? [duplicate]
- Displaying Custom Taxonomy without a hyperlink
- Is it safe to register a taxonomy without using any hooks?
- Get object for a few selected taxonomies
- How to add images to taxonomy terms? [duplicate]
- Why get_page_template() doesn’t show taxonomy template file name?
- Trying to add taxonomy to get_categories() but it’s not working. How to fix this?
- Query posts using custom taxonomy and selected terms
- Edit custom taxonomy description programatically
- Get only immediate children (and not grandchildren) of a hierarchical custom taxonomy term
- Get taxonomy name for the current post
- Show Taxonomies with admin area for custom post type?
- View the complete list of a taxonomy in the navigation menu
- How to group all terms children’s in custom taxonomy?
- My custom taxonomy page is leading in 404 page
- Show template part if part of term
- one post per term taxonomy
- Build filter for post-type + multi taxonomies + multi terms
- How can I change the output display of my pagination?
- how to get term id from current post type instead of name
- Advanced search redirecting to another page then filter further
- Corrupted nav-menu?
- Get name of taxonomies of current page
- Filter through custom taxonomy with an array of taxonomy IDs
- Remove taxonomy widget from “PAGE” post
- List Top 5 taxonomy terms based on number of post
- How to get attached image to taxonomy..?
- Loop through custom taxanomy in post and display custom fields from posts
- How to get list of only custom taxonomies?
- Get list of taxonomies associated with users
- WordPress sub taxonomy template
- query_posts that have custom taxonomy and limiting what shows based on the taxonomy
- Sort and paginate custom post taxonomies alphabetically
- Dropdown taxonomy lists in admin menu
- Register `product_cat` taxonomy for default post post type
- Add custom taxonomy as a css class
- Custom Taxonomy Not Saving in Front End Post
- Taxonomy archive template that shows posts from more than one taxonomy
- Taxonomy page shows category in title
- Taxonomy.php how to show post only in current taxonomy with wp_query?
- Display taxonomy with a maximum number of letters
- Don’t display taxonomy if empty
- Query custom taxonomy for category including children
- Taxonomy Overview Page?
- Taxonomize taxonomy terms?
- Order taxonomy terms wordpress
- Only display latest custom taxonomy post
- How can I get Taxonomy Images to work with ‘orderby’ argument?
- Unable to get the Parent Custom Taxonomy Terms
- How to get the term description in a taxonomy term archive query?
- How to define %category% for custom taxonomies?
- Unsetting post_tag taxonomy breaks term description for other taxonomies
- Taxonomies on Pages with Custom Formatting
- Use wp_list_categories to list parent categories from actual term
- Drop-down filter doesn’t retrieve custom taxonomies
- Creating a drop-down and filter button for two custom taxonomies assigned to a custom post type
- How to combine taxonomies into URL?
- Why do my quick edits for custom taxonomies not show on the post frontend?
- Filter with two id of the same value CPT UI(taxanomies)
- Unique taxonomy for post
- Trash Bin for Categories?
- Set two terms for a post when they differ only by an accent
- Show related products by attribute based and certain conditions
- Prioritise Pages over Taxonomy Term Root Archive, but not Taxonomy Term Child Archives
- Tracking the name of a custom taxonomy
- Add terms to a taxonomy archive from within the same taxonomy
- Show recent posts from a custom taxonomy in wordpress
- Keeping session instance of random display results over pagination breaks
- Rewrite Search URL Permalink For CPT Custom Taxonomies
- display taxonomy terms with link
- new custom filed not showing in taxonomy