The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
94 views

Advanced Custom Field - displaying only 1 post- how to get all posts displayed

I have two post types: post type = stores which has a title and custom field (by ACF) storeurl. I have another post type called books with just title and custom field bookcode (by ACF). I ...
1
vote
1answer
20 views

Advanced Query Logic With Multiple Taxonomies

I have a page on my site that acts as a search tool/search results page for users to find rental spaces. On the left side is a column of checkboxes that let the user filter the results by three ...
1
vote
0answers
18 views

Exclude posts which have any term in a certain taxonomy from the query

I have a custom taxonomy, and for a certain query I am doing, I want to retrieve all posts which do not have any terms of that taxonomy assigned (for example, they are tag-less). At the beginning I ...
0
votes
1answer
45 views

Display only first level children of my custom taxonomy categories

I'd like to display only first level children of my custom taxonomy categories I'am using wp 3.8 I've something like for my taxonomy "listing_category": Category 1 SubCattegoy1 Subsub category1 ...
0
votes
0answers
130 views

List post in wp-admin and sort them

this is my first public plugin called Sort posts in taxonomies. With the plugin I intend to list regular posts and custom post_types in the Category(Taxonomy) edit page in wp-admin. Further give the ...
0
votes
0answers
49 views

Query posts filter not working

I have created one custom post type which name is villa. In this post type I have added five post and assigned custom field values(mention bellow): Post Name Assigned Fields 1. Chalet ...
1
vote
1answer
21 views

Custom taxonomy [year] is directing to yearly archive

My custom taxonomy is linking to yearly archive instead of the post linked to it. I have created a custom taxonomy named "year" containing int (i.e 2008,2009,2010 etc). Have registered the custom ...
0
votes
0answers
28 views

Hiding an Advanced Custom Field based on Taxonomy Field selection

I am trying to to show/hide one advanced custom field based on the ACF taxonomy field without any luck. I have tried reworking this example a bit to fit my needs but nothing happens. Any ...
0
votes
0answers
12 views

WP query taxonomies not the same as output

I'm trying to build a custom query and I need to include the current category ID. I previously had the WP_Query args as: Array ( [post_status] => publish [posts_per_page] => -1 ...
0
votes
0answers
32 views

Display posts with custom post type and custom taxonomy

I have several different post types, and those post types have the same taxonomies linked to them. When I click one taxonomy, all of the different post types in that taxonomy is displayed. I ONLY want ...
0
votes
0answers
37 views

Display a Page of Results from Multiple Taxonomy Queries

I created a theme for a client with three CPTs and a Custom Taxonomy for each CPT. It is currently set up as CPT > North, South, East, West Each CPT has the same categories > activities, dining, ...
0
votes
2answers
36 views

Storing/querying custom date data

I'm currently building a site where I need to filter/order/query a custom post type by date data. I can't use the post published date for this, but can't decide what would be the most efficient way to ...
0
votes
0answers
24 views

How to exclude a taxonomy term using url alone

This may have been answered somewhere but I may not be searching for the right wording or my concept is just way off :-) In a nutshell: If I have a url like this: ...
0
votes
1answer
97 views

WP_Query tax_query - Show results if child has parent X

I've made a custom search which includes a 3 tier custom taxonomy that looks like this: continent - country - - state The search is formatting in the above way. Here is my problem: Example data: ...
0
votes
0answers
10 views

How to include taxonomy.php from wp-includes the proper way? [duplicate]

I tried including taxonomy.php from wp-includes folder in my custom php script (which is called by jquery) but I get this error: Fatal error: Call to undefined function add_action() in ...
0
votes
1answer
139 views

Custom post type (Jigoshop): unexpected value for $category_id (via $term->term_taxonomy_id) on live server

