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
2 views

List Categories into Registration Form and assign to user automatically

I'm using a wordpress plugin "WPCourses Pro" http://goo.gl/YaIp3K. Free version is here https://wordpress.org/plugins/wpcourses/ The plugin has taxonomy=category_course and post_type=courses Selling ...
0
votes
1answer
10 views

Display 2nd category, only once, as sub-heading, in the loop

I have a Custom Post Type ("Rental"). I am using the code from this article I found to display Rental custom posts on a page, with the Categories of a custom Taxonomy ("Region") as headings between ...
0
votes
1answer
47 views

Related content based on category name

I'd like to modify the code below so it grabs the data based on the category the post is in and 'only' that category, not children categories, not other categories, only the category of the current ...
1
vote
1answer
19 views

How To Get WordPress Categories Link List?

I am trying to make a custom sitemap for my WordPress blogs categories. For that I added the below code in my functions.php file and when I save it, my Blog goes white. Nothing is showing up. I ...
1
vote
3answers
478 views

Can I hide a specific post from latest posts page?

Let's say that I have a post that I only want to be shown in the page of the category that it belongs to. The problem is that this post is also visible in the latest posts page. Is there a way to ...
0
votes
1answer
31 views
+50

Same menu for different taxonomies to reach different content

I'm using a "location" taxonomy to show the same website for 4 different locations. Each of them will have the same categories which I want to display in a menu. Is there anyway to create the same ...
1
vote
2answers
869 views

Wordpress Child Category Display All Posts

I am creating a Wordpress page where all my posts in the child categories of team are displayed in a grid. I got this working with the below code. The formatting and general layout is great however it ...
2
votes
1answer
48 views

How do I change the sql query for wp_get_archive()

I am using wp_get_archive() in category.php. If I am on page of category=2 it should show my archives of only that category. However it is for all the categories. So how can I change the query for ...
5
votes
3answers
377 views

WP 3.9 TinyMCE no longer loads on category description editor

I've used this script below inside functions.php since WP 3.5 It converts the standard category description editor to a rich text editor. Unfortunately, after upgrading sites to WP 3.9, the ...
2
votes
1answer
34 views

Display only posts from referred category on date archive page

I am using wp_get_archive() in category.php. If I am on page of category=2 it should show my archives of only that category. However it is for all the categories. Following is the code for my ...
0
votes
1answer
14 views

Show div only if post is in specific category

In my list of blog posts, I would like to show a div which labels the post as a "Press Release" if the post is tagged with the "Press" category. I have added the following chunk into my loop: ...
7
votes
4answers
558 views

Allow users to create their own feed from selected categories?

I've been wandering around on the web for the last couple of hours wondering if there's a way to allow users to build their own RSS feed by selecting categories within WordPress, that could then be ...
0
votes
0answers
16 views

Highlight specific menu item when custom post is page

I know that this question was asked many times, but I did not find a really good solution for my problem: I have a custom post type "event" with some categories like "lecture". For each category, I ...
0
votes
1answer
1k views

Show custom menu in category and its posts

I have a category X of posts. The category page and it's individual posts are all part of a custom menu consisting of pages and posts. My submenu, in the sidebar, works fine for showing on the pages, ...
-2
votes
0answers
26 views

Would this structure be possible in wordpress? [on hold]

A site with 4 different locations, for example: London Cambridge Manchester Briton Once the user click on any of them, a new menu will appear: Cars Tvs Trains Ships So if I click in first in ...
0
votes
2answers
24 views

Check if current category has subcategories

I have found the following piece of code in the WP Knowledge Base theme in order to show subcategories of a parent category. The problem is that this only works for the first level of hierarchy, so I ...
-2
votes
0answers
13 views

List Woocommerce product with its category ID - MySQL / PHP [on hold]

I am using a MySQL query to list all product addon variations(swatches), I am able to do this fine, as well as list the product the variation is associated with. The problem I have is listing that ...
0
votes
3answers
27 views

Getting category URL with hyphens, not spaces

So, I am using this to get the URL: <a href="/category/<?php foreach((get_the_category()) as $category) { echo $category->cat_name . ' '; } ?>"> Which is outputting: ...
0
votes
1answer
292 views

List child categories from parent category on custom taxonomy page

I making some updates to a theme I'm currently working on. I've moved a bunch of categories that have custom post items under them into a parent category that's all within a custom taxonomy. e.g.: ...
2
votes
1answer
21 views

Multisite - create a category in specific site

I have a multisite I want to create a category but in a specific site. I used this functions below: wp_create_category('mycategory', 0); but this will create a category on the main site. I keep ...
0
votes
1answer
16 views

Group Posts by First Letter of Title categories

Questions is a duplicate of this one: Group Posts by First Letter of Title However, I was unsure whether I could ask on that, or I had to start a new question, so I did the latter ;) I implemented ...
1
vote
2answers
842 views

Display posts from Custom Post Type in category page on front-end

I created my Custom Post Type (bizdirectory), created a new post (Test Business) and created a new category (Business Directory). But if I add the Business Directory category (slug = business) to my ...
1
vote
1answer
4k views

How to split the categories of subcategories with thumbnails

This is the code I use to display all product categories with thumbnails: <?php $cats = get_terms('product_cat', array( 'hide_empty' => 0, 'orderby' => 'name' )); ?> <div ...
1
vote
1answer
14 views

Excluding a category from next and previous post links

I am trying to figure out the code to exclude a category from my next and previous post links. My code for the next and previous is as follows: <div class="next_prev_cont"> ...
0
votes
1answer
14 views

