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

Child_of not displaying all children posts.. via get_posts

I have put together this loop to display all children posts of the desired cat, but i am not getting any of the posts from one of the children cats.. Not sure if i am using the best method to ...
0
votes
1answer
903 views

Separate categories parents, childs and grandchilds in dropdowns

I'm new to wordpress and PHP Im trying to build a site that the user can select a destination so I did this by creating categories (country) subcategories (state) sub sub category (city) and I want to ...
0
votes
1answer
70 views

Return selected categories only in custom page meta box?

I have a custom meta box added to the Page edit screen. I also have categories turned on for Pages. I'm using get_categories($post->ID); to retrieve a list of categories, as you would in a page ...
0
votes
2answers
54 views

Unassign uncategorized from post with 2 or more categories

So I have a bunch of posts assigned categories like: a main one and uncategorized one (which I forgot to unselect). The problem is that i'm using %category%/%postname% as permalink which will use the ...
1
vote
1answer
560 views

Custom order categories in admin dashboard

everyone, is there way to order categories in add/edit post in admin dashboard. The problem is my order must be custom, not by Name or ID. For example: Rumors (id 5) News (id 1) Features (id 7) etc. ...
0
votes
1answer
302 views

Bringing Ajax Loading Feature on Category Pages

Following this post -- Showing all the posts in one page? -- I was able to create a tag and category page with all posts. Example: http://blogote.com/apple/ The link contains over 200+ posts. Is ...
1
vote
1answer
2k views

How to call in Custom Post-Type Categories?

I have our portfolio page here: http://www.slarc.com/portfolio-view/central-control-building-east-texas/ The orange links below the project title are manually inserted on the page content. Is there a ...
2
votes
1answer
1k views

How to remove the parentheses from the category widget

In the default category widget, when you check the "show posts count" checkbox, the number of posts appear surrounded by parentheses, how to remove them.
0
votes
2answers
335 views

strip last comma from get_the_category

foreach((get_the_category()) as $category) { echo $category->cat_name . ', '; } So I'm echoing it like this because I don't want the categories to appear as hyperlinks, I just want the cat ...
0
votes
2answers
96 views

Showing all the posts in one page?