I have hacked together a function to spit out the category description for a Jigoshop custom post type, along with its associated image. (The product_cat image field is implemented by the Jigoshop ...
0
votes
1answer
101 views

How to List Custom Post Type Titles Based on Theirs Taxonomy Terms Inside a Nested Loop

I am trying to list at least the last three updated Custom Post Type's title lets call it "Cast" inside another loop which is listed based on the Taxonomy terms called "Actress" I used the following ...
0
votes
1answer
85 views

How to modify the query in taxonomy-custom.php to sort term archives by a custom meta field?

I am trying to create theme pages for custom taxonomy terms in which the archives are ordered by a custom meta field. I can do this with a new wp_query as follows: <?php ...
0
votes
1answer
69 views

Query custom taxonomy for category including children

I've using the Events Manager plugin which creates a custom post type of 'event' and a custom taxonomy called 'event-categories'. I have the category 'courses' which has an ID of 43. I also have a ...
0
votes
0answers
22 views

Filering Custom Post Types Taxonomies

I am relatively new in wordpress and having a problem querying a custom post type.. actually I am a bit confused.. I want to have a filter search for books which are needed for a certain exam.. in my ...
0
votes
0answers
20 views

Can I get parent taxonomy name from term in advanced search plugin?

I am currently trying to advance a plugin that basically creates a form where you add your own required types of data that you would want to be searched. In my form I have a taxonomy and I want to ...
0
votes
1answer
308 views

How to add images to taxonomy terms? [duplicate]

Could it be done or not? E.g. I want to be ble to upload an image when creating a new taxnomy term. So, when I create a new term called Mercedes in my custom made taxonomy called brands how can I ...
1
vote
0answers
47 views

Automatically Query Parent Taxonomy

I have a custom taxonomy on my site that I query from the sidebar of the currently displayed term. Say I am on the Term X archives, then my custom post type of Products with the term of Term X are ...
0
votes
0answers
56 views

Tax Query is only showing normal posts, not Custom Post types too?

This has been bugging me for the best part of a day now, so I'm appealing to help in order to calm my nerves. I run a site that has many custom post types. Every post type shares the use of the ...
0
votes
1answer
43 views

Multiple loops on a Search result page?

I have a custom template that displays search results based on a plugin. The wp_query contains all the taxonomy information to show the proper posts. How can I have two loops on the same results ...
2
votes
2answers
225 views

Paginated Taxonomy Term Archive including one post per term

I have a custom query which gets all the custom taxonomies for the custom post type and displays the latest post in each. At the moment it pulls in all the taxonomies. Is there a way I can limit the ...
0
votes
1answer
71 views

How to list tags from custom post type attachments?

So I am trying to list out all the tags created for images uploaded within my custom post type only. I added in a snippet of code to my themes functions.php file to enable media categories and tags: ...
0
votes
1answer
220 views

Custom Post type Query by Taxonomy

This has been driving me nuts for hours. I've checked numerous pages on the web for an answer but I can't find one. I'm trying to get all of the posts from a custom post type, that are attached to an ...
0
votes
0answers
89 views

Get value from post meta array, and add it as a category

I have a form that performs an AJAX hook that does several things, one of them is that it takes some form fields, adds them to an array, and adds that array as meta to the post that is created from ...
0
votes
0answers
159 views

Adding a query var to taxonomy term archive - gets redirected to the other taxonomy archive page

I want to pass another query var in the URL through a form while I'm on a taxonomy archive page. The URL would look like so ...
0
votes
0answers
28 views

Apply operators AND or OR while passing taxonomy query vars in form multi select dropdown

I want to add taxonomy query vars to a post type archive like so: http://www.mydomain.com/?taxonomy_a=term1,term2&taxonomy_b=term1+term2 how do I control operators in query vars if I use multi ...
0
votes
0answers
53 views

Organize Custom Post Types by multiple Custom Taxonomies

I'm trying to sort a list of publications by type, year and month. I have my query looking first into the "type" custom taxonomy called "document" to list the different publication types. But after ...
0
votes
1answer
367 views

Single.php for Custom Post Type > Taxonomy > Term

I have a custom post type - Films. It has a taxonomy of Film_cat, which in turn has two terms/categories - Term1 & Term2. For each single post within Term1, I would like to display a specific ...
0
votes
1answer
56 views

Variable Not Working Inside is_author() Array

I'm using a plugin (User Groups) to separate out users into, well, groups, and I need to figure out a way to create a conditional to check if an author is in a certain group. So, using get_term_by and ...
0
votes
1answer
93 views

Get posts by term slug only

What I'm looking to do is build a shortcode to that will display a list of posts based on the taxonomy slugs passed to it. But as far as I can tell, you can't use just a term's slug to pull posts in ...
0
votes
0answers
61 views

How to add custom taxonomy conditional to Ad Code Manager

This is an example how to create conditional in Ad Code Manager http://wordpress.org/support/plugin/ad-code-manager add_filter( 'acm_whitelisted_conditionals', 'my_acm_whitelisted_conditionals' ); ...
1
vote
0answers
201 views

How to fetch the data from Advanced Custom post when we search specific keyword or field name related to the post?

Actually i have created a custom post type and fetch the data from "Advanced Custom Fields" plugin after then connect to a custom search-form to search only the post data.It works good. But now i ...
0
votes
0answers
49 views

YARP - Nothing found

I try to use YARP (Yet Another Related Posts) plugin. I add this to my single.php. var_dump( related_entries() ); Structure I have several custom taxonomies ("gender", "store") and use the custom ...
1
vote
2answers
431 views

Custom Post Type Taxonomy Filters

Im really struggling to piece this functionality together, and hope someone can help or provide snippets to get me there. So I'm creating a section on a website where stories are published, I have ...
1
vote
2answers
49 views

Strip post_tags from list of returned taxonomy terms

Thanks to GhostToast for helping me on my way with this post. Now I am successfully able to echo out all of the taxonomy associated terms dynamically. However, this unfortunately also seems to spit ...
0
votes
2answers
33 views

Find all posts via SQL beginning with A of type B

I have problem with post and taxonomy query. What i need is to get all post's from custom post type which starts with A and have defined term. Here is my sql: SELECT * FROM $wpdb->posts, ...
0
votes
1answer
72 views

How to get multiple Taxonomies not All Taxonomies?

I am building a movie site, here is the codes to get the taxonomies function display_post_taxonomies( $content ) { if( is_single() ) { $args = array( 'public' => true, '_builtin' => ...
0
votes
0answers
37 views

Doesn´t get right information from wp_Query in wordpress using Easy Content Types

Have problems to sort out right information using WP_Query together with Easy Content Types. My query looks like this <?php $query = new WP_Query( array( 'post_type' => 'buildarea', ...
0
votes
0answers
52 views

Altering adjacent_image_link() for attachment pages

I'm attempting to repurpose adjacent_image_link() for use with attachment pages. I have galleries that are based on an attachment taxonomy ("image-gallery") and multiple terms (the specific gallery ...
0
votes
0answers
207 views

How to get Next or Previous Image on attachment page within same taxonomy term

I'm trying to set up non-conventional image galleries for a photography website using taxonomy pages instead of traditional pages which employ the [gallery] shortcode. The taxonomy ("image-gallery") ...
0
votes
1answer
132 views

Get ID and slug from taxonomy object

I have a custom field to select a category (custom taxonomy) and then I will display a list of all of its child-categories. This works fine when I return the custom field as "term_id." HOWEVER. I ...
0
votes
2answers
1k views

Get Taxonmy Term ID For Current Post

If I wanted to get the category ID for the current post, I would use something like this: <?php foreach((get_the_category()) as $category) { echo $category->cat_ID . ' '; } ?> How can I do ...
0
votes
1answer
272 views

How to reduce the database query-es

Hy, i make a slide for news, the question is how can i reduce the dathabase queries...ore how can i compress this code... http://s16.postimage.org/bswe0vrph/queries.jpg <div id="featured" > ...
0
votes
1answer
227 views

Sort query output on taxonomy term archive by post type using pre_get_posts

I'm using pre_get_posts to adjust the main query of the taxonomy term archive. What I would like to accomplish is that the output is listed by post_type. I have a total of 4 post types and I want to ...
0
votes
1answer
921 views

SQL QUERY needed to get POST category (taxonomy) ? - MUST be SQL statement

Working on a tool outside of Wordpress to query the wordpress database by POST_ID and return the Category Name associated. This is for a real estate website, and the Categories are called ...