You’re using a deprecated method of querying by taxonomy. Read the Codex and use tax_query
:
$args=array(
'post_type' => 'book',
'post_status' => 'publish',
'posts_per_page' => -1,
'caller_get_posts'=> 1,
'tax_query' => array(
array(
'taxonomy' => 'facts',
'field' => 'slug',
'terms' => 'information'
)
)
);
FYI, caller_get_posts
is also deprecated.
Related Posts:
- WP_insert_term how to insert multiple values as taxonomny term?
- How to display term description in empty terms archive?
- Outputting an array of term meta values in a custom WooCommerce tab?
- How Can I Change a Taxonomy URL Based On The Originating URL?
- Build filter for post-type + multi taxonomies + multi terms
- Include get_term_link inside search
- Tax query array terms display out of order
- Order posts with custom taxonomy array
- Create heirachy of post terms from array & assign post to terms
- get_the_term_list without links in 3.1
- Inserting terms in an Hierarchical Taxonomy
- get_term_children for immediate children only (not grandchildren)
- Is there a way to ‘Lock’ a Taxonomy?
- Creating a non-removable taxonomy term
- Return only the custom sub-term for custom post type, do not echo term-parent
- wp_insert_term is adding a term that has no name
- Get terms from multiple taxonomies
- Formating the_terms() function output
- array_pop() expects array, boolean given for $event_type_term ->slug
- get_terms showing link to category even if all posts are drafts
- Determine if Term has Grandparent/Great-Grandparent
- Retrieving custom taxonomy in order, but excluding specific tax IDs
- Get main parent categories for a product
- get taxonomy terms for parent and child
- Taxonomy query for children of parents
- Separator for multiple terms
- Contact Form 7 – Populating dropdown list with terms relative to the post
- Filtering more than one term in a taxonomy in WP
- Ordering Posts with Custom Taxonomy Terms Array
- How to create a theme template for the taxonomy “root”
- 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?
- Get multiple term objects by ids
- Echo custom taxonomy term name
- How to handle “the_terms” inside loop
- How to create drop down for child categories of current taxonomy being viewed?
- How to dynamically add custom taxonomy terms as a sub-menu of an existing menu item, using custom walker class
- Get terms ordered by post date
- Why does WP rename similar “term name”-slugs in separate taxonomies?
- Get Bottom Most Level Taxonomy Terms?
- How can I get WP to build a feed based on multiple taxonomy terms
- get_terms in a taxonomy template
- Set custom post type terms by id without knowing taxonomy
- Display hierarchical subterms of custom taxonomy based on depth
- How to determine the depth of a term in a custom taxonomy?
- get_term_children doesn’t return an array of children terms
- Use get_the_terms to list subcategories of custom taxonomy
- Term count by user
- List child terms if parent but show nothing on children
- Displaying custom taxonomy in the admin list of a custom post type
- How to add contents of a custom field to a taxonomy term list?
- Sort order by slug for looped child terms of custom taxonomy
- Simple Filter between multiple taxonomys
- Updating / Saving items generated by wp_terms_checklist on frontend
- Rewrite rules for varying nested terms of custom taxonomy
- List Posts For Terms Of A Custom Taxonomy For Any Post Type
- Query posts from a child taxonomy term id
- get_terms() duplicate first term of a custom taxonomy
- Count Number of Posts in Taxonomy Term in Last 24 Hours
- Remove custom taxonomy column from my custom post type columns
- Update table wp_term_taxonomy.count after INSERT INTO via SQL
- How can I reduce amount of ifs and else ifs in this specific block of code?
- Get all attachments by custom taxonomy – term
- Echo custom taxonomy slug
- Get terms that don’t belong to current post with a shortcode
- Admin (All posts) stop responding problem
- How to get posts that contain multiple terms from multiple taxonomies?
- Cannot delete or edit a single term in a custom taxonomy, taxonomy name is wrong?
- How best to store data (URLs and IDs) extracted from posts and pages using custom taxonomies
- Advanced search redirecting to another page then filter further
- Get name of taxonomies of current page
- Create alphabetical Pagination for custom taxonomy?
- export and import taxonomy terms from one taxonomy to another
- URL rewriting taxonomy term
- Find terms in a custom taxonomy based on the hirearchy
- Wp_query…a type of term a different div
- Proper way to create taxonomy queries
- Show all terms in a custom taxonomy with all child terms wrapped in a ul
- Order taxonomy terms wordpress
- Show single Child Category on Custom Post
- Unable to get the Parent Custom Taxonomy Terms
- Unsetting post_tag taxonomy breaks term description for other taxonomies
- Get custom taxonomy terms that contain posts that have another taxonomy term
- wp_insert_post not adding taxonomy (using wp_set_object_terms)
- Filter “get_terms” query
- use apply_filters return taxonomies custom post type
- generate random slug when adding taxonomy
- Sort Taxonomy List by Custom Values
- How to filter a taxonomy meta field to the ‘single_term_title’ filter hook
- Custom post type term names with ampersand in the term name
- If page is a taxonomy do X, if is a term, do Y
- Query pages by child term
- Getting the parent terms adds additional empty markup [closed]
- Custom taxonomy list in two columns
- Taxonomy term breadcrumb; how?
- Insert term description programmatically into hierarchical custom taxonomy
- get multiple values from $_GET from multiple checkboxes
- Get post terms with hierarchical relationships
- Taxonomy archive link from term id
- Hide empty categories on widget