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)

0
votes
1answer
429 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
0answers
27 views

Removing all child categories from Yoast SEO breadcrumbs (or Navxt)

I am making a wordpress site and have ran into some trouble regarding the breadcrumb on single pages. At the moment it outputs Home > Parent category > Child category > Post title. This is usually ...
0
votes
2answers
1k views

Filter categories using tags

I have a website with the following categories: Videos Pictures Stories And I have a lot of tags like: Funny, Awesome, Mind Blowing, Crazy, etc. Is there a way I could filter lets say: Videos ...
0
votes
1answer
43 views

Exclude posts that only have the 'Uncategorized' category [duplicate]

I want to exclude posts that only have the Uncategorized category (i.e. category id 1), but if a post is (erroneously) categorised as "Uncategorized" but also has other categories, I want to include ...
0
votes
0answers
13 views

Child categories by post date

I have created a parent category called " Shows " and have 8 different programs under it. I want to display the most recent post from all categories on first block of my template page. The code I am ...
-1
votes
0answers
31 views

How to create wordpress post type with custom categories?

Hi I need a post page with my custom added categories. This is the structure. 1.Category1 1a.Sub Category1 1b.Sub Category2 1c.Sub Category3 2.Category2 2a.Sub Category1 2b.Sub Category2 ...
2
votes
1answer
823 views

Redirect category to first available child post

Is possible to redirect category to first available child post please? Thanks!
0
votes
1answer
581 views

How to get Next/previous_post_link to go through articles in top parent category

I have a magazine format where a parent category is an issue, sub categories are the sections and the articles go into their respective sections. When viewing an article in a magazine, I would like to ...
2
votes
1answer
474 views

How to put enctype=“multipart/form-data” in categories form?

I had success putting the code below to include enctype (for images) in custom post type forms, but I'm not able to use it in categories form... is this possible? Thanks. add_action( ...
0
votes
1answer
47 views

Display subcategories in dropdown

I have the following code on my website: <div class="blog-cats drop"> <label class="custom-select"> <select class="styledSelect1" name="archive-dropdown" ...
-1
votes
2answers
592 views

How to show monthly archive posts?

my custom archives page is : <?php get_header(); print ('<div class="row">'); $archi = wp_get_archives('echo=0'); $archi = explode( '</li>' , $archi ); $archi_count = ...
0
votes
1answer
40 views

Show posts from all categories

I have a site with 5 different categories, each of them with a notices section. I would like also to have another section to see the latest notices from any category. So far, I figured out that I can ...
0
votes
0answers
8 views

Need solution for search or menu with choice of category and specific month/day

I'm in need of a search or menu option on a wordpress site where the visitor can search by a category and specific date (month-day only).... OR, a way to make a chained select menu like I had on an ...
0
votes
0answers
20 views

Category list with subcategories and terms

I have a problem that I cant figure out myself. Maybe I'm going in a wrong way and thats's why it won't work. So I need a list of categories (custom post type "products"). I have some subcategories ...
4
votes
3answers
3k views

How to add category to: 'wp-admin/post-new.php'?

I want to have a link to create a new post that sets the category also. I have tried wp-admin/post-new.php?post_category=12 and wp-admin/post-new.php?cat=12, but neither worked. I also tried using ...
1
vote
1answer
53 views

How to set a filter by category within a customised page

I'm still fairly new to the wonderful world of WordPress development and was hoping for help with a question.. I've got a simple page template which extracts all posts under a certain category and ...
0
votes
1answer
86 views

Choosing different templates for categories

I was searching about changing the default template of the categories in WordPress, I saw the codex which says that the only way by making a new file with the slug or the ID of the category, like this ...
0
votes
1answer
32 views

same permalink for parent category and child category

i have one category, that category is child of blog category and the permalink of this category is: name.com/blog/wordpress-plugins know i want to make a new category with the permalink below: ...
0
votes
1answer
689 views

How we add new categories by wp_insert_post

I am using fornt end form submission now i want to add new category and before adding this category i want to check whether it exist or not, if yes then simple add to that category otherwise add new ...
5
votes
4answers
866 views

WP_Query ignores post_type in category view

I have following query to select posts by my custom post-type. This works fine while being on the frontpage (the snippet is included in the sidebar). As soon it gets executed on a category page the ...
0
votes
1answer
34 views

Custom plugin to get related posts by category

I'm learning how to create custom plugins for Wordpress, I am trying to get related posts by category. The problem is, I am returning all posts regardless of it's category whether it's the same ...
0
votes
2answers
45 views

Custom Post Type Plugin not loading category template and loading 404 instead

I have been looking around for the past few hours and I am starting to be kind of desperate... I have created a plugin to add my custom post type "project" (making a new portfolio)... In this ...
1
vote
1answer
66 views

Setting Default Category for Custom Post Type Upon Autosave

I've been searching for a couple hours and consulted multiple posts, but I seem to get this to work. I have this weird bug where users cannot see their drafts of a custom post type if they don't ...
0
votes
0answers
44 views

Count posts of child category in parent category

