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

How to retrieve posts from parent category, splitting them per children when displayed?

I have a Wordpress database with three categories: ID 3 : Europe ID 4 : France (child of 3) ID 5 : Paris (child of 4) I now need to display all posts under their respective category, like this: ...
0
votes
0answers
19 views

How to count the number of monthly archive?

<?PHP $num_cats = wp_count_terms('category'); echo $num_cats. '<br/>'; ?> I get the number of total categories from the above code. How can I get the total categories based monthly ...
0
votes
1answer
34 views

Anchor tag generates blank href attribute using echo esc_url( )

Following is my categories page. It's listing the all categories in the page. But when <a href> gets blank value here. see the attached screen shot. Why href is blank here li><a ...
0
votes
2answers
46 views

How to list all categories in three divs dynamically based on the quatity of categories?

I have 15 categories. I list this using <div class="category_list"><ul><li><?php wp_list_categories();?></li></ul></div> Now it's listing all 15 categories ...
0
votes
1answer
15 views

Change RSS format for specific categories

Is there way to have, in a single RSS feed, different formats for different categories? For example, if a post is a very long and technical one I would like to have only an excerpt (or a custom text ...
0
votes
0answers
21 views

Custom Search results page based on search

I am trying to find a way to create custom search results pages based on what the user searched for. I don't think it's possible with a global search since multiple posts may be pulled in but I wanted ...
0
votes
1answer
17 views

How to remove the category from post slug

I want to remove the category from post slug, for example a post slug like "http://my_site.com/uncategorized/hello-world/" would become "http://my_site.com/hello-world/". My search only gives ...
0
votes
2answers
20 views

post_categories array using variable

When using wp_insert_post can I do something like: $categories = '1,2,3,4,5' ...and then... 'post_category' => array($categories)
0
votes
1answer
28 views

Get categories and descriptions from custom post type

I'm trying to pull all of the categories associated with a custom post type within a loop, but I'm not sure how to get it so automatically pulls all of the categories automatically from the associated ...
0
votes
1answer
22 views

Exclude parent category when getting category posts by slug

I have the following category layout: Resources -- Documents I want to list the posts in the documents category, and have the following code: $args = array( 'posts_per_page' => ...
0
votes
1answer
37 views

Pagination doesn't work on multiple categories

I have the following problem. In my custom menu (wp_nav_menu) I added a category. This category uses the template category.php. Now I have multiple categories that are shown on the page. My problem is ...
0
votes
1answer
30 views

Categories in media library

I want to add a rather big sound collection to the media library. The problem is that i can't add category to the bunch of files while uploading them... I even can't add it to one uploading file.... ...
0
votes
1answer
21 views

Retrieve Product category 'NAME' by product category ID - WooCommerce?

Can I retrieve woocommerce product category name by ID? Not thumbnail, not the URL, not the Sub-categories, just raw Category name.
0
votes
0answers
28 views

Include categories in search results?

I am using the standard WordPress search and search.php file to display results. I want to query both posts and categories at the same time and return results in order of relevance. For example, I ...
0
votes
2answers
71 views

Multiple category posts on one page

Is it possible to have a section on a page that shows 2 excerpts from 4 different category posts, including their featured images? All I have so far is something like: <?php ...
0
votes
2answers
124 views

Display posts from the same category using next/previous post link

I am using this code, but once I click on the next post/previous post link, I am redirected to the next post/ previous post of the different category previous_post_link('%link', 'Prev post in ...
0
votes
1answer
70 views

Style sub categories differently from its parent category

I am new to wordpress and to this website. I've been searching for a solution to my problem. I found this code that solved my problem, but unfortunately I can't style the sub categories differently ...
0
votes
0answers
11 views

How to make my search result searched by post title and content and also categories only?

I would like to ask a question. Is there any solution to make my wp search result searched only by post title and categories? If this is a duplicate question, please refer me to the page where i can ...
0
votes
2answers
48 views

Categories and Tags not working!

I'm at the final debugging stages for a major web design project I've been working on for the last 6 months. The site itself is based on the has become a bit of a behemoth (merging 4 existing sites ...
0
votes
0answers
25 views

Newly created category does not show category

I'm creating New Posts in WordPress when i try to add New category and click on Add Category its does not show created category so default category used as category Its create create category but not ...
0
votes
0answers
18 views

Plugin for choosing categories in steps in admin, parent first then display childs

Situation: I'm setting up a CPT (multiple doing similar thing) where there will be a custom taxonomy only for that cpt... and it will have two levels; parent/child. So like this: CPT = Vehicles -- ...
0
votes
2answers
61 views

Category Alphabet List Broken

I need help in making this work in the latest version of wordpress. On Version 3.6.1 and down works well when I tested but when i decide to update WordPress well it breaks it. Ex: Version 3.6.1 looks ...
0
votes
1answer
26 views

Categories and tags for custom post types

I'm having a hard time explaining this, so bare with me. Category and tag links for my custom post type aren't working as I expected them to. Instead of getting ...
0
votes
1answer
22 views

Show category post with excerpt text

I want to show a post with post title and post content of 400/550 words with a read more link in my category page. I have already done this, but problem is, my post doesn't display the excerpt as it ...
0
votes
2answers
64 views

Alphabetize all but one category

I have my categories set to sort alphabetically: <?php if (is_category()) { $posts = query_posts($query_string . '&orderby=title&order=asc'); } ?> I want to exclude one ...
1
vote
0answers
34 views

Use category base slug in posts' permalink

The Goal I would like to format my permalinks as follows: for posts: somePrefix/%category%/%postname% for categories: somePrefix/%category% Where somePrefix is the same in both cases. I know ...
0
votes
2answers
45 views

Display a list of subcategories a post belongs to

I have this code: <?php // List subcategories of category '4' $subcategories = get_categories('&child_of=4'); foreach ($subcategories as $subcategory) { echo sprintf(' <a ...
0
votes
1answer
21 views

Post of a specific category - not to be seen in paging previous/next post

i have a specific post category, eg. id=x which is not shown in category list. These posts are password protected and should be visible only to those provided with the link. However current version ...
0
votes
1answer
36 views

List Categories of the Parent Category of the Current Category

So, let's say I have this structure of categories I. Super Cat A i. mini cat a ii. mini cat b iii. mini cat c I. Super Cat B i. mini cat a ii. mini cat b iii. mini cat c This code: <?php ...
0
votes
1answer
40 views

Wordpress Shop and restricting products and categories for some users/groups

I have this webshop that I've built in WordPress, no WooCommerce, no Wp-Commerce or anything like that, but from scratch. The users visiting the site will have to be logged in to view products and ...
0
votes
0answers
30 views

Calling Custom Fields within a category loop?

What I'm trying to do is to display a specific category post listing within a page template, showing only each post's custom fields, which must be pulled and included within the following html. What I ...
0
votes
0answers
11 views

WP_Query using OR arguments e.g. posts in Category OR has Tag [duplicate]

I'm wondering if it's possible to use WP_Query() to filter posts by multiple OR arguments. I'd like to retrieve all posts that are in a category OR have a tag. If this is not possible using ...
0
votes
1answer
53 views

Static pages not working

I have been successfully using a static front page on a theme I am building (locally so can't share URL) without any issues. Suddenly it has stopped working and I can't work out why. I now see a blank ...
0
votes
1answer
17 views

I have a custom post type that I want to query a dynamic category name from a custom meta field

So this is my Query. where category 17 is, I want this to by dynamic based on the page you're on. So I have a custom meta field called city_name but when I just put that in there. it obviously doesnt ...
0
votes
1answer
42 views

browse by category and tags?

I have a custom post type called freebies. This custom post type has its own taxonomy with the "normal" categories from wordpress, (which are child-categories from freebies) and own custom taxonomy ...
0
votes
1answer
40 views

Theme modification for custom category menus

My goal is to have a custom menu in the header based on the category of the post being viewed. I'm setting up a single wordpress site that will contain about a half dozen different categories. ...
0
votes
0answers
26 views

Pass list of categories to JS

I'm trying to pass a list of all the categories to my MixItUp settings in my JS file to show all the items on load. But I can't seem to generate a list of the categories and reliably send them over to ...
0
votes
0answers
18 views

How can I allow people to 'subscribe' to categories?

I would like for people to be able to subscribe to categories and tags, somewhat like Pinterest or Quora where you have to follow a minimum number of categories. After doing a plugin search, I can't ...
0
votes
1answer
25 views

How to show main category related to that post

On my main page I have a few post from two categories, but I only want it to display only one Here is my code <?php /* translators: used between list items, there is a space after the comma */ ...
0
votes
1answer
25 views

Show One Category on Post

How do i go about making the code only show one category? <?php $categories = get_the_category(); foreach($categories as $key => $category) { $url = ...
0
votes
1answer
25 views

Showpost and last

I need your help. I would like to bring up the last (number) from my template classified ads. Here's the code: <?php $the_query = new WP_Query( array( 'showposts' => 10, ...
0
votes
0answers
19 views

Show recent ads from certain categories

I ask you to help experts, the problem is: I'm using a template classified, are shown on the home for the latest upload, but I would like to show ads in different categories. Let me explain, I ...
0
votes
1answer
22 views

get categories the post was in and just been removed from

I have a function hooked to the save_post hook. this function is mostly concerned with the categories that the post is in. My function does the following: function post_save_hook($post_id){ ...
0
votes
1answer
26 views

Display unused categories in dropdown

I have created a front end post with a form and I would like to have several categories for the user to choose between. But the problem is that the dropdown category only show those categories that ...
0
votes
0answers
24 views

How to let users sort list of categories?

In my homepage, I have listed all of categories, under which their posts, are listed like this: Category 1 post 1 post 2 post 3 Category 2 post 4 post 5 post 6 ...
0
votes
1answer
36 views

WP url to get rss with full text of post

I need to curl a wordpress site and fetch in rss format: 1. all categories 2. for a category, all posts. They need to contain title and full body (not description). given my site is somewpsite.com, ...
0
votes
2answers
34 views

Custom css per category and per single post belong in each category

the condition is: there's a wordpress site that has 8 categories, and each category has sub-category, and each subcategory has several posts (and still will be updating/counting) : Category A - 8 ...
0
votes
1answer
35 views

Category menu that filters out empty categories

I'm trying to build a menu which can be administered from the menu editor, but gets filtered before being output. More specifically the menu contains Woocommerce product categories, organised into a ...
-1
votes
1answer
42 views

How would I go about adding custom header images per category?

I am using WooCommerce along with the Neighborhood theme. I am trying to figure it out but I need some guidance if anyone can offer it.
0
votes
0answers
24 views

Show posts with specific tag in a category page

I have a website which belongs to a magazine. I want do something like this: I want to create a link that refers to /category-slug/tag-slug. in that link, I want to show all posts with "specific tag" ...