0
votes
1answer
18 views

Widget dropdown always displays first option

I have a custom widget that I have made but whenever I change the dropdown value it always reverts to the first option when I save the widget. How can I have it display whatever option the user ...
-1
votes
1answer
41 views

Why does my subcategory URL give 404 eror?

I'm using WordPress's standard theme Twenty Fourteen. Here is my problem Not Working: http://ispeedify.com/internet/paypal/ I've made my "PayPal" a sub category of the parent "Internet". But the ...
0
votes
1answer
13 views

Get category id for a custom category and display it in a class

I am having trouble displaying my custom category ID to my li ID. The code I am using below is displaying the post ID of the post category instead of the custom category. What I am trying to do is ...
0
votes
0answers
12 views

Limit to One Custom Taxonomy Selection, Including Most Used

I've got a bit of code that limits my custom taxonomy to only allow the user to select one category, by turning the checkboxes in to radio buttons. See the screenshot below for example: I need the ...
0
votes
1answer
40 views

Display posts of specific category term

I'm using this code to first display each category term as headlines and then display a post which is assigned each category term under the headline. If I create a custom taxonomy it works as ...
0
votes
1answer
28 views

Get categories and descriptions from custom post type

I'm trying to pull all of the categories associated with a custom post type within a loop, but I'm not sure how to get it so automatically pulls all of the categories automatically from the associated ...
0
votes
0answers
21 views

Plugin for choosing categories in steps in admin, parent first then display childs

Situation: I'm setting up a CPT (multiple doing similar thing) where there will be a custom taxonomy only for that cpt... and it will have two levels; parent/child. So like this: CPT = Vehicles -- ...
0
votes
1answer
44 views

browse by category and tags?

I have a custom post type called freebies. This custom post type has its own taxonomy with the "normal" categories from wordpress, (which are child-categories from freebies) and own custom taxonomy ...
0
votes
1answer
96 views

I need to exclude from a query a category and a few custom taxonomies

I need to exclude from a query a category and a few custom taxonomies. Is this code right? This query don't exclude any post, the one with the category, or the custom taxonomy. What am I doing wrong? ...
0
votes
1answer
72 views

Custom/separate categories for custom post type

How can I achieve a separate "data space" for the categories of my custom post type? I don't want the general post categories to appear in my custom post type and vice versa. The register_taxonomy ...
1
vote
1answer
50 views

I am trying to hide a custom post type category to logged in users with Pre_Get_Posts

I have a custom post type in my theme called portfolio. It's categories are called project-categories. I am trying to exclude a project category for logged in users. I cannot get this to work at all. ...
0
votes
1answer
55 views

Get a list of categories ids

I'm working on a portfolio with filters based on custom post type. That filters must display only categories for the posts that are displayed in the portfolio, since user can specify them by id in the ...
1
vote
1answer
15 views

Get all media categories

I've added a new taxonomy for the medias post type: function register_taxonomy_for_images() { register_taxonomy_for_object_type('category', 'attachment'); } add_action('init', ...
0
votes
1answer
55 views

Conditional Statement custom post type category

I would like to display a text depends of my custom taxonomy category, like: if custom post type category is X, then echo Text Y. I've tried this, but its not working: global $post; if ...
1
vote
2answers
246 views

Display Posts of a Category in Alphabetical Order (Custom Post Type)

I have a custom post type called "link" I have a custom taxonomy for this post type called "link-category" I have a template file for this taxonomy, "taxonomy-link-category.php" I need the template ...
0
votes
0answers
67 views

Add child category to parent on post creation and save

I'm trying to build a tree layout for a custom taxonomy. Categories are animals. Big Game (0) -- Bears (2) -- Black Bear (3) -- Grizzly Bear (2) The above is a glimpse of what I have. ...
0
votes
0answers
49 views

How to set a default one (i.e. Uncategorized) in Custom Taxonomy?