There are over 200 posts tagged with the keyword "Apple." Each tag page -- example.com/tag/apple/page/2/ -- shows 10 posts. So there are 20 tag pages. Is it possible to show all these 200 post (...
-1
votes
1answer
57 views

How to display my categories in a list (to a post, not the sidebar)?

i want to display my categories to a post like a list. i have this (parent- and child-) categories: - Sports - Football - Basketball - Toys - Dolls - Lego - Books for example one ...
1
vote
2answers
367 views

Edit the markup of categories list

I want to list x number of categories. I'm using wp_list_categories function, it generates the following markup <li class="cat-item cat-item-1"><a href="#">Uncategorized</a></li&...
1
vote
1answer
348 views

Full text articles in the rss feed (i.e. without the more tag)

I can't seem to remove the "Continue reading..." link in my rss feed. The feed is located here: http://gforge.se/category/r/feed/ I use the <!--more--> tag manually and I've checked that the ...
-1
votes
1answer
65 views

Custom permalinks structure

I would like to have this structure: www.mysite.com/2013 (must show all posts of 2013) www.mysite.com/my-category/2013 (must show all posts of 2013 and of category "my-category") www.mysite....
0
votes
1answer
323 views

Custom post type category permalinks and archive pages

I know this question was brought up before, but I can't seem to get things working using any of the proposed solutions. This is how I have my custom post types and categories setup: Custom Post Type: ...
0
votes
1answer
177 views

Advanced permalinks structure

I would like to get this: mysite.com/category/tag/ example: mysite.com/news/sports/ News is a CATEGORY and sports is a TAG How can I do it? Thanks.
1
vote
2answers
4k views

Show category images on single product page and product overview page

I am running a woocommerce shop and I have products which are in multiple categories. I would like to show the category images on the single product pages. And also on the product overview page. I ...
1
vote
1answer
1k views

Using wp_list_categories like the the_category (showing just current categories of a post)

fromi'm using wp_list_categories to get an unordered list with headlines (on single.php inside the post-loop): <ul><?php wp_list_categories('title_li=0');?></ul> the thing is: i ...
-1
votes
1answer
21 views

Are custom posts included when getting a categories' posts?

Would WP_Query('cat=1') display custom post types, or is that something that I have to specify? I have a custom post type, am assigning it to a category, and would like for it to be displayed when ...
0
votes
1answer
87 views

Display deepest post category, when post have multiple categories

I want to display the direct category ancestor of a given post. An illustrative example: These are the categories I have: Cat1 Cat2 Cat2.1 Cat2.1.1 Cat2.1.2 Cat2.2 Cat2.2.1 Cat2.2....
0
votes
2answers
46 views

How can I tell what category I'm in— in the header?

How can I identify what category the current page is showing in the <head>? Here's the code I have now: <?php if ( is_home() ) { ?> <!-- set up for home page ad --> <?php } ...
0
votes
2answers
2k views

SQL query to get posts from multiple categories but not in a category

I need to get the last posts' ID and the post_tile within categories 1 and 2, and exclude those within category 3. It must be SQL, because if I use WP_Query it retrieves too much info and I only need ...
0
votes
2answers
2k views

Pagination on category.php and tag.php not working

i'm using a query-loop on my template pages like this: <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $wp_query = new WP_Query(); $wp_query->query('posts_per_page='....
0
votes
1answer
1k views

Display Related Posts by Category in Random

I use one of smthemes and there is this code in theme to show related post. it shows the last created related posts, but I want to show related post by random, How can I do that? global $SMTheme; if (...
0
votes
1answer
192 views

WP_Query: Fetch posts that are in (category1 and not in category2), OR posts that are not in cagegory1

I have two categories that will always stay the same. They are called "Events" and "Show on frontpage". The latter is a child category to Events. What i want to do is, when fetching posts (using ...
1
vote
4answers
750 views

Different background-image by category

I am trying to put different body background-image for each category. body { background-color: #000; background-image: url(img/bg.png); background-repeat: no-repeat; background-position: center ...
1
vote
1answer
18k views

List all custom post type posts from a given category?

I have a custom post type myposttype and it's taxonomy is called myposttype_categories. myposttype_categories have multiple terms inside, such as foo and bar. The tricky question is - how do I list ...
1
vote
0answers
590 views

Refine/Filter the Search Results by Category

I am currently creating the process of a function which allows one to refine results, Namely by category. Similar to themeforest.net refine the search results. When i gave as search term "Hello" and ...
0
votes
1answer
2k views

Allow user to set custom order to a list of custom taxonomies?

I have a custom category checkbox on each individual bio attorney page that shows what practice areas these attorneys are involved in. Currently I have them sorting alphabetically. I am wondering if ...
0
votes
1answer
149 views

Is it possible to have different header style blog titles in different categories?

For my category titled 'mindset' I would like to use the following style on my post header: background: none repeat scroll 0 0 grey; border-bottom: 5px solid #83990A; However for my 'news' category ...
0
votes
1answer
3k views

Paginate WordPress Category Pages

I am using the following query on my category.php template: <?php $paged = (get_query_var("paged")) ? get_query_var("paged") : 1; query_posts("posts_per_page=2&paged=".$paged); ?> ...
0
votes
2answers
389 views

Can each user have only access to a private area (his own categories and posts)?

I am working on a wordpress site and one of the key features i want to have is the fact that each user, once registered should be able to : create his own categories (that will be visible only by ...
0
votes
1answer
28 views

inserting a category into post

Can you tell me how can I insert a whole category into the specific post. for example: have 4 posts in a category "zanimljivosti" and I want to put that category to be shown inside another post not as ...
0
votes
1answer
2k views

Setting selected term_id with wp_dropdown_categories?

I'm using this code to get the term_id of a custom taxonomy. The drop down does list the terms of the taxonomy Type. When I print the $terms variable I see the term ID of the post i'm editing on the ...
0
votes
1answer
316 views

Filter categories/tags to display in multiple metaboxes for selection in back-end

My site uses a lot of categories and tags for author selection in the back-end. To make it more user friendly for authors I need to arrange the categories and post tags in numerous metaboxes for ...
-1
votes
1answer
1k views

How to add a post without assigning to a category?

Can any one please explain how to add a post in WordPress without assigning it to any category. Actually I want to display some news or some quick information. So, it does not come to any category ...
0
votes
1answer
236 views

Get a list of post titles and links from yootheme master theme

Hi I am using the yootheme master collection and I wish to get a list of 10 permalinks from this custom post catagory but at the moment I can only get 1 to show. How do I do this properly? Cheers &...
0
votes
1answer
66 views

Older entries link within a category page

I have set up a category called 'blog' and have all of my posts displaying from this category. I have selected to display 4 posts / page therefore there is a link at the bottom that says older entries....
0
votes
1answer
100 views

Problem with single posts not showing correct category sidebar

I'm looking for something very specific: I'm using a plugin called "Category and Tag Specific Widgets" to create category-specific html in the sidebar of each category. This only works if I click on ...
0
votes
1answer
106 views

single.php fires more than once after clicking on any post to view with different post id each time

I am now experiencing a wired problem with my wordpress installation. I was surprised when I saw post view counter of another post also increased including the the post on which I clicked to try and ...
0
votes
1answer
3k views

How do I show child categories if in a parent category, and posts if in a child?

I was hoping to do all of this within the category.php template, with help from the functions.php if needed. If my setup is: Parent 1 --Child 1 --Child 2 Parent 2 --Child 3 --Child 4 Parent 3 --...
1
vote
1answer
1k views

Add custom field to all posts in specific category

I want to bulk add a custom field (category) with value (photography) to all posts in a specific category (photography, with Category ID 5). I have used the code below to bulk add a custom field to ...
0
votes
1answer
2k views

get_category_parents for custom post type taxonomy

I know that we can get the parent category in normal post type by: get_category_parents($cat, TRUE, ' &raquo; '); But how can we get the parent category in custom post type? I use this for: ...
0
votes
1answer
94 views

Display the first post's comments of category in comments.php template

I want the display the comments from first post of the category only. Example; Category - Post 1 (2 comments) - Post 2 (1 comments) - Post 3 (5 comments) If I am reading the Post 2 or Post 3, I ...
1
vote
2answers
7k views

How to get the number of posts in a selected category?

I would like to show the number of posts on the category page. How is it possible? I tried to find a solution but no luck.. Thank you!
0
votes
2answers
118 views

How to insert category list into post creation page, and retrieve chosen categories?

I would like to display the full list of categories on the Page creation page, so that the user can pick using checkboxes which category posts should appear on that page. I then need to retrieve ...
1
vote
0answers
104 views

How to make the link to the category for a post go to corresponding page number in archive?

For instance, I am at http://url.com/single-post and in the post there is a link to the category that navigates to http://url.com/category/page/3/ which is the corresponding archive page that contains ...
4
votes
2answers
226 views

Rearranging posts based on categories

Hey everyone on Stackexchange! I'm trying to find a way to prioritize posts based on a category in a loop, which is sorted by dates. All posts are grouped under their respective dates. The date ...
0
votes
2answers
268 views

Multiple Categories under one URL, where 'Front Page' is used already

I couldn't find an answer relating to this, maybe I just didn't come across it yet. So the setup of the site I am working on at the moment: The Front Page is not set, is default. I can't change this ...
1
vote
2answers
2k views

Including categories in search results

I am trying to include categories in search results. I've been searching for hours now with no solution. By "including categories" I don't mean search in a certain category, I mean let's say I have a ...