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

Wordpress Categories: Function using custom SQL to return array of specific category IDs

I'm developing a custom theme which uses categories for positioning, all of which begin with an underscore (e.g. _position1). I have an SQL query as below to get a list of these categories (those ...
1
vote
1answer
1k views

Get_Posts and multiple categories

I have created a custom query in hopes of showing the top posts from some child categories. It appears here: http://www.sitesofconscience.org/activities/whats-new The query has a big flaw: some posts ...
1
vote
1answer
99 views

Events Plugin that works with existing categories?

I have a series of categories on my website that are fixed, i.e. The client has specifically asked that I leave them. Now however, they would like me to add an events plugin so they are able to add ...
1
vote
2answers
875 views

limit a list of tags to one category [closed]

Sorry if this has already been asked, but I am attempting to limit a list of tags to one category, in a couple different spots on my web page. I have this code: <?php $tags = get_tags(); ...
0
votes
1answer
430 views

Use premade array as categories in wp_query?

I have a theme options panel that the user can set which categories they want to use which is then saved as an array $blog_cat[0] etc. They can select as many categories as they want for the array ...
0
votes
1answer
688 views

Show the current post's category, without displaying parent category

I have a series of posts that all reside within a 'Main' parent category. Various posts are assigned to sub-categories. What I need to do is display the direct parent category for the currently ...
1
vote
2answers
860 views

How to Exclude post from a category

This is my home page code here is a feature post section, i want to exclude post by a category 'Collage' in this section ... <?php $count = 1; if (have_posts()) : while (have_posts()) : ...
0
votes
2answers
757 views

Get a list of commas separated categories inside a loop

I want to get the list of categories of a post inside the loop. Normally, I would use the_category(', '); But this does output a link, and I only want the category name. Any ideas?
1
vote
2answers
739 views

how to get the categories for a single post in a hierarchical way

The question is simple. Imagine that I have a post named 'Single Post' which is inside the category 'sub-cat' which is a child of 'parent-cat' which is a child of 'super-cat'. What I need to do is to ...
0
votes
2answers
620 views

Viewing category pages without the word 'category' in URL

When I view a static page its url is like: http://example.com/mybooks/ When I view a category page its url is like: http://example.com/category/books-ebooks/ For SEO, I want some modification so ...
0
votes
1answer
2k views

show only sub categories if available?

Hii i want that when i click on category link that show sub category if available instead of posts list If No Sub category available then show normal posts how to do this that if available sub ...
1
vote
1answer
536 views

Hiding a Categories content on just the Homepage 'Posts'?

Is there a way I can hide a certain categories content from just the homepage Posts section of my Wordpress Site? So, those posts are still posted and live; just not visible nor accessible from the ...
0
votes
3answers
3k views

Using same slug name for a page and category

I know it isn't good practice but I'm considering using same name slugs for some pages and categories on a site that I'm working on. It's a small site and it doesn't seem to affect anything in ...
0
votes
1answer
2k views

wp_list_categories to show list of categories and the description

I have some code in my category.php file to show either pages or categories. Depending if the category has sub categories or not. Is it possible to also show the category description as well? This is ...
1
vote
1answer
247 views

Rewrite a category

How do I rewrite a category url that has a number at the end, to a url with no number using wordpress url rewriter? and... Why is there a number appended to all category url's? ...
0
votes
1answer
232 views

List Categories By Specified First Character

I'm trying to get category list by specified first character. For example if specified character query is "A", then just wanna list categories start with "A". How is it possible?
0
votes
2answers
92 views

single category widget with conditional terms

iam working on my first wp theme and iam new to php and wordpress. i need to create a single category widget that displays at least five posts from specific category. inside this post loop i need a ...
0
votes
1answer
261 views

Duplicate homepage to show posts from 1 category

I'm trying to accomplish the following: I wan't to display all posts from a certain category on a page that has the same layout as the homepage of the actual blog. I found the following online to ...
0
votes
2answers
577 views

How to make the first post in the loop be styled like a “new / featured” post?

I hope i can explain this right , what im trying to do is use the default word press loop to show all my posts etc.. but for the first post I would like it to be styled completely different depending ...
1
vote
2answers
235 views

Include template before a loop

This is my category / archive page i want to include a template before loop but i cant get posts based on category, it showing latest post only on every page. when i removed this line before the ...
0
votes
1answer
188 views

Best way to categorize/populate a magazine style layout

I'm taking the reigns of an existing Wordpress site that has a magazine-style home page with sections for featured articles, upcoming events, different categories of articles, etc. Currently, these ...
2
votes
1answer
828 views

Display Next/Prev when looping Custom post-types archive?

I'm trying to display the Next/Prev navigation buttons on my page which displays all of the pages within my 'events' custom post-type. The issue is that the buttons are not even displaying, but I have ...
1
vote
1answer
367 views

Query posts from category based on a filter most favorited