I'm using Custom Post Type and Custom Taxonomy in a project of mine. Just before delivering the site I found a serious bug. I used a simple WP_Query() with the following arguments: new ...
0
votes
0answers
16 views

How to create default categories in new installs?

When a new user creates a new blog in WordPress MU I'd like to add a new category. How or where would I do this?
0
votes
1answer
40 views

List Posts By Custom Taxonomy

Apologies if this is a stupid question, I've had a google and a look on the site but can't find an answer to my question. I'm working on a project and have created a custom post type called 'books'. ...
0
votes
0answers
205 views

How to show only subcategories in parent category not parent category?

I just want to show only subcategories of specific parent category on parent category page. I have 1 parent category videos and 3 child categories art,funny,and technology of that parent. I didn't ...
1
vote
1answer
44 views

Custom Post Type With Categories

I have copied custom post type code from WordPress and modified and added to function.php but Where is the categories box. I cant seen anywhere. I want also for this post. I am not good for ...
0
votes
0answers
28 views

Trying to create hierarchy between 3-4 custom post types

I am trying to think of a way to create a certain hierarchy between several post types. I was looking at term_taxonomy table, and its seem to have the capability to achieve that. I have a feature to ...
0
votes
1answer
31 views

Customize category URL

I've searched around and have not found the answers im looking for. By default I have: example.com/blog (blog archive) example.com/blog/entry (single entry) example.com/blog/category/announcements ...
0
votes
1answer
59 views

add slug beside name in Admin Category Checklists

im creating a lot of Categories with the same Name and different slugs, but im having problems identifying which is which in the admin panel, so i came up with the idea of inserting the slug besides ...
0
votes
1answer
67 views

Most efficient use of custom taxonomies, categories, and pages

I've been researching the difference of taxonomies vs. categories vs. custom post types vs. etc. and have been beginning to pickup on the differences. However I still can't wrap my head around when it ...
0
votes
2answers
114 views

Create Cross Promoting Categories in Wordpress Using 'pre_get_posts'

What am I trying to do? Assign more than 1 category to a post so that it would appear in each category template without 1 main category in the URL. WP's default behavior when you select more than ...
0
votes
1answer
170 views

Can't pull posts of a Custom Post Type based on the custom taxonomy of the CPT

My question is about retrieving custom post types via get_posts, when custom post types also have a custom taxonomy. I can use get_posts to retrieve all posts of a custom post type, but when I attempt ...
5
votes
1answer
954 views

Can't custom taxonomies have same terms (slugs) as categories?

I knew that it's not possible to have same terms (term slugs) under categories and tags, but surprisingly, as I realized today, that's the case with custom taxonomies as well. So for instance, if my ...
0
votes
0answers
67 views

Category/Taxonomy Template not loading

I read countless topics and searched alot of codex pages for that problem but I just don't get it. My category template isn't being loaded. Instead, only the index.php comes up. It doesn't matter if ...
1
vote
2answers
50 views

Querying Term Posts in Loop

I'm trying to show my CPT Category along with any posts associated with it below the title. I have the first loop fine: <?php $cats = get_categories(array('taxonomy' => 'custtax', 'orderby' ...
0
votes
0answers
169 views

How to display only same level taxonomies

Lets say I am inside custom taxonomy subtaxonomy. Viewing either archive.php or single.php page. I want to display there only subcategories what are same level as the one what I am looking. Now it ...
1
vote
1answer
1k views

Order get_terms() By Custom Field

I want to order my categories like I order my pages. I've added an extra field called Order to my taxonomy, but how do I order my terms by this value? Adding and Saving my Order Value: /** Add New ...
0
votes
0answers
127 views

Category Ajax Chain Selects - search results

Hello, I have a problem with my custom taxonomy and plugin Category Ajax Chain Selects... When I select a region, country, appeals etc. and push the submit button I got "page not found" and that takes ...
0
votes
1answer
655 views

