Without seeing the code, it’s a bit hard…
But if you’re trying to query for a certain taxonomy when 'post_type' => 'page'
, make sure you
Add a registered Taxonomy to a registered Post Type. (See Codex)
In this case, you would add it to 'post_type' => 'page'
since “Pages” do not support any taxonomies by default.
Again, you may have done this and the issue is something else, but that’s my best guess given th information at hand 🙂
EDIT
So in theory, this would be the way about it using WP_Query, based on your code snippet
$args = array(
'post_type' => 'page',
'tax_query' => array(
array(
'taxonomy' => 'post_tag',
'field' => 'slug',
'terms' => 'montly',
),
),
);
$query = new WP_Query( $args );
Related Posts:
- List taxonomy / category count showing list published posts only
- Taxonomy archive showing no results
- Get taxonomy parent using child slug (from merged taxonomies)
- how do you pull data from two taxonomies?
- How to use tax_query other than by slug or id or solve custom taxonomy tags conflicts with pre-existing tags?
- Advanced AND tax_query in sidebar with 2 taxonomies
- wp_get_object_terms count on taxonomies within an category archive
- Contact Form 7 – Populate Select List With Taxonomy [closed]
- Why is my working Custom Taxonomy not in get_taxonomies array?
- Custom taxonomy on permalink
- How do I filter posts by taxomony using AJAX
- How to return a list of custom taxonomy terms via the Gutenberg getEntityRecords method
- Create taxonomy with meta term using the WP Rest Api
- Get current term’s ID
- Taxonomies not appearing in columns on dashboard
- How to modify default taxonomy field to a single text field?
- How to set hierarchical terms to a post using wp_set_object_terms
- Echo taxonomy term meta on author.php
- Hierarchical display of custom taxonomy
- How to output the taxonomy term name in a widget
- How to link categories to custom taxonomy terms?
- Save Filter for Taxonomies
- Is It Possible To Have Shared WordPress Custom Post Types?
- WordPress renames slug of tags used in multiple taxonomies?
- Allow only 1 instance of each term in each custom taxonomy
- How do I sort posts by custom taxonomy?
- get_terms: determine if taxonomy term has children
- How to add autocomplete to custom taxonomy for CPT
- Set a taxonomy as private
- “show option all” on list categories doesn’t display taxonomy
- Current category link filter
- display taxonomy slug from term ID
- Redirect all child taxonomy to its parent
- Wrapping result of the_terms in a span with a class of the term name
- How do I taxonomy terms based on terms they are used alongside?
- How can I populate a select element with terms from a custom taxonomy and filter post results?
- How do I list the pages of a custom taxonomy?
- What is faster: custom taxonomy or serialized post-meta for db retrieval? (over 60,000 posts)
- Get taxonomy based on another taxonomy slug
- Why does a new taxonomy term get created when I assign an existing term to a post?
- Retrieve Custom Taxonomies according to posts selected
- Add Image Uploader In Admin Panel
- Tell the difference between a term and page when they have the same ID
- Getting associated taxonomies
- How to use multiple archive templates for a taxonomy?
- Hiding taxonomies with no children WP_Query & tax_query
- Custom Taxonomy Query
- WordPress implode & wp_insert_post question
- how can i display taxonomy instead of category on my web page?
- Taxonomy Meta Box in User Profile?
- Proper way to update the slug of a taxonomy using register_taxonomy? [duplicate]
- Displaying Custom Taxonomy without a hyperlink
- How to do a particular wp_query taxonomy search
- Get only immediate children (and not grandchildren) of a hierarchical custom taxonomy term
- 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
- Corrupted nav-menu?
- Remove taxonomy widget from “PAGE” post
- List Top 5 taxonomy terms based on number of post
- Register `product_cat` taxonomy for default post post type
- Custom Taxonomy Not Saving in Front End Post
- Taxonomy.php how to show post only in current taxonomy with wp_query?
- Don’t display taxonomy if empty
- how to access the $query variable inside taxonomy-xxx.php template file?
- Taxonomize taxonomy terms?
- Include get_term_link inside search
- Set two terms for a post when they differ only by an accent
- Rewrite Search URL Permalink For CPT Custom Taxonomies
- display taxonomy terms with link
- Custom field with terms from another taxonomy programmatically
- Taxonomies and subtaxonomies relations
- Listing Cities A custom taxonmy by selection order
- Template taxonomy-{taxonomy}.php doesn’t show my posts
- Can I get thumbnail of taxonomy?
- Custom Taxonomy Not Being Recognized by is_tax()
- How can I rewrite a custom taxonomy archive slug
- How to truncate the description in the admin panel for a custom taxonomy
- What’s the url queryvar for a taxnomy archive?
- WordPress Multiple Taxonomy Query
- set_object_terms for custom taxonomy in custom post type – not working
- Get all users attached to a taxonomy
- Display taxonomy posts
- Add image to taxonomy and output to homepage
- Child Pages and Custom Taxonomies
- Remove taxonomy menu without removing the metabox?
- How to perform a search inside a specific taxonomy category
- Sorting Custom Taxonomy in ASC/DESC order?
- How can i set post_per_page in my taxonamy?
- Exclude 2 in 3 terms of A Taxonomy from all Archives
- Select default taxonomy on dropdown
- WordPress Taxonomy Menu
- Loop custom post type by taxonomy (Category)
- get_terms() – unexpected ‘=>’ (T_DOUBLE_ARROW) error
- get_term_children specific no id
- Custom Search only for my Custom Taxonomy Page – data
- Complex Taxonomy scheme
- Add custom display condition to Elementor Theme Builder for custom taxonomy children, grandchildren, and great-grandchildren
- Add text in custom taxonomy
- How do I check if a post has a term with a particular ancestor/parent?