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
0answers
79 views

How to get parent categories name and post thumbnail image

How can i get current category parent categories name and each parents categories one post thumbnail images. Example, Portoflio Website App Graphics Business Card Flyer Poster so i want ...
-1
votes
1answer
68 views

woocommerce related products by specific categories [closed]

I am looking for a way to alter the related products functionality to relate one category of products with another. For example: I have 4 categories: Spoons, Cups, Bowls, Straws. When you select a ...
1
vote
0answers
12 views

Prevent additional top level categories but allow more children

Is it possible to prevent additional parent categories being added to posts but allow children categories to be added to predefined parent categories? For e.g.; Food & Drink -- Mexican -- ...
0
votes
0answers
15 views

Category and tags of CPT customize URL

Actually I have created categories and tags of my Custom Post Type. My URL of category or tags are : www.example.com/category/name-category www.example.com/tags/name-tags but I want to customize ...
0
votes
0answers
29 views

How Can i order posts in category pages ? They are not in correct date order

Is there anyone who can help about changing category pages order. Somehow they are not in correct date order ? URL : http://abbakimevi.com/category/bizden-haberler tempalte-blog.php : <?php /* ...
0
votes
2answers
34 views

How Can Hide Define Category in Post Contents?

This is My Category List : 1- Years 2- Genere And I use This Code For show in posts : <?php the_category(' , ') ?> How Can Hide "Year or Genere" in up code? Please Help Me.i want Show Only ...
0
votes
0answers
23 views

Order categories input fields

I am using: add_action('category_add_form_fields', array ($this, 'add__form_fields'), 10, 2); To add an extra field in the categories form, it is possible to choose the position of this new field? ...
0
votes
1answer
68 views

Create category post shortcode

I'm trying to create a shortcode for my theme without using plugins. I tried this http://wpgeneratetool.com/short-code/ but i can not figure out how to create. I want to create something like the ...
0
votes
1answer
26 views

List Authors For Current Category

I want to list all unique authors that have posts in the current category. My code (location: wp-content/themes/custom-theme/category.php) <div class="container"> <div class="row"> ...
1
vote
1answer
26 views

Removing category base form links messes up the parent-child behavior

I am using the 'standard' trick for category removal in wordpress. In my permalinks I set the permalinks structure to /%category%/%postname%/ And my category base to . Which worked fine, until ...
1
vote
1answer
21 views

Use post as category

I created two kind of custom post type: "Fields" and "Functions". Can I associate a post field with some function post (like if function was a category). I choose to use "Functions" as post, cause in ...
3
votes
1answer
116 views

Display all posts with same title

I'm trying to display in a sidebar php widget, all posts with same post_title in a specific category. I find this code on internet but don't how to use it Thanks for your help. function ...
0
votes
0answers
49 views

SQL Query for all posts in specific category