get_category_link() for custom post type does not include custom slug rewrite?

I am getting a list of categories for a custom post type project using get_categories($args) with the following arguments: $args = array( 'type'=> 'project', 'orderby'=> 'name', 'order'=> ...
0
votes
1answer
173 views

Custom Taxonomy - Tags Metabox is showing instead of Categories

So I have a weird thing going on. Usually by default when you create taxonomies a categories metabox is made automatically (right?). For some reason that's not showing up but Tags metabox is showing ...
0
votes
0answers
55 views

Handling custom taxonomies

I am redesigning my website and in the process I am also streamlining the way to navigate the content. Currently, my content is divided in default WP categories by content type and topics like this: ...
0
votes
1answer
337 views

Show Post from parent category (custom taxonomy) ONLY!

I want to display all post under a parent category (custom taxonomy) ONLY!. Here's what I've done so far:' <?php $args = array( 'posts_per_page' => 100, 'post_status' => 'publish', ...
1
vote
1answer
161 views

Custom Post Types and independent Categories - complex Taxonomy

Input data: There is a Custom Post Type, with Companies posts that relates to Company category; There is a Custom Post Type, with Products posts that tied to Items -> Item-type category; ...
0
votes
1answer
43 views

Wordpress custom taxonomy

I'm using a custom taxonomy called 'product_cat' and post type called 'product', I'm trying to display all parent terms, child terms and grandchild terms within the taxonomy. So I get a list like ...
0
votes
1answer
97 views

Category / Custom Post Type permalink issue

So I'm currently working on a client site and trying to switch some old posts over to use new custom post types. Prior to this point, her website was set up in such a way that she could add both ...
0
votes
2answers
49 views

How to know if it's a child taxonomy?

I'm in need to know if the current taxonomy is child or parent. How can i achieve this? I need it for the condition in if statement. I need to know if(this is child taxonomy){ } Anybody knows ...
0
votes
1answer
295 views

Category link redirect to custom template page instead of index.php?

I want to make template page for my custom taxonomy. I have custom taxonomy categories listed as navigation links. It's the country list (China, Slovenia, Serbia...). Every of this categories has ...
0
votes
0answers
22 views

Custom category conditional

I have some custom categories and I want to show a image if its a certain category, for example i did this but its not showing: if( is_category( 'bikes' ) ) { echo 'MY IMAGE'; } Could someone tell ...
0
votes
1answer
128 views

How to set up multiple taxonomies for groups of posts

I have a site that has several types of posts, with categories for each: a News section (categories: Local, International, Breaking), a Video section (categories: Music, Kids, Holidays), and a Photo ...
0
votes
0answers
122 views

Show Parent and child categories of custom Taxonomy

So i have a custom Taxonomy called "Product groups" and i want to display the parent 'categories' that link to a page with the children of the main categories. How can i do this? ...
0
votes
1answer
456 views

remove support for 'Categories' for a custom post type

How would I go about removing support for Wordpress 'Categories' for a custom post type? I've created a custom taxonomy for the post type, so there is no need for the standard categories. Oddly, I ...
0
votes
0answers
32 views

How do I output a list of categories from a tag?

I want to show a list of categories associated to a tag. So say now I have two posts: Brown Sneakers which is in the Category GOLF child of SPORT and tagged USA and Pink shorts which is in the ...
0
votes
1answer
21 views

How could I write a get_categories_by_year() function?

I need to write a function to get all the categories for a given year. Since the creation date of a taxonomy isn't stored in the database, I'm not really sure what to do. My initial thought was to get ...
0
votes
0answers
6 views

Custom category options and restictions

Question; how do I take away the ability to "Add New Category", from a custom post type, but keep it for other post types?
0
votes
1answer
25 views

Custom post not appearing under custom taxonomy category

Hello again Wordpress Stack, I'm having trouble getting my custom post to display under a custom category. The post in question is this: register_post_type('feature_article', array( ...