Every Post in WordPress is filed under one or more Categories. Categories allow the classification of your Posts into groups and subgroups, thereby aiding viewers in the navigation and use of your site.

learn more… | top users | synonyms (1)

3
votes
1answer
29 views

Page naming when there is a sub-category only sometimes.

I need help with understanding page naming to display a sub-category which only occurs only sometimes. I also need to understand if I need to create a custom Taxonomy to achieve this? I am using CPT ...
0
votes
1answer
28 views

Why does my taxonomy have a category style div id?

I created two custom taxonomies. I created them using identical code and then finding and replacing the "name" with "name2". I've then looked at the post type page and there are two tag boxes to ...
-2
votes
2answers
7k views

Display all subcategories for a product category in woocommerce

Is there a way to add a shortcode to a page, in order for that to display the subcategories of a category? (not the products themselves) I know that you can configure Woocommerce to display it, but I ...
0
votes
3answers
106 views

How to Mysql select a list of posts with meta_values AND all relevant categories?

I am trying to produce a list of posts and display a report which shows both some meta_values for each post, but also a list of all categories to which each post is attached. I am using the nifty ...
0
votes
0answers
27 views

Add a URL prefix to permalinks of one category of posts only

I have the permalink structure http://domain.com/%postname%/, which is what I want to keep for most of my posts, however there is one category of posts that I would like to move from ...
0
votes
0answers
78 views

WooCommerce - Add Category Id Class to List of Categories on Archives

In WooCommerce I have my Shop & Category pages set to display a list of categories rather than products. Within that list of categories, I'd like to add the categories id (or slug) as a class to ...
1
vote
0answers
14 views

Menus don't work after 4.4

After I updated to Wordpress 4.4, I noticed that the menu links on the front page of my website don’t work anymore. The website is: http://rantaboutfilm.com/ the theme is: swagger When the user ...
1
vote
1answer
17 views

Search Posts / Pages with multiple options?

Here is what I am trying to accomplish. Need to design a website for Alcoholics Anonymous (local Chapter) to search for meetings. Need to search for multiple choices of meetings for example. Men's ...
0
votes
0answers
22 views

WooCommerce - Display Grandchild Categories on Archives Rather Than Child Categories

In WooCommerce I have two main categories that both have subcategories that go two levels deep. As such the two categories have child categories and grandchild categories. I currently have ...
0
votes
0answers
13 views

How to assign a new template for a new category?

I am using pagelines template .Custom template works for blog as the template file is saved as category-blog.php . But i try to do the same for a new category category-newcategory.php , it did not ...
0
votes
1answer
37 views

Exclude posts with certain tags in category archive

When we click a category link we find all posts under that category. I would like to hide posts from specific tag within that category, and to show a link which enable us to show the posts on that tag ...
0
votes
2answers
95 views

Template tags to display custom post type posts in category template?

