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)

-1
votes
1answer
76 views

Related posts with WP_Query

I'm stuck with the related posts querying. I need the related posts to be displayed with any depth from the main parent. I have the following structure categories on my website: - Category level 1 -- ...
0
votes
1answer
31 views

Custom post type URL - filter by taxonomy

Created CPT = news uses default categories (IT and recruitment) I am struggling to view an archive of the posts based on their category mysite/news/ - shows all posts for that CPT whatever the ...
0
votes
2answers
24 views

Question on using custom structures for categories

Im trying to create a topics "section" similar to what Justin Tadlock has on his site but i'm not sure how he is doing this. Categories? Tags? or what? I tried changing the Category base to topics as ...
0
votes
0answers
62 views

How to sort category by custom field value

I am using the following : $catargs = array( 'meta_key'=> 'category_custom_order', 'orderby' => 'meta_value_num', 'order'=> 'ASC', ); but I can get the ...
0
votes
0answers
9 views

Page URL that is the same as other but in a different category

Is there anyway to prevent a duplicate post getting assigned a number as it's title despite being in a different category? www.example.com/coca-cola/diet www.example.com/pepsi/diet-2 Both are ...
0
votes
1answer
45 views

How to add current custom taxonomy slug to body class

My theme uses custom taxonomy called "kbsection" and there are lots of sections set up (instead of categories). There is also a custom post type and the posts are assigned to sections. I need to ...
0
votes
1answer
26 views

Getting Category Children

i have a problem understanding the get_terms function All i want is getting all the children of specific category so that it can be listed. But i don't really know how the $args works. So with this ...
0
votes
1answer
35 views

Show all child categories associated to post ID within loop

I'm looping through all posts and I'm trying to output the category nicename related to each post. So if there are categories A,B and C with post X only associated with categories A and C then I only ...
0
votes
0answers
57 views

How to query and group posts by category?

/* * Loop through Categories and Display Posts within */ $post_type = 'post'; // Get all the taxonomies for this post type $taxonomies = get_object_taxonomies( array( ...
0
votes
1answer
56 views

Using tax_query to get single post per category

I have a list of magazines I need to categorize and sort. I have created a custom post type and registered a custom taxonomy to organize them. Category Structure: Print Magazines (parent category) ...
0
votes
0answers
18 views

Taxonomy terms by post type and category?

I'm trying to return the terms of a taxonomy that is used by a custom post type in a specific category, I can return all the terms of the taxonomy but I want just the ones used by that post type and ...
0
votes
0answers
29 views

How to display 4 nested category levels

I have a scenario in which I want to display this category structure: First Level Grade 1 (Just showing category) Grade 2 (Just showing category) Grade 3 (Just showing category) Second Level ...
-1
votes
2answers
50 views

How to display category list with category description

I have five categories for a custom post type, additionally I have installed a plugin to enable upload image to each category detail, actually I can get show list of categories with details. I need to ...
0
votes
1answer
91 views

'get_previous_post' in same category returning (!empty) when no previous post in category exists

I'm trying to use the Smarter Navigation plugin to work so that when I click on an individual post from the category page, the single post navigation only goes to the next post in the same category. I ...
0
votes
0answers
26 views

Get Pagination For List of Wordpress Categories

I'm trying to display a set number of categories on a custom page template. The Categories contains featured image and link to their children. I'm using "Categories Images" plugin to get Category ...
0
votes
0answers
16 views

custom script category in a menu not showing

I have a custom script to create a menu and a category everytime a user register for multisite. Below is the code where I create a menu and category. switch_to_blog($id); $_nav_menu_selected_id = ...
0
votes
0answers
37 views

Hide specific categories from category widget

I'm trying to hide a large amount of categories from my category widget. I've tried a few plugins but none of them seem to want to let me use the dropdown option. I looked into the ...
0
votes
1answer
25 views

How to make all post in to a category?

I need to make all current posts to a category called "Past Posts". I could not find a way to do it. I have 250+ posts. So I can't do it manually.
1
vote
2answers
160 views

Echo one category as title when post has multiple categories?

UPDATED QUESTION to be CLEARER Here's my situation: Wordpress top navigation has several menu items that jump to an array of posts within a specific category. For example, if you click "necklaces" ...
0
votes
0answers
7 views

New notion of custom posts subset