I try to add a custom field to all posts in specific category with a sql query. This query set meta_value of new meta_key as post_author value in ldn_posts table. Here is begin of the code (works for ...
0
votes
1answer
47 views

How to auto update post title and slug with category name when post status is updated

I need to auto update post title and slug with category name every time when post status is updated. Some function like this but with the correct code.... ...
0
votes
2answers
25 views

How to add style in functions.php depending on conditions?

I'm a newbie for coding, I would like to learn how to add css style conditionally in functions.php My header controlled by .header-outer class. What would it be the best way to add css depending on ...
0
votes
0answers
17 views

How can I manually set an order for specific category in Woocommerce?

I have a shop page in Woocommerce where I manually put the order number through the product page. This is fine when they view the entire collection. What I want to do is set a second order number for ...
0
votes
0answers
32 views

Article posted in multiple categories but show wrong title

I have an article which is posted in multiple categories and I put those categories in a menu, but when I call the category, the title always shows the first category (ascending alphabetical order). ...
0
votes
2answers
39 views

Change post title if post has specific category

Basically what I am trying to achieve is to have title changed of posts which are in category number 30. My code is: function adddd($title) { if(has_category('30',$post->ID)){ $title = 'Prefix ...
0
votes
0answers
38 views

Query/load only WooCommerce shop categories into a custom landing page?

I want to reuse the WooCommerce shop-categories in a custom grid landing page, but without the product images, as I am using custom images to make the grid wall. What is the best way to do this? ...
0
votes
0answers
20 views

Display tags belongs to a category even if if it belongs to multiple categories

Here is my case: I have 2 main categories I would like to display posts in separately: 1) Garden 2) Recipes One page for Garden with posts belong to "Garden" and one page for Recipes with posts ...
0
votes
1answer
62 views

Assign different category colours to different categories in the main menu

I have created a colour picker field with ACF which shows on every category page and allows the end user to assign a colour to each category. This is working well but I would like the categories on my ...
1
vote
1answer
64 views

How do I get the category URL from get_the_category?

My loop below shows the latest 4 posts from the same category as the post currently being viewed. Its located within single.php. I'm trying to get the URL of that same category so I can link back to ...
0
votes
1answer
38 views

Single.php category entries not showing right colours

I am trying to implement a way of having different colours for different categories in single.php. So, I have created a colour Picker field with Advanced Custom Fields and this field shows on each ...
1
vote
1answer
39 views

Need help with category listing!

I'm trying to solve this for a while, but I couldn't get a satisfactory way to get what I want. Maybe it's very simple and I'm just too inexperienced. I need a way to display all the article titles ...
1
vote
1answer
111 views

How to tax query X number of posts related by tag first, then by category if not enough in tag-related

Question How to output tag related posts first, then IF there are less than 4 tag related posts, fill the rest of the 4 spots with category related posts? Scenario Sometimes a post has very few ...
0
votes
1answer
145 views

Add inline style to get_the_category_list

I need to style the get_the_category_list() a tag but can't seem to find a way. This is my code: echo '<ul class="list-inline meta-list">'; // Get the categories $terms = ...
0
votes
0answers
26 views

Loop through custom post type taxonomies

I have created custom post type products and I want to show categories on products archive. I have this code <div class="container"> <div class="boxes"> <?php $cat_args = array( ...
0
votes
0answers
25 views

Filter WordPress custom post type with taxonomy

I'm new to word press I have create one custom post called product and have three taxonomy in it. 1.product type 2.location 3.category now i want to search product with all taxonomy selected by ...
0
votes
1answer
34 views

wp_category_checklist won't show up for non-admin users

I have a product registration page with a form in which I use wp_category_checklist() to make my users select categories. This works great only, I just today noticed that only admin's can use the ...
1
vote
1answer
6 views

How to add Wordpress sub category without select

How do I add a wordpress sub category without select parent dropdown using text Thanks.
-1
votes
1answer
24 views

How to prevent uppercasing of menu titles

My category names are being converted to uppercase when I use them as menu items. Here's how I created a category: And here's how it is displayed: Is the theme doing this or is it WordPress ...
4
votes
1answer
44 views

Where/how are categories stored?

Disclaimer: I am new to WordPress. When I add categories to my blogging site, where/how are these categories stored? If I want to change the names of these categories in batch, without having to go ...
0
votes
0answers
15 views

Smart Search exclusive to Custom Posty Type

I am in the brainstorming stages of a project and wondering what is the best way to achieve the following. I will have a Custom Post Type of "Projects" which will contain multiple categories and some ...
0
votes
1answer
29 views

Remove Archive | from Categories

Can Archive | be removed from the title of each category, either by CSS or core code change? At the moment it shows as "Archive | My Category Name", I just wish it to show as "My Category Name" I ...
1
vote
1answer
143 views

Woocommerce custom category page with pagination [closed]

I want to create woocommerce category custom template. i am not sure i am doing it the correct way or not. What i did is I edited taxonomy-product_cat.php file. , In my code i am able to get ...
1
vote
1answer
49 views

Updating category template to change how subcategories display

I'm looking to update my category template to display subcategory posts differently than category posts. I'm fairly new to Wordpress template editing but know HTML/CSS well, and PHP enough to ...
0
votes
0answers
42 views

Way to target parent product category and all sub children

This might be a weird question but I have the following if... statement: if ( is_product_category ( array( 'parent_category', 'child_category', 'child_category', 'child_category ) ) ) { I am ...
2
votes
1answer
31 views

Auto set Post to Specific Categories

Assume that I have created following category. Mobile If the post title has any of "mobile","Nokia","Samsung" these tags I need to set that post to Mobile category. I can do it for new posts, I ...
0
votes
0answers
28 views

override a category with a page using a rewrite rule

I want to override a category with a page using a rewrite rule. The code below works fine. It overrides the education category with the education page. Strangely though I'm getting a 404 on the ...
0
votes
1answer
47 views

How to Query the Top 5 Posts of a specific category?

This is the code I was able to find: $query = new WP_Query( array( 'meta_key' => 'post_views_count', 'orderby' => 'meta_value_num', 'posts_per_page' => 5 ) ); How would I make this so it ...
1
vote
1answer
75 views

Why is my category template ignoring post type?

I am currently working on two sites that make extensive use of custom post types. For both we have a defined number of items (cpts) that fall under a particular bucket (categories). One of the sites ...
3
votes
1answer
165 views

display woocommerce all category title on home page

how can i display in my theme all woocommerce category title are custom filed value. example html like bellow <li><a href="#"> <div> <h2>category ...
0
votes
0answers
65 views

WooCommerce - Force subcategories to use parent category custom template

I currently have a top level Woocommerce category of 'Artists' and I have created a custom template for this page 'taxonomy-product_cat-artists.php' How could one force all of its sub categories to ...
0
votes
0answers
42 views

custome woocommerce category page

i want to create custom category template for woocommerce category page. i search in google lot but don't get yet anything which can help me to figure out. but i tried many way not full success yet. ...
0
votes
0answers
13 views

Get categories from custom posts

I installed the author category plugin and I'm having difficulty getting it to work with custom posts. It appears that the author has abandoned the plugin and I can't get support through WP. Here's ...
0
votes
0answers
14 views

How to compare 2 attachment tags against category tag

I need to compare 2 tags from an image attachment against tags that are used in categoryID=2. And only get returned the tag that is used under the categoryID=2. With that, I should get returned just 1 ...
1
vote
2answers
45 views

Different excerpt styles per category, but chronological

I want to have different sized previews for different kinds of work I've done. Say 100x100px for regular stuff, but 200x200px for a bigger project. I figure I can use category to sort, and I know how ...
0
votes
0answers
20 views

Importing and Merging Data into Wordpress Theme from Two CSV files?

I'm working on a website that will sell products via a dropshipping wholesaler. The dropshipper supplies xml files/csv files for everything necessary except that the category csv/xml file is separate ...
3
votes
2answers
87 views

Elegant way to add parent categories?

Is there any more elegant way to automatically add the parent categories through PHP (not JavaScript) upon registering categories for a post from some custom page? I Add the categories checked with ...
0
votes
0answers
15 views

Allow only certain tags when category chosen

Is it possible to allow only certain tags when one category is chosen? For example I have mulitple categories: Fruits and Tools And then I have multiple tags: Apple, Hammer, Saw, Banana, Wrench, ...