Use post in multiple places on a page with multiple posts

I have three custom post types: workouts, news_items, and business_items. I'm trying to display the top (most recent) item from each on the home page and I'm trying to put the featured picture from ...
0
votes
1answer
30 views

How to link a PDF file to a category URL

I am not sure if it is possible to do this but I have a category called case-studies into which I write individual posts to summarize a case-study - for the sake of this question let's give a title of ...
1
vote
2answers
297 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 ...
0
votes
1answer
12 views

Multiple categories for one menu item?

I have six categories: Seasons Categories: Spring Summer Fall Winter Collections Categories: Formal Wear Night Wear Ready to Wear Sports Wear I need to put them up in the navbar custom menu ...
0
votes
1answer
44 views

Category Template for Custom Post Type

I'm driving myself crazy with the following issue, hope you can help me! I'm working on a WordPress theme for a business directory so I decided to make some custom posts types on functions.php file ...
0
votes
0answers
17 views

Page with the same name of a category

I've a category, let's say "testcat". I want to create some pages which the final url should be "http://example.com/testcat/pagename". To do this, I should create a page named "testcat" and then a ...
0
votes
1answer
16 views

I have many different products on my website how can I get them to display under specific categories?

How and where do I put code to get products assigned to categories. I bulk imported categories after I already had products setup. Now I was wondering how I can move all the different products to the ...
1
vote
1answer
22 views

Categories list into registration form

I'm trying to create a custom user registration form used for Educational website. Is it possible to automatically retrieve categories of posts (custom posts) in the registration form. The form ...
0
votes
0answers
38 views

how to capture the value of the selected parent category

I am very new to WordPress as well as coding and I am stuck with one of the form field, which has a select box for listing all categories and sub-categories (taxonomies) in it. But I would like a ...
0
votes
1answer
15 views

How to Customize the category list page

i use evolve theme for my site. here is the screenshot of category list the page display the raw code of the page content which contains a gallery. How can i customize the category display?
0
votes
1answer
302 views

Pagination on category page with custom post types

Wordpress is not new for me but I am really stuck on this piece of code that I can not get to work properly. I register a custom post type News and let the custom post type use the Wordpress ...
1
vote
1answer
390 views

Creating gallery with taxonomy images plugin?

My code uses a taxonomy category image plugin to display images for categories. It also displays subcategories of the main category in the parent category page (category.php). I want to display only ...
0
votes
1answer
3k views

How to create a “latest news” page showing a list of posts from blog category

I am using the Modest theme from elegant themes at http://lilsaintz.co.nz Under the slider on the homepage, there are three content areas that are generated from pages. I would like to make one of ...
0
votes
1answer
366 views

Display Categories or Subcategories with name & description in category.php

I have the following issue for my customer. Can some suggest a possible solution to this issue? This website has Categories & Subcategories Cat1 -Subcat1 -Subcat2 -Subcat3 Cat2 -Subcat1 ...
-3
votes
2answers
27 views

Post list category plugin alphabetical order [closed]

Is there a way we can set these to list the posts in the category by alphabetical order?
9
votes
8answers
25k views

Can I set a default featured image for a category?

I'm setting up a site with a theme that takes advantage of the "featured image" feature of WordPress. Since my end users are not the most tech saavy in the world, I'd like to set things up so that the ...
0
votes
1answer
14 views

Help with SQL query, how to add taxonomie terms with value stored in options?

i need your help in making SQL What i have: custom post type ( company ) taxonomie ( category ) applyed to cpt ( and has ct section select field ) custom taxonomie ( section ) applyed to nothing ...
0
votes
2answers
912 views

Display all categories including sub categories

I am trying to display a list of all categories and sub-categories underneath that category, I have managed to get a list of all categories that are parents but am struggling to detect if it has ...
0
votes
1answer
34 views

Query posts by views on category page

I'm having trouble trying to create a second query on the category.php pages, what I'm trying to achieve is displaying the most popular posts from the current category archive page being viewed. ...
0
votes
0answers
16 views

How to get category id's which are added in main menu?

I called post categories in my main menu using menu section and set them as child menu items now when I click that category menu items I need to make parent menu item active.I know doing this with ...
0
votes
0answers
15 views

post by Category not working after setting 4 post per page

I am trying to show 4 posts on my homepage that is working fine but whenever i click on sidebar post categories it still shows the 4 post from homepage i.e the filter doesnot works and it shows 4 post ...
0
votes
1answer
22 views

Adding a block with query in homepage

i want my 2 post blocks to show by Categories not recent And not by category. <!-- Latest posts --> <div class="home-section"> <div class="container"> <div class="row"> ...
4
votes
2answers
670 views

Category checkbox list tree changes when editing a post

I'm setting up the categories for my website and I have them like so: That's it, I have children of the same name but they are not interchangeable. If that bugs you just think that they have ...
0
votes
1answer
467 views

How we add new categories by wp_insert_post

I am using fornt end form submission now i want to add new category and before adding this category i want to check whether it exist or not, if yes then simple add to that category otherwise add new ...
1
vote
1answer
25 views

get_categories() returns “Uncategorised”

On the front-end of my WPMU site all categories vanished and every post is marked with "Uncategorised". This is however only on the single.php and not on home.php. The same error occurs on ...
1
vote
1answer
15 views

Authors in menu, template list post by author

Can i get a specific author in main menu and when you click on it to see all the post buy this author. Also i need to see all posts ordered by authors too in the menu. In what template should it ...