I want to create an image voting site. As a user I want to: Create a "Poll" that belongs to some category (custom wizard process) Post an image to any "Poll", mine and thine (limit of 1 post per ...
0
votes
3answers
39 views

get_posts - require all categories

From the get_posts docs I see it takes categories as a parameter. However, is this an AND or an OR? i.e. if you specify 2 categories do posts have to be in both to be returned? If not, how do you ...
0
votes
0answers
15 views

Force to select a category when creating post [duplicate]

I just wanna put condition, when user is creating a post, the post won't create until choosing a specific category. How can I force user to select a category while posting a new post.
1
vote
1answer
33 views

Offline Wordpress Application

I have to Document some Work and i thought to use WP as a platform to work with others. We have articles, pictures in different categoried and could use the tag function. A Search function is ...
0
votes
0answers
57 views

Have the same sub-category and slug for two different parent categories?

Just want to make sure: I have category 1, with subcategory 'resources'. Can I have category 2 also with a 'resources' subcategory? I would like the slug to be the same in both categories.
0
votes
0answers
19 views

Getting specified level all categories

How get all categories(in object format) by specifying required level. For example: We have Cat1 => Cat1-1 Cat1-2 => Cat1-2-1 => Cat1-3-1 Cat1-2-2 Cat1-3 ...
0
votes
1answer
33 views

Create query for both custom post type and category

I have a custom post type called articles and have category = news I want to make a query from the two parts to get content from (cpt=articles, category=news) in the same query? How can I achieve ...
0
votes
0answers
39 views

Correct url for categories

In WP 4.2 project I added taxonomy using register_taxonomy function like $labels = array( 'name'=> _x( 'Category Artists&Songs', 'Taxonomy General Name', 'artists_songs' ...
0
votes
1answer
47 views

Is it possible to create an alias/custom taxonomy for a category name?

I have a 190 categories - 2 parents, 2 children each, each of those has 2 children, and each of those has between 10-20 bottom level categories. The problem I've run into is that this is an apps ...
0
votes
0answers
24 views

How to get a single archive page to display my various custom post types respective terms?

Is there a way to make a single archive show the respective terms/categories of multiple custom post types ? So far i have been able to make use of a single archive.php to display my various custom ...
0
votes
1answer
16 views

In a shared site, how to get products in a category from one site to another?

Our wordpress site(s) is actually 2 in 1. That is, while they are separate host URLs on the same domain, same server, they run from the same set of wp code, but different databases. They are not ...
0
votes
1answer
90 views

How to display two random-post sections that are each under their own category

<?php get_header(); ?> <div id="containerHOME"> <div id="left-div"> <!--Begin Sidebar--> <div id="left-inside"> <?php if (get_option('earthlytouch_featured') == ...
0
votes
0answers
11 views

Custom post taxonomy

How can i add category name field for other language for custom post taxonomy?Here are only one field for English.
0
votes
1answer
32 views

make categories editor unchangeble for my post_type

In WP 4.2 project I added new post_type using register_post_type function and taxonomy using register_taxonomy function and 2 categories using wp_insert_category function. That all works for me ok, ...
1
vote
1answer
62 views

Creating a category page by alphabet

i'm new to wordpress, and i don't know how to code. I would like to make a page where all my animes are sorted by alphabet, like in this image I've heard about the wp_list_category function, so i ...
0
votes
2answers
30 views

404 error when i try to search by category or by tag

I have following problem. When I try to search by tag or by category, I have 404 error. It means that when URL is like "domain.com/category/smt/" or "domain.com/tag/smt/", I have the error. I tried ...
0
votes
0answers
23 views

Categories Images and Twig Files

Ok, I'm using the Categories Images plugin (https://wordpress.org/plugins/categories-images/) to add category images to Property Type (categories). The plugin is working and has added an image upload ...
0
votes
0answers
126 views

Display post content from category name using ajax

I'd like to display categories as buttons. When I click the button I'd like to display a list of the post in that category The post have a title, thumbnail image, content(text) In the list of posts ...
1
vote
1answer
139 views

Load categories with ajax

I don't have any link or demo to show cos I'm working locally I have news posts with different categories. I want to show the categories as buttons. When you click a category I want to load those ...
2
votes
0answers
70 views

How to show subcategories in categories else show posts

I have hierarchy like this: Category1 -Subcategory1 -Subcategory2 --Post1 Category2 -Subcategory1 I need to show subcategories name and description when i go to category//// Now i use this code: ...
1
vote
1answer
31 views

Listing Texts of Which Custom Field is Null

I'm using the code below for adding checkbox as a custom field. The texts selected via checkbox will be counted as "special texts" and the other ones will remain as "ordinary texts". <?php ...
1
vote
2answers
91 views

“Sticky” posts for each category (archive.php)

I need to have the ability to have Sticky posts for each category. The simplest way to do this appeared to be to just create two loops on the page. This is what I wrote: <?php //Custom "sticky" ...
-1
votes
1answer
23 views

2 Categories using same template but one has a problem? [closed]

There are only two links at the top. Sims4 and Sims3. The Sims 4 page is not lining up the posts correctly but The Sims 3 page is. They both use the same template. Why?
0
votes
0answers
77 views

Create a popup/modal to select category before enter site

I need to create a Popup or Modal that works like this: When user access the website, a modal appears at screen and makes user choose two categories: STATE and CITY. States are parents of Cities. ...
0
votes
0answers
28 views

Category Page Pagination

I am just having a little different issue on category page I dont want to show posts on category page i am showing child categories of their parent category on category page so when user click on ...
0
votes
0answers
42 views

Display posts with current tag, organized by category

I'm creating a list of posts that have the same tag as the current post (this is in a single-post template). I need to display those posts organized by category, with the category name appearing once ...
0
votes
0answers
55 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
1answer
85 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
20 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 ...
0
votes
1answer
191 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" ...
0
votes
0answers
10 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 ...