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
vote
1answer
84 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
39 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
43 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
121 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
168 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 = get_the_terms(...
0
votes
0answers
33 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
35 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
18 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
186 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
58 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
49 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
48 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
77 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
223 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
73 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
50 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
46 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
91 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
17 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
33 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: ...
0
votes
1answer
48 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
27 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
73 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 http://www.example.com/category/...
0
votes
0answers
90 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
35 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 ...
-2
votes
2answers
43 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
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 /slug/...
0
votes
0answers
22 views

Get all categories (ids) in array with hierarchy

How we can retrieve all categories into one array with only ids. And it should be hierarchical. I don't find similar API function...
1
vote
1answer
27 views

Articles are text-only in any “Category” instead of HTML

I run a Wordpress blog at http://toile.reinom.com/ and a lot of articles are using HTML codes (mainly <h*>, <p>, <a> and <figure>). Those tags are correctly displayed on the ...
1
vote
0answers
42 views

Exclude Category filter from Portfolio section

I am stuck with this since hours and found lots of forum entries about NOT IN, WP_Query, category__not_in portfolio, editing JS/ CSS in Theme options or having bits of code to add to portfolio.php, ...
0
votes
1answer
33 views

Prevent function from triggering again when post in specific category gets another category?

I have created a function to send out an email to authors when there post is added in the popular category for custom post type. IT WORKS but there is 1 major issue. If the post that is in the ...
0
votes
0answers
14 views

dynamic table for post?

I want to display a list of items with pictures and a short description in a table on a wordpress page. The problem is that I want to the main future editor to be able to add new items at the start ...
-1
votes
1answer
66 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
33 views

get_posts ( $args) failing when called by AJAX

Here's my code: function ajax_test(){ $default_workout_category = 61 //Hardcoded category for testing $args = array( 'category' => $default_workout_category, 'orderby' => 'title', '...
0
votes
0answers
14 views

search result in category url

I want to make a link that shows search result in category links like this link site.com/category/booklets/?s=image I mean when I search "image" word I want to see all results in search file and also ...
0
votes
1answer
17 views

get_the_terms_list output last child only

I'm using get_the_term_list on an archive page which currently outputs all categories that a post is in with links. My question: Is it possible to only display the last child category, not any ...
1
vote
0answers
26 views

How to show custom taxonomy in the permalink?

I used the Portfolio Post Type Plugin to create custom tax and post type. I would like to show the custom taxonomy on the portfolio projects. portfolio/customtaxonomy/project while now is ...
1
vote
1answer
37 views

How to export/import categories and keep their IDs?

Using a plugin doesn't keep the IDs of the categories and exporting/importing of the wp_terms and wp_term_taxonomy tables only works on categories without parents, it seems. The admin panel still ...
0
votes
2answers
40 views

How do I add a category to my post_type

I have a section in my dashboard called "services". I have 4 services I have 2 categories for these services: residential and commercial 2 of the 4 services have the category "residential", and the ...
0
votes
1answer
69 views

How to remove category titles?

When I go into certain categories, there is a page title that says "Category: category_name", like this: I would like to remove the "Category" from that title. I've already looked around quite a ...