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
36 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
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
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
87 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
0answers
23 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( ...
2
votes
4answers
1k views

Creating “static” taxonomies to choose from, inside custom post type?

Alright, so i have a custom post type called Blurbs (translated, sort of). I want to add a static set of categories for the posts within Blurbs (i don't want the user to be able to create custom ...
0
votes
1answer
30 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 ...
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 ...
4
votes
2answers
3k views

How To Modify The Loop in archives.php To Have 11 Posts Per Page and CSS Styling

I edited my loop in archives.php in order to work with pagination and with the Category Post List Widget. I basically pieced it all together from random code and ideas and am now so far from the ...
0
votes
2answers
414 views

Custom loop of a single category, cannot order by date. What am I missing?

I'm going nuts. All I have is a simple loop on the home page of the site (which is a static page), and it should show the most recent (1) post of a certain category. The trouble is no matter what i ...
-1
votes
1answer
22 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
43 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
14 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
96 views

Set a default category - if the user didn't select one- before creating a post

Is there some option hook to set a default category for a custom_post_type when the user didn't choose any ? For example in RoR it's very simple - by using before_save filter you can set whatever ...
1
vote
1answer
43 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
1answer
590 views

Display only posts from a specific parent category

I have a category structure similar to the below: Grand parent cat Parent cat 1 Child cat Child cat Child cat Child cat Parent cat 2 Child cat Child cat Child cat If I ...
1
vote
1answer
93 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 ...
0
votes
1answer
27 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 ...
0
votes
0answers
37 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 ...
3
votes
2answers
3k views

Customizing Default Categories Widget

I am trying to hack the default categories widget from wordpress. I have the categories displaying the way I want but I am having trouble editing the output. The widget shows the number of posts in ...
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
1answer
46 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 ...
0
votes
0answers
26 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 ...
1
vote
1answer
70 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 ...
4
votes
1answer
5k views

Order get_terms() By Custom Field

I want to order my categories like I order my pages. I've added an extra field called Order to my taxonomy, but how do I order my terms by this value? Adding and Saving my Order Value: /** Add New ...
3
votes
1answer
112 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
43 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 ...
2
votes
1answer
1k views

Featured Posts for Category Pages

I was wondering if anyone knew how to have a different "featured post" based on it's category per category page? For example, if you are on the medical category page, you would see a medical post ...
0
votes
0answers
35 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. ...
-1
votes
1answer
47 views

Convert wordpress tags & categories to woocommerce tags & categories?

With the ref of Convert WordPress posts to products in WooCommerce I have learnt how to change wordpress posts to woocommerce products. How can i change wordpress categories to woocommerce ...
0
votes
0answers
12 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
13 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
40 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 ...
1
vote
2answers
1k views

Exclude Posts From Specific Category from Next and Previous post links

I've been searching for this a lot...but all I get is not what I need. I simply want to show next and previous links on single.php (from all the categories, based on publish date, not just in the ...
3
votes
2answers
74 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, ...
1
vote
1answer
30 views

Best method to make posts searchable, sortable and filterable - custom field, tag or category?

I'm wanting to create/modify either the existing post type, or create a new post type to be searchable, sortable and filterable by the following fields: Country from: Country to: Activity: ...
-2
votes
2answers
42 views

How to pre-set Wordpress settings for specific posts?

The WP site I am creating requires creating diff posts for diff categories. What I like is that if someone chose to post under category A, i have a bunch of pre-set settings (tags, banner image etc) ...
0
votes
1answer
33 views

Allow authors to post only in categories they create in WordPress

I'm looking for a way to allow users with an assigned WordPress role (in my case, author) to create new categories and then automatically be restricted to only posting in those categories or the ...
0
votes
1answer
23 views

Showing Categories for Page Edit - without plugin

I am building a theme without any extra plugins. Does anyone know the code needed to show the Categories in page Edit - without using a plugin?
0
votes
1answer
87 views

How to display widgets inside a page content without a plugin?

I want to build a homepage where I can show posts gathered from different categories and having the ability to choose such categories from the admin. I was thinking to use widgets for this. Is the ...
0
votes
1answer
53 views

Javascript code for Category

can I check if scripting can be encrypted for specific categories? For example, I would like to encrypt only for http://www.example.com/category/news/education, for ...
0
votes
0answers
63 views

Create select dependent dropdown by meta values or categories

We had 3 custom fields Brand Model Features (multi input in an array ) need dependent drop down form when select Brand (or Category) > show drop down menu contain all Models (related to this ...
0
votes
0answers
31 views

featured image rss feed in a category

I want to get the featured image in my RSS feed in a specific category. With the principal rss feed mywebsite.com/feed , I have no problem. Featured images are displaying. When I want to create a rss ...
0
votes
0answers
132 views

How to add number of post to category menu items

I wanted to know how we can add number of posts for dropdown menu items that are categories. For example: Topics Category 1 (5) Category 2 (8) Category 3 (2) More Topics Category 1 (5) ...
-4
votes
1answer
991 views

AZ Directory posts directory index

I would like to create an A to Z index of posts in a certain category. This must include a linkable directory of letters ABCDEF .... etc and a list of articles ordered by title grouped by letter. ...
0
votes
1answer
172 views

403 forbidden on one page only

I can't access http://www.mysite.com.hr/biljke/ The only error i get is Forbidden You don't have permission to access /biljke/ on this server. This is regular hierarchical category for post. I ...
2
votes
5answers
8k views

Category links suddenly started giving 404 errors

My Wordpress blog suddenly seems to have started giving me 404 errors when accessing category pages. For example, http://blog.rtwilson.com/category/tok-related/. Interestingly, this doesn't happen for ...
0
votes
0answers
17 views

404s with /slug/page/2/ vs. /category/slug/page/2

All of my category pages seem to have the default URL of /slug/, so when I include them in my site's navigation menu, Wordpress renders the links as /slug/. So, the pagination links on the page ...