I have one question. I need to query posts from category based on the filter most favorited ( http://pastie.org/2751114 ) which is placed in custom_sort.php to my index.php page This is how the posts ...
1
vote
1answer
254 views

exclude category from WordPress Form function

I have this function and I need to somehow exclude a category number 14 from my submission form. Is there any way to do it inside this function? function retrieve_cat_data($byid = false){ ...
1
vote
2answers
1k views

Category template to show different categories based on parent

Ok so i've got categories like setup like this. Products Category A Sub Category 1 Sub Category 2 Category B Category C What i need is to have the Products category page ...
0
votes
1answer
139 views

the category city made as a subdomain

i'm looking for a solution wherein the category city will be made as a subdomain. For example, when a user search for a certain thing in the main domain and under a certain city, the user will be ...
1
vote
3answers
272 views

query in category.php repeats itself

I'm need some help on my query. I'm building up a category page where on top a post need to show where custom field key 'uitleg' has value 'ja'. Per category there is only one post with that value. ...
0
votes
1answer
126 views

Array: What is this value based on?

I need to do an import of an array of checkboxes, but there is a value that I don't how it is determined. The array is based on a user meta option that I created that shows a list of category ...
0
votes
1answer
1k views

how to edit wp category widget

how to edit wp category widget, so it would not show one of specified category? For example, it shows all categories in list, and I need to remove category Books, from it, how can I do it? Best ...
0
votes
1answer
404 views

Mass Update User Profile Checkbox Options

I created a checkbox option for the user_meta (user profile). They are checkboxes assigning users to categories. The problem is that I need to do a mass update for all of my users 1500+ and going ...
1
vote
2answers
2k views

wp_list_categories: get latest featured_image of category

I was thinking about a nicer way to display the categories in my sidebar. Instead of a plain list style, I'd like to have images / thumbnails show up as well. Currently I'm using the following: ...
1
vote
1answer
2k views

How to get child categories of a given Post

how do I get names of child categories of an arbitrary Post? For example i got category slug - 'motorbikes' and I got subcategories for it. So I need to get each posts subcategory name thats inside ...
0
votes
1answer
129 views

How to exclude a particular category from the category list

I'm trying to edit a wordpress theme. The following is the section of code where the list of categories is retrieved and displayed in a drop-down menu. <p> <label for="entrycat">* ...
0
votes
1answer
384 views

Form Value of drop down category + Translation of 'show option none'

I am building a form where a user can submit an article from the front end.. So far so good... To this form i am doing some submission check using javascript.. When i get to check if a category is ...
2
votes
1answer
562 views

Automated adding of one tag to all the posts in a category

I'm currently redesigning a site that has 700+ posts, divided into about 150 different categories. Some categories have 2 posts in them, other categories have 70. Now for every category, I want to ...
0
votes
1answer
1k views

Displaying taxonomies as category links within sidebar and creating pages for these

I've created a custom post type called 'work' for a portfolio section on the site I am working on at the moment. I have also registered the taxonomy 'workcategories' so that I can assign different ...
1
vote
3answers
2k views

Category archive by year with permalink support /category/YYYY

I am currently looking at creating a new type of site archive within WordPress that allows users to filter by category AND by year rather than the default category OR year. I am hoping to build a ...
0
votes
1answer
1k views

Using get_terms() to list terms from one custom taxonomy AND from one specific built-in category

I'm trying to get the terms of a taxonomy (kind) and the number of content they have but only for a specific category (get_parent_page_slug() = city name = category slug). This is what I have so far: ...
0
votes
1answer
336 views

Image menu showing categories in page

I'm trying to display different images in a page that links to categories. Currently i have a page that shows the categories and the pages for the categories but it needs a slight change. I need to ...
1
vote
1answer
1k views

how to query posts and auto assign category if post title has keyword

how can i query posts by current date and auto assign category based on keyword found on post title, something like if title contains 'oranges' auto assign it 'oranges' category maybe something like ...
0
votes
2answers
263 views

Remove the current item from a menu

I have a menu. It has two items: the first is a link ("Index", www.domain.com) the second one is a link to a category page I have the requirement to remove the first link when I'm on the index ...
0
votes
1answer
42 views

What is the best way to add an advanced / intermediate / beginner tag to a post

Suppose you have a WordPress blog that you are using to produce tutorials, and that you would like to split up your posts according to skill level (i.e. beginner, intermediate, advanced) depending on ...
0
votes
1answer
25 views

Is it possible to know which category page the post was linked from?

For example, I have a post that's filed under category 1 and category 2. When someone clicks on it from category 2, I want to know the slug for category 2. If it links from the category 1 page, I want ...
0
votes
1answer
146 views

Header Link function not working. Problem with bloginfo()

I'm writing a function to make all of my header images link to their respective home pages. I wrote this function: function get_category_location(){ $header = get_category_header(); ...
0
votes
1answer
93 views

Category sticky latest

I've been trying to write a script that shows the latest (single) post (in a particular category), however, if the user has chosen to have a post be sticky then the sticky post shows. When the sticky ...
0
votes
2answers
1k views

Select Category as Page Parent

I've got a custom post type called Products and when i go to select page parent i only get other pages of the same post type. Is it possible to select a category as a parent for the page? The reason ...
0
votes
1answer
275 views

Wordpress category filters as subcategories

I want to develop a course database available in certain countries. Name of country will be set as top most category name. Then it will be sub-categorized alphabetically, subject, degree level and ...
0
votes
1answer
693 views

wp_insert_post_data filter to set category

I am trying to set additional "default" categories. I figured by hooking into the wp_insert_post_data filter, I could use $postarr to set the category. It doesn't seem to be working? Can someone offer ...
0
votes
1answer
483 views

Category Archives: Show posts categorized in parent category only

When I view a category page in 2010 theme, it shown posts categorized in: the category visible in url child categories of 1. I want to restrict the results to 1. only. Please help.
-1
votes
2answers
910 views

Auto add pages to category menu

I have created a custom post type called Products, on the product pages i have a menu in the left sidebar. This menu is made up of categories for the products. Is it possible to have my products ...