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
654 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
539 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
3k 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
235 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
267 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
600 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
236 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
194 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
840 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
371 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
255 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
282 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
127 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
2k 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
410 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
398 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
578 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
341 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
282 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
44 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
149 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
94 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
287 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
708 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
488 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
942 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 ...
1
vote
2answers
584 views

How do I call posts with a certain tag?

I use this to call posts: <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $per_page = get_option('to_count_archives'); ...
2
votes
0answers
317 views

How to set post expiration date and time and move the page to archive after expiration [closed]

My requirement is to move the certain posts from home page category after specified date and time. I have two category News and Events. Both have so many posts and i dont want to show all the posts ...
0
votes
2answers
6k views

Sort posts alphabetically by category/custom taxonomy, insert divider between different types

first of all I'd like to thank you for all the great work you're doing. I've found a lot of useful infos and tricks taking a look around in Wordpress Answers. Well, I'm here to ask so that's my ...
0
votes
3answers
329 views

Echo class depending on Parent category

What im trying to do is echo a class depending on witch of 3 Main "Parent" Categories the content was posted in , here is my code so far <article class="post <?php if ( in_category( ...
1
vote
2answers
768 views

Excluding a category from wp_query breaks recent post widget

Good Afternoon, In my theme I have two separate pages for blogs. The main blog page, "news.php", holds our standard news, thoughts, events type of posts. The second blog, "questions.php", holds ...
0
votes
1answer
817 views

How can I exclude a category from the main loop with the category name & not ID?

I'm having a dozy of a time on this one and have finally had to break down and ask my first question. Usually I can find an answer on here, but this time I need some help. I'm trying to exclude a ...
1
vote
2answers
178 views

How do I get rid of “category” from my URL structure?

By default WP links to a category like this, mydomain.com/category/travel. Having the word "category" appear in the URL seems unnecessary. I'd prefer have the link read mydomain.com/travel. How can ...
0
votes
1answer
955 views

get all categories' latest post in one query

My WP blog has 12 categories, 80 subcategories. I need to fetch the latest post from each of those 12 categories. I know how to do it in 12 queries using 12 get_posts() but is there a way to get ...
1
vote
1answer
92 views

Permalinks - Different structures for different categories?

Currently I use /%category%/%postname%/ as my permalink structure. However, I would like to have a different structure for different categories. This is because I have a "News" blog that I would like ...