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
15 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
9 views

Show posts of one category only with Custom Taxonomy on single.php

I have created a custom post type named 14kgold. Under this I defined two categories: Symphony and Noir. Now I added items/ products to each category. When I open a product under one category i.e. ...
0
votes
1answer
20 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
11 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 ...
0
votes
0answers
12 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 ...
1
vote
1answer
20 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
18 views

restrict content in product category in woocommerce

how can I restrict the product category in woocommerce. Most of the restriction plugin were in page, but in product category, there is no page for that. If I just the woocommerce shortcode ...
0
votes
0answers
17 views

Wordpress checkbox slider

Using template Sparkling: https://colorlib.com/wp/themes/sparkling/ Here slider uses a category for displaying slides. Slider Code: function sparkling_featured_slider() { if ( is_front_page() ...
0
votes
1answer
47 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, ...
0
votes
1answer
12 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 ...
3
votes
3answers
69 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
1answer
23 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 ...
1
vote
0answers
24 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
0answers
22 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
1answer
13 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
votes
1answer
25 views

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

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

Want category pages to show post links without any except below

I have several categories on my website. I want that when a user lands on a category page. He or she should see only the links to the posts in that category without any page description / excerpt ...
0
votes
1answer
18 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 ...
0
votes
1answer
16 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 ...
-1
votes
0answers
29 views

Pagination not appearing on custom category template

I needed to be able to display posts from two different categories on a single category archive, so I used the code below from my existing category template, and specified the two categories that need ...
0
votes
1answer
20 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
33 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
0answers
23 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(); ...
0
votes
0answers
13 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 ...
0
votes
1answer
17 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
31 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 ...
0
votes
0answers
19 views

Automatic Category selection

So, here is the first code which shows the category of a post(or product). <?php echo $product->get_categories( ', ', '<span class="posted_in">' . _n( '', '', $cat_count, 'woocommerce' ) ...
0
votes
1answer
25 views

Display Count of posts

I'm trying to create a counter that will display the page number followed by the page count of a category page, where there is 1 post per page. For example if there are 10 posts in a category: 1/10, ...
-1
votes
1answer
23 views

Displaying categories and subcategories without link

I want the categories and subcategories to be displayed on my single product pages, but I dont want them linking. I've found some really nice code here WooCommerce - how to display product category ...
0
votes
1answer
19 views

How to loop through a custom field for each post, & display?

I'm working on a category page. I want to show all the posts that belong to that category on one page. Each post makes use of a custom field that I have added. I want to loop through the posts to ...
0
votes
1answer
28 views

Child Category Conditional Question

I am trying to display images if a child category is selected however when a child category is not selected I want to display a message saying its not available. The below code works to display the ...
0
votes
1answer
35 views

Url link to feature image in the portfolio wordpress [closed]

I am new to Wordpress. i have issue with Feature image. just i need to add URL to feature image(when we click on that feature image , it should redirect to that particular URL). also is it possible ...
0
votes
1answer
17 views

How to view WordPress' default category IDs?

It seems that Wordpress has default categories with default (and unchangeable) IDs. For example, the uncategorized category seems to always have an id of 1. Is this always the case? Is there any ...
0
votes
0answers
16 views

WordPress list ALL post categories with count

I'm having trouble getting my 'All' category to show a post count. Lets say I've listed all my categories with post count and also added the show_option_all so it outputs like this: All Spring (4) ...
0
votes
2answers
32 views

Latest updated categories list query, exclude one from displaying

I have this query: $cat_array = array(); $args=array( 'post_type' => 'post', 'post_status' => 'publish', 'exclude' => '187', 'posts_per_page' => 19, ...
1
vote
1answer
16 views

Dropdown category filter

Ive an array set up to filter through various categories, currently it is only displaying 10 a maximum of ten posts instead of all of them. Where have i gone wrong? <div class="select-search"> ...
0
votes
0answers
20 views

Get full control over custom post type url

The situation I have a custom post type, lets call it 'CP', which has two parent categories named 'companies' and 'category'. Posts of type CP can only have one company and multiple categories. So, ...
0
votes
1answer
53 views

Show only top 3 posts from 3 categories in order on home page

This function will show the last 3 posts from any category on front page: // Only top 3 posts from CHR category add_action('pre_get_posts', 'ad_filter_categories'); function ...
0
votes
0answers
19 views

Customised Page from archive-product.php

How can I show on a template customised that uses the archive-product.php code only products from a category? I am using the same code because I need display on some pages some products with the sort ...
0
votes
1answer
17 views

Query post only from categories that have subcategories

My categories structure : Category 1 (8 Posts ) subcategory1 (2 Posts) subcategory2 (2 Posts) subcategory3 (2 Posts) Category 2 (6 Posts) subcategory1 (2 Posts) subcategory2 (2 Posts) ...
2
votes
1answer
41 views

Taxonomy structure of Sport site

I have a hard time figuring out how to structure a site. The site is a news site for 3 different, but related sports: Skateboard, Snowboard and Surfing. Each Sport has typically Athletes, Event names, ...
0
votes
0answers
30 views

Publish specific category posts to specific pages

I'd like to have many different categories of posts. And many "blog template" pages. And when i create a new post of a specific category and see it posted only on specific pages. Is the only way by ...
0
votes
0answers
15 views

Replacing Standard Category Metabox

I am rewriting the standard category metabox to include a Custom Field as a select box which is dynamically updated as the user chooses the categories. This select box is set with all "checked" ...
0
votes
1answer
29 views

How to add additional field to Add new category part (without plugin use) [closed]

I want to add one custom field to Add new category (into WP-admin).The purporse of that field would be for icons (e.g user paste font-awesome icon class and it display icon on front-end). Thank you.
0
votes
2answers
48 views

Changing permalink from /postname/ to category/postname/

I have a website where it consists more than 800 posts, At present my permalinks structure is /%postname%/, but due to some reasons I want to change it to /%category%/%postname%/ I have implemented ...
0
votes
1answer
43 views

How to get the link of all categories

I have this code: <div class="widget-title"><h2><?php echo esc_attr(of_get_option('carousel_post_title'));?></h2></div> So in my home-page.php i GET the categories, ...
0
votes
2answers
26 views

Deleting a category from WordPress admin does it remove it completely from the database?

When you delete a category in the admin of WordPress does it completely remove it from the database? I had a few categories with the same naming conventions (different slugs) but now deleting any ...
0
votes
1answer
23 views

show category name before first posts in each category

I want sort posts in the loop by category and before first post in each category display category name. For example: Category 1 Post Post Post Category 2 Post Post Post Post ...
0
votes
1answer
54 views

WP_Query order by date in meta_value

i have a small problem i think. this is my code for my category-releases.php: <?php $paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1; $args = array( 'posts_per_page' ...