Custom taxonomies are not meta values, but rather their own thing. I don’t think wp_list_pages()
or get_pages()
can query based on a taxonomy, so I’d recommend using WP_Query instead:
<?php
$relevant_pages_args = array(
'post_type' => 'page',
'posts_per_page' => -1,
'post_parent' => 65,
'tax_query' => array(
array(
'taxonomy' => 'relevance',
'field' => 'slug',
'terms' => 'alumni'
)
)
);
$relevant_pages = new WP_Query( $relevant_pages_args );
if( $relevant_pages->have_posts() ) : while( $relevant_pages->have_posts() ) : $relevant_pages->the_post(); ?>
<a href="https://wordpress.stackexchange.com/questions/52967/<?php the_permalink(); ?>"><?php the_title(); ?></a>
<?php endwhile; endif; wp_reset_postdata(); ?>
Related Posts:
- Tell the difference between a term and page when they have the same ID
- Remove taxonomy widget from “PAGE” post
- Taxonomies on Pages with Custom Formatting
- Unregistered taxonomy apears still as emtpy filter list
- Child Pages and Custom Taxonomies
- What is the current page’s Taxonomy?
- Using wp_query is it possible to orderby taxonomy?
- custom post type taxonomy “tag” archive : no post found
- Get taxonomy names by post id
- Modify Term Update Redirection
- Return only the custom sub-term for custom post type, do not echo term-parent
- Get total number of comments from posts in a specific custom taxonomy
- Custom hierarchal taxonomy loses interface hierarchy when selecting parent & children
- Formating the_terms() function output
- Custom taxonomy on users with UI
- Post tags saving as both tag name & tag ID on post update when tags are displayed as checkboxes
- Taxonomy Relationships
- Combine multiple custom user taxonomy in single url
- Add custom taxonomy to default category taxonomy?
- how to get title to custom tags page
- Display sub-taxonomies based on SELECTED parent-taxonomy
- Checking if a Page has an Associated Term?
- What are terms and taxonomy, how they related to post and how these three are stored in database?
- Taxonomy , subtaxonomy,child taxonomy of a product woocommerce
- Get terms ordered by post date
- How can I get WP to build a feed based on multiple taxonomy terms
- Removing the “Popular Terms” area from the Taxonomy Edit Screen in the Admin Area
- Change permalink of post if it belongs to custom taxonomy
- Sorting taxonomy columns by meta value numeric
- Get pages only with a specific taxonomy
- ACF vs Taxonomies
- Reverse traversing taxonomy based on term_id
- How to filter terms from a custom taxonomy by a usermeta value on all screens and templates
- Get Current Custom Taxonomy ID by Post ID
- Use get_the_terms to list subcategories of custom taxonomy
- I used the Tax-meta-class by bainternet but i still can’t get it to display any of the results.
- Custom taxonomy [year] is directing to yearly archive
- Display Taxonomy Terms in an option tag with value being the slug
- Modify “View” in admin panel for custom taxonomy
- Taxonomies on custom taxonomies
- How to join result of different taxonomies?
- Hide product categories and taxonomy terms in menu if empty
- Custom taxonomy forms for user profile
- How to add Post Format Taxonomy Archive page in the menu?
- How to get all taxonomies which can be added in menu?
- WordPress Tag or Custom Taxonomy Return All Posts if has that Word in Post Title
- get the taxonomies terms associated with users
- Add Taxonomy Subcategory To Permalink
- Replace taxonomy permalinks
- Custom Taxonomy Term Archive Page Template that Filters 2 or more Taxonomies
- Create custom taxonomy and Display in metabox dropdown
- Custom Taxonomy with tax_query
- How to create a custom taxonomy using a shortcode?
- Override Taxonomy Template
- Get posts in certain Taxonomy terms for the current page url
- Trying to add taxonomy to get_categories() but it’s not working. How to fix this?
- Edit custom taxonomy description programatically
- Get taxonomy name for the current post
- View the complete list of a taxonomy in the navigation menu
- Get name of taxonomies of current page
- Filter through custom taxonomy with an array of taxonomy IDs
- Add custom taxonomy as a css class
- Taxonomy page shows category in title
- Query custom taxonomy for category including children
- Taxonomy Overview Page?
- Order taxonomy terms wordpress
- Only display latest custom taxonomy post
- Can You Build Page Templates Without Extra Files
- Unable to get the Parent Custom Taxonomy Terms
- Unsetting post_tag taxonomy breaks term description for other taxonomies
- register_taxonomy for both ‘Post’ & ‘Page’
- How to combine taxonomies into URL?
- Why do my quick edits for custom taxonomies not show on the post frontend?
- 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
- Fill New Taxonomies
- Custom Taxonomies Archive Page 404
- How to replace custom post type with custom taxonmy in permalinks
- Cloning product not copying custom taxonomies
- how do you pull data from two taxonomies?
- problem : Custom taxonomy template not showing
- Filter “get_terms” query
- How To Create Dynamic Permalink To Custom Taxonomy List of Current Posts?
- generate random slug when adding taxonomy
- ACF Custom field not showing in Timber Taxonomy page
- Add and Custom category for posts “PAGE”
- Displaying subcategories and then posts in taxonomy template
- Sort Taxonomy List by Custom Values
- How to display custom taxonomy
- How to finish this loop?
- Taxonomy term breadcrumb; how?
- add custom fields in custom taxonomy meta box in wordpress-3.5.2
- How to permanently delete a taxonomy
- Using wp_query is it possible to orderby taxonomy?
- Custom Taxonomy Template Variables Available?
- Display woocommerce product_cat child terms with thumbnails
- Group custom taxonomies based on tags contained in their posts
- Taxonomies starting with a hyphen (minus) to assign B.C. dates to a post