I am developing a custom theme with custom post types involved. Custom post types have been defined via plugin 'Pods' (http://pods.io). When writing a category.php, I realized, that the standard loop ...
0
votes
2answers
46 views

How do you bulk remove a category from posts?

I just imported a Blogger site to Wordpress, and it put the category "Uncategorized" on all posts. I ended up converting all of the tags (which did come over from Blogger) to categories, but now I ...
0
votes
2answers
43 views

Get Category Archive Template Name Dynamically

I'm making a category archive template that works for all my categories. I need to dynamically set the 'category' parameter of WP_Query inside of this template to make it work. How do I dynamically ...
1
vote
1answer
20 views

category permalinks

i am quite confused about the permalink stuff. So here is whats up... I have a page called tours as well as custom post type called mc_tours. At first i just changed page permalink to ...
1
vote
0answers
38 views

Display Posts Loop for each parent and for each Child

i have a custom query to display relation with posts (post 2 post plugin) my existing code display : foreach terms as terms i need to display for each Parents Display Child then Posts Titles ...
0
votes
3answers
78 views

How to provide value for 'selected' on wp_dropdown_categories() for 'multiple' options

I'm using wp_dropdown_categories() with multiple="multiple" in this way, bypassing WordPress core. Till now (WP 4.4.1) doesn't support multiple on that select field. (Core Ticket) I'm struggling with ...
1
vote
1answer
75 views

WP_Query arguments to fetch custom post type posts which are in certain category?

I've played around for hours but still can't wrap my head around the right arguments for a secondary WP_Query which shall fetch all posts of my_custom_post_type that are in the queried category. ...
1
vote
0answers
28 views

Prepending %category% onto default posts fails

I have been attempting to change the rewrite slug on the default posts. This is my post_type re-registering code (Taken from another post on StackOverflow) with the simple intent of changing the ...
0
votes
1answer
4k views

Add class to items in wp_list_categories()

I have this in my category.php to show sub-subcategories: <?php if (is_category()) { $this_category = get_category($cat); if (get_category_children($this_category->cat_ID) != "") { echo ...
0
votes
1answer
771 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 ...
1
vote
0answers
42 views

Create menu / submenu from category subcategory and posts

I have a custom menu made up of pages and categories and I am trying to output the category and subcategories as well as the last 4 posts from each category/ subcategory. In trying to use a walker ...
0
votes
1answer
35 views

How to insert category name above post title in a featured pages plugin?

I'm trying to hack a plugin to insert the category name of the post above the post title in a plugin/widget that displays three posts in a single row on the front page. The hack I tried is as ...
1
vote
0answers
53 views

Custom Loop through category menu to include sub categories

In my custom wordpress theme I currently have the below loop to the main categories <?php $menu = wp_get_nav_menu_object('navigation'); $items = wp_get_nav_menu_items($menu->term_id); ...
1
vote
0answers
20 views

Categories as main menu items and subcategories as nested lists

I am new to WordPress and am trying to make my website. Would it be possible to list categories and subcategories as a nested list with links in the main navigation menu. What am i trying to achieve ...
0
votes
1answer
32 views

Hide category name using mod_rewrite

I have a website with at least 3 categories. I have set one of them as the default category. Next step was that I need to have the category slug of the default category to be hidden from the URL ...
1
vote
1answer
22 views

How get permalink for the current category or tag?

There was a problem in which it was necessary to get permalink of the category/tag viewed. I have not found standard functions, everything other authors offered was only for categories. I resoved the ...
1
vote
0answers
66 views

ajax category filter

I know this is a big ask for you guys, but i can't seem to figure this out. I found this page : http://www.bobz.co/ajax-filter-posts-tag/#comment-28112 it shows how to make a dynamic filter for post ...
0
votes
0answers
7 views

About making a category-site in the menu

How do I make a category a site in the menu? Like for example "everyday pictures" (a category) to be one site?
0
votes
3answers
570 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 ...
0
votes
0answers
13 views

Styling based on category

I can't quite seem to get the hover to change colour based on the category the post is tagged in. I've added both body_class() and post_class() to the header.php as well as adding a function that ...
0
votes
1answer
131 views

Filter By Category Dropdown List With Custom Taxonomies

I have next category dropdown filter that atm supports only two levels "parent -> Child" and I want to get the third "parent -> child -> child". I have two functions: function ...
0
votes
0answers
30 views

Custom Post Type category nav isn't highlighting active category

I used Types from wp-types to create my custom post type. I have category archive pages and individual post pages set up. The category navigation is highlighting the active category like it's supposed ...
0
votes
0answers
21 views

Edit PHP / “Categories Images” Plugin

I need to upload YouTube videos to one of the folders/categories using "Categories Images" plugin. I know it is designed to create a gallery of images only, but with the way the website is structured, ...
0
votes
1answer
669 views

Random category with recent post title and thumbnail

This code below works perfect to pull the title of five random categories, the issue is for each random category I want the latest post title and thumbnail but where and how do I add the post query? ...
0
votes
1answer
24 views

Setting category for post as default

How can I set a default category from posts that I create? I have tried modify setting options but have not been able to have the default category that I want show up. The current default is ...
0
votes
0answers
28 views

After sorting product with default sorting why redirecting on shop page instead of category page

I have website with woo commerce product's. I have 3 category's for product's Online Diet plan , Health Consultation , Corporate Wellness all of each category have more that 20 product's. On category ...
2
votes
1answer
41 views

Add category to custom post URL

I am trying to create custom post with custom taxonomy and categories. Structure is like: Product: Has categories Has taxonomy Custom post type create: function create_alco_custom_post() { ...
0
votes
1answer
4k views

Shortcode to display all the post from a category in a page

I have 10 category, and when i select a category in the sidebar il list all the post from that category.... FINE, beautiful Now, i like a page, with some text and photos and then after that content, ...
0
votes
0answers
45 views

Post's URL changes automatically to category's URL. How to solve?

When I create a new post, I edit its URL to be something I like, let's say "My Post". I put this post in a category, say "Cat1". After I publish the post, the post itself is accessible from its ...
17
votes
4answers
11k views

Adding categories to custom post type in permalink

I know people have asked this before and have gone as far as adding the custom post type, and rewrite for permalink. The problem is I have 340 existing categories which I would like to continue ...
-1
votes
1answer
2k views

Display Categories or Subcategories with name & description in category.php

I have the following issue for my customer. Can some suggest a possible solution to this issue? This website has Categories & Subcategories Cat1 -Subcat1 -Subcat2 -Subcat3 Cat2 -Subcat1 ...
0
votes
0answers
14 views

Generate Permalinks on same category

I'm using categories to create a content matrix. I have two kinds of categories: tracka trackb trackc topic1 topic2 topic3 Articles are then categorised with one of the first group, and one of the ...
1
vote
1answer
82 views

Hide posts of a certain category unless logged in

I want to hide posts belonging to a certain category unless logged in. I found some code(attached) in the codex that works great for the loop. But how to ensure the post pages are empty as well? ...
-1
votes
1answer
665 views

How to get category slug link? ( include parent categories)

for example, if main category slug is cars; sub-category slug is: Ford; how to get the permalink of Ford, including its parent categories' slug? ( get_category_link() returns mysite.com/?cat=19 type ...
0
votes
2answers
51 views

How could I know all the categories from post?

I need know all the categories from post in wordpress, but my code only give me the first category and I don't know for why. For example: if one post have the category "category1" and "category2" I ...
0
votes
2answers
70 views

Show all sub categories?

Is it possible to show all child/sub categories of all parent cats? I have the following hierarchy: Parent Cat/Tax -- Sub 1 -- Sub 2 Parent Cat/Tax 2 -- Sub 1 -- Sub 2 I would like to be able to ...
1
vote
5answers
16k views

Get all categories and posts in those categories

I am looking for a solution that allows me to print the following: Cat 1 Cat 2 Cat 3 Post 1 Post 1 Post 1 Post 2 Post 2 Post 2 Post 3 Post ...
0
votes
2answers
282 views

Display all of a post's categories except the current category

I use categories to order my posts into timelines. So for example, Jennifer Lopez There are no subcategories. All categories are on one level. The top post, "Wants Gomez" actually has two ...
1
vote
3answers
3k views

Dropdown with category selection

I created a directory website with dropdowns in the menu allowing the user to navigate throughout the categories and sub categories. [Website] I am using wp_dropdown_categories() to display the menus ...