Hallo Wordpress Comunity, I need your help. I have a Woocommerce shop site with multiple authors. In the sidebar I want to display a list of woocommerce product categories by author (based on posts ...
0
votes
1answer
57 views

How can you display all sibling categories to a post?

I would like to achieve a list of sibling categories to the deepest level category (4 or 5 levels deep) of my posts, for example: Post about South Sudan (breadcrumbs = World, Africa, East Africa, ...
4
votes
2answers
577 views

Redirecting specific category to subdomain

I have a problem in following situation: I have 2 separate Wordpress 3.3.1 instances, main at domain.com and one of them (which consists of simple Q&A type site) is available from subdomain ...
0
votes
2answers
482 views

Get unique post in parent category

I have a parent category and several child categories. I also have several posts that belong to the child categories. Each post can be belong to several categories. I want to know how to query the ...
4
votes
3answers
87 views

Custom Posts Types using Posts Category

I'm using some custom posts types, and, I don't wanna create specific categories for each one. I'd like to use the Post Category in all my Custom Post. Here is a example of my new custom posts type: ...
0
votes
4answers
445 views

Exclude subcategories from the url

We have a site with categories and subcategories. If anybody navigates to a content belongs to a subcategory the url will have the following form: domain/main-category/sub-category/mycontent/ But we ...
0
votes
1answer
41 views

Filter wp_dropdown_categories Per Post Type

I'm using wp_dropdown_categories to add a categories filter to the media library. It works fine, except it displays all the categories that are assigned to posts, but I would like it to only display ...
1
vote
1answer
33 views

Include posts from feature category in pre_get_posts

I have two custom taxonomy 'cities-taxonomy' and 'userfeed-taxonomy' and I am excluding all the post which has these taxonomies assigned in my blog page using pre_get_post(); Here is my query ...
0
votes
2answers
476 views

How to make subcategory for custom post and and display?

I've created a custom post with categories like books, foods, and make some sub-categories like in foods cat, pizza, fastfood. But when I display them in my side bar, it's showing same as sub ...
1
vote
0answers
32 views

Post Count for Categories, however not to calculate a total

Normally this is how the category widget works. Fruits (15) - Apples (7) - Oranges (3) - Grapes (5) Apples, Oranges and Grapes contains posts, however nothing in Fruits. Lets assume that Fruits ...
0
votes
1answer
26 views

Illegal string offset 'taxonomy' in

I'm struggling a bit with the following error Illegal string offset 'taxonomy' in ... on line 175 Trying to get property of non-object in ... on line 177 Trying to get property of non-object in ... ...
1
vote
1answer
1k views

How to use get_categories() with Event Organiser plugin

I want to display my categories in tabs. All is good, except my "Upcoming Events", created with Event Organiser (awesome plugin at http://wordpress.org/extend/plugins/event-organiser/), are not being ...
-1
votes
1answer
31 views

How to prevent page re-sizing for mobile browsers [closed]

I want to prevent my page resizing for mobile browsers, How can I achieve this? My style.css is added below. */ /*---------------------------------------------------------------------------------*/ ...
0
votes
3answers
767 views

How to query categories with Advanced Custom Fields?

I'm currently using Advanced Custom Fields and I was wondering if anyone know how to filter categories by custom fields? I have a custom field in my categories using the checkboxes field. I want to ...
0
votes
1answer
29 views

Remove Category from Menu link

I am new to word press and want to remove category from menu link. Example: When i click Entertainment page redirect to http://khabarchar.com/category/entertainment/ I want to remove category from ...
1
vote
1answer
329 views

How to create category index table out of wordpress site or on other website?

I want to create a page on other part on my website (outside wordpress directory) where I can show list of posts from a specific category. I am looking for exact solution provided by @toscho here: ...
0
votes
3answers
1k views

Use get_term_children to get the sub category of a parent category for the current post

In my WooCommerce theme I've created a root category: 'Brands' then for each product I've added it's brand as a sub category to the 'Brands' parent category. On the product page I want to display the ...
0
votes
1answer
19 views

How to add a post with new Taxonomy without assigning to default category?

I need your help, I have created new Taxonomy in WordPress (Called Sources) and whenever I create new post and select that new Taxonomy WordPress forces to assign Default category. How to disable ...
0
votes
0answers
39 views

How to create a new Recent posts with a defined category

I'm new to editing WordPress pages. I have a homepage which displays Recent Posts and recent items added in portfolio. Here is the link if you want to see it : http://veroniquegemme.com. My theme is ...
0
votes
1answer
29 views

How to not display a category post on blog page?

As you know, we can assign a "Category" to any post we write. We can also use a "Category" as link on the menu. Good! By default, WordPress will display all your posts in all the categories on your ...
0
votes
0answers
34 views

get_posts not filtering custom type by category

I'm trying to filter a CPT (Custom post type) by it's categories. Here's the CPT declaration: class PB_Noticias { public function __construct(){ $this->register_post_type(); ...
1
vote
1answer
316 views

Previous/next link to post in category, NOT tag?

On a single post page I have the following code after my loop: <?php previous_post_link('&laquo; %link') ?> &#124; <?php next_post_link(' %link &raquo;') ?> For some ...
0
votes
0answers
21 views

Categorizing Woo-Commerce Motorcycle Parts using Pods

I am trying to create an eCommerce website that sells Motorbike parts and accessories and I don't know how to structure everything in WordPress. How is the website structured? We have a huge list of ...
0
votes
0answers
13 views

Adding relevant categories to related post

So, let say you have a post under a category called "computer." Within the page, you have related posts which are under the same computer category. However, this does not include posts under a ...
1
vote
4answers
2k views

Make parent categories not selectable

I'd like that my categories having child-categories don't be selectable on the post article page. What I want to do is to remove the checkbox before their label. I've looked the filter documentation ...
0
votes
1answer
23 views

How to remove the tilte “category:category name”?

I created a category "TEST" and added it to the main menu in header. Whenever I click on it, it takes me to the page with recent posts marked under the category. But at the top of the page it shows ...
0
votes
2answers
40 views

Get the ID of 10 Latest Pages stored in a Wordpress Category

How Do I get the ID of latest 10 pages from a certain category in my wordpress blog. Please suggest me a relevant function to get that in a form f array or something that could give me the ID's of ...