A taxonomy is a generic "category" used to organize posts and custom post types
1
vote
2answers
510 views
Custom taxonomy admin page
If you want a custom admin page for a taxonomy, you can set 'show_ui' => false when you register it to suppress the default admin page and then create a new admin page to replace it.
However ...
0
votes
2answers
180 views
Update all posts at once
I have added a custom taxonomy to my posts, that will get a value by iteself on post_update action. What will be the SQL query to update all my posts at once so that the taxonomy value is added to ...
0
votes
1answer
228 views
List taxonomy term “Last Name” + “First Name” (taxonomy custom field) in a post loop
I have a few custom fields for a taxonomy "Author". The term title is the Author's last name, and one of the custom fields is his first_name.
Now I need, in a post loop, to list all "Authors" of that ...
2
votes
1answer
413 views
How can I set up a category “overview” page?
I know I can use the Template Hierarchy to set up custom theme pages for terms inside a category, like these:
mysite.com/category/tech/ // category-tech.php
mysite.com/category/blog/ ...
0
votes
2answers
1k views
Displaying related posts in a custom post type by a custom taxonomy
I'm trying to display related posts by a custom taxonomy (product_tags) in a custom post type (products). The following code works, but it ignores posts_per_page.
Any ideas?
global ...
0
votes
1answer
308 views
Structure of custom post type / taxonomy?
I have three custom post types created already and their landing pages (page-events.php, etc):
Events, Retreats, Coaching
But for the first, I need some sort of categories which I am going to list ...
0
votes
1answer
1k views
Custom taxonomy archive - No posts found [closed]
I've created a custom taxonomy 'quote-categories' (a separate category listing for a custom post type) and created a taxonomy-quote-categories.php template that is called successfully when viewing a ...
1
vote
1answer
167 views
Set default (auto) slug prefix for Tags
Is it possible to add default prefix to the slug of each newly added Tag. So that full slug, would be stored in database (no rewrites).
For example:
Name: Tag1 -> Slug: prefix-tag1
Name: Tag2 -> ...
2
votes
3answers
330 views
Child Terms not Displaying on the Taxonomy Term Admin Screen
I am experiencing an issue where terms with a parent are not being displayed in the category admin screen. The screen gives the total number of terms that should be there (i.e., 32), but only displays ...
1
vote
1answer
494 views
Exclude custom taxonomy tag from loop
I have the following code at the beginning of a loop:
<?php query_posts('showposts=3&cat=84'); ?>
<?php $posts = get_posts('category=84&numberposts=3&offset=0'); foreach ($posts ...
0
votes
1answer
784 views
Adding session variable and/or cookie based on user-selected input
I am working on a classifieds website that has a custom taxonomy called 'countries'. In the main header menu I have these categories showing in a dropdown list of particular countries people can ...
0
votes
1answer
177 views
Display check marked taxonomies as drop down menu
I've built a hierarchical taxonomy that displays a master list of available fragrances in the admin. When you create a page, you checkmark the fragrances that are available for that particular post. I ...
0
votes
1answer
427 views
Taxonomy Checkbox Admin Panel
I have a basic Admin panel allowing Admin to save options using Checkbox.
Checkboxes are used as multiple selection is necessary for the option
So,
Admin Option
- Checkbox 1
- Checkbox 2
- Checkbox 3
...
0
votes
1answer
68 views
How come my stitemap show a link to a post dated in January 1970? [closed]
I get this link in my site map, but there's no post.
http://thinkitcreative.com/blog/1970/01/
Assuming that something in there has been improperly date stamped, how do I find it?
1
vote
2answers
115 views
If search matches taxonomy
Is it possible to redirect the user to the taxonomy page IF the search input matches the taxonomy name exactly?
For instance i have a taxonomy called "Actors". If someone put into the search field ...
0
votes
1answer
58 views
Retrieve all term IDs of post
I have an array of term IDs that I'd like to filter my query with, but most wordpress functions seem to need the 'taxonomy' field entered too. Is there a reason for this?
Passing the taxonomy ID ...
2
votes
2answers
326 views
wp_set_object_terms() — prevent overwrite?
From my understanding (and before trial and error),
wp_set_object_terms( 'post_id', 'add_this_term', 'in_this_taxonomy');
But from the Codex, apparently adding the term will overwrite any other ...
1
vote
2answers
619 views
Using default WP menu functionality to link to custom post-type listing?
I'm completely starting over with a wordpress project that began a couple of weeks ago, and basically i'm totally discovering wordpress, so please bare with me.
I might be completely misunderstanding ...
0
votes
1answer
59 views
Prevent certain subscribers from seeing specific taxonomies (changes frequently)
I've created a taxonomy (let's call it tax). I need to limit what a user can see. The users can't edit anything, just read the blog. If it was just setting what they could see once, I'd probably just ...
0
votes
2answers
1k views
How to make tags show up in search results?
Im looking for a way to make tags a searchable object. To clarify, Im NOT trying to make the search engine search posts by looking at its tags, but I want tags to show up in the results just like a ...
1
vote
2answers
625 views
I need template for my custom taxonomy term
I created a custom taxonomy slug is 'event_type' and created terms like social, educational and religious. I want to have template page where I can show posts related to these terms. you can say I ...
2
votes
1answer
108 views
How to add terms to a post depending on its title?
I want to add all posts with keyword "Dog Training" in the post title to a specific category.
Reason: If you enter something into WordPress search it's not an exact match. Previous WordPress search ...
1
vote
1answer
382 views
How can I populate a select element with terms from a custom taxonomy and filter post results?
Alright, so first, I need you to check out this wire-frame so you can see what I'm trying to accomplish: Wire-frame
What I've done so far is this:
I created a custom post type for individual ...
4
votes
3answers
235 views
Taxonomy term in permalink
I have a big problem. I have been banging my head on this all day long. It seems to be a stupid easy question. Possibly also with a stupid easy answer. But I can't seem to find it.
What I want is ...
0
votes
3answers
526 views
how can i display taxonomy instead of category on my web page?
I want to display taxonomies instead of categories on the homepage of my blog. What can I do to achieve this?
0
votes
1answer
51 views
Need help deciding on a taxonomy
I'm working on a project that mimics a product Catalog, all products belong to a Collection and they all have a Type and Attributes.
For instance, a shirt belongs to the Apparel Collection, so I ...
2
votes
1answer
284 views
Control term order on a per-post basis
I have a taxonomy in which term order matters, but varies from post to post. So I want to be able to set the order that terms are displayed in on a per-post basis:
My first post | Tagged: Apples, ...
3
votes
1answer
98 views
List taxonomies with thumbnails
I've added an extra field to a taxonomy called "albums" via this function:
add_action( 'albums_edit_form_fields', 'albums_taxonomy_edit_meta_field', 10, 2 );
function save_taxonomy_custom_meta( ...
0
votes
2answers
228 views
Related terms - Terms that feature in post of current term
Not sure how hard this is but i'll try and explain it as simply as possible.
I have a custom post type called: "Movies" with an taxonomy term called "Actor"
For example purposes suppose were on the ...
0
votes
2answers
376 views
Taxonomy template shows only 10 posts
So I'm a little confused with this one.
A blog I recently set up makes plenty of use of custom post types and custom taxonomies.
In the reading settings the blog posts to show is at 100 but I can ...
0
votes
1answer
130 views
Replacing a placeholder term with a session variable value in taxonomy filter
I have in my themes some code which will set a session variable. For the sake of example, it's a geolocation routine which will set to either USA, UK or ROW, resulting in:
$_SESSION['region'] = ...
2
votes
2answers
1k views
Group Custom post type in a page by its taxomony tag
I hope i can write a clear question since i got confused trying to solve this...
I got a custom post type... that custom post type has taxomony (category like)
and i want to return a structure like ...
0
votes
2answers
294 views
child_of not working in wp_dropdown_categories
I have wp_dropdown_categories working without setting child_of. Once I set child_of, all categories disappear. Here's my code, what should I do to enable child_of?
function dropdown(){
...
0
votes
3answers
449 views
Terms not appearing in wp_dropdown_categories
I am trying to use wp_dropdown_categories at front end. I got the dropdown box with default "uncategorized", the rest of the category is not there.
function cats_dropdown(){
require_once(ABSPATH ...
0
votes
1answer
148 views
Description of a sub-taxonomy
I am using this code to display description of a taxonomy.
<?php $my_taxonomy = 'institute'; $terms = wp_get_post_terms( $post->ID, $my_taxonomy ); echo term_description($terms[0]->term_id, ...
0
votes
2answers
574 views
Why is taxonmy-[taxonomyname].php not working?
I've registered a couple of custom taxonomies to go with a couple of custom post types but I'm having some trouble getting a template file to work.
I've tried taxonomy.php, taxonomy-[termname].php, ...
0
votes
1answer
604 views
Alphabetically sort a taxonomy.php template by post title
Simply put, is it possible to sort a taxonomy.php template via the same methods you can with something like wp_query so that the archive shows all posts in an ascending order alphabetically by title?
...
1
vote
1answer
296 views
How do I list the pages of a custom taxonomy?
Grouping pages/posts into taxonomies is great IF you can list the pages under each category.
For instance, I have set a taxonomy as 'WordPress Reference'. Then I have a "category" (I think that's ...
1
vote
1answer
4k views
How can I add the featured image functionality to a custom taxonomy?
I would like to be able to use the 'featured image' functionality, found on post types, for a custom taxonomy.
I have a taxonomy called 'collections' and I would like each collection to have a ...
1
vote
1answer
154 views
Changing stylesheet depending on custom taxonomy terms
My client would like the background & header colors to switch
depending on terms within the custom taxonomy 'Grades'. These terms
are kindergarten, first grade, second grade, etc... (all ...
0
votes
2answers
157 views
How to display posts from two taxonomies?
I have site with rankings of doctors. Medical specialization and localization where doctors live is stored as a taxonomy.
For example:
city -> New York, London, Paris
specialization -> surgeon, ...
0
votes
1answer
235 views
Bug using wp_insert_term with switch_to_blog
I'm running a network of about 80 sites using WP multisite 3.2. I'm experiencing irregularities using switch_to_blog whith wp_insert_term.
To test this I have disabled all plugins, and am testing on ...
0
votes
2answers
322 views
Custom Post Type Taxonomy Permalinks [closed]
I am having a very specific issue on permalinks.
I have a custom post type and a taxonomy.
Using the function below sorted out the correct structure of the taxonomy permalinks.
function ...
0
votes
1answer
220 views
Taxonomies not showing in WP Dashboard Right Now widget
For some time I've been using this code snippet adding both custom post types and custom taxonomies to the WP Dashboard Right Now widget:
function dashboard_right_now_content_table_end() {
$args ...
0
votes
1answer
695 views
Dynamic filtering of posts with custom taxonomies
I am currently trying to make a business directory where the users can filter the results by:
Type of service
County
I am using a custom post type for the business directory, and I have created 2 ...
1
vote
1answer
103 views
How to output the taxonomy term name in a widget
I have a taxonomy for example "country" and I want to simply display the term in the side bar eg. New Zealand.
There is only one possible taxonomy per post so I don't need to create a list or ...
2
votes
1answer
1k views
How do I dynamically populate wp_nav_menu from a custom taxonomy?
I know this question has been asked in different forms. But as far as I can tell from searching Google and SE/WP it's never been satisfactorily answered.
Let's say I have a taxonomy clubs and a ...
0
votes
1answer
2k views
How to get posts using category slug in ClassiPress?
I'm using the ClassiPress theme as a base for a new theme. If you have worked with classipress, you should know that classipress handles its own category using the taxonomy ad_cat.
That said, I have a ...
0
votes
1answer
151 views
Custom Taxonomy link out the loop
how can i get Custom taxonomy URL by taxonomy ID outside the loop like
get_category_link();
6
votes
2answers
409 views
Why does get_term() require taxonomy? Are term_ids not unique?
A related WPSE question asks how to get the term by specifying ID only, without specifying taxonomy. My question is more philosophical. Generally, stuff in WP core is there for a reason. I'm trying to ...