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
1answer
150 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
97 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
322 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
748 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
504 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
1k 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
597 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
333 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
344 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
813 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
836 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
187 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
988 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
96 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 ...
0
votes
1answer
950 views

Query pages by category

Trying to query pages based on the category they are associated with. I am passing in the cat_ID, but it doesn't seem to be working. Always returns a single post with the title "Hello World" while ...
1
vote
1answer
3k views

How to display related posts from same category?

Is it possible to display related posts from same category as the current post?
0
votes
1answer
322 views

How do I get category and page ID's?

I want to insert the category or page ID of the current page into my HTML so that I can use CSS to style each page based on what it is. For example, if had a category called "News" and it's ID was 5, ...
2
votes
1answer
791 views

Set a category for a page

My current theme has a portfolio section where you can have an array items based on what category they are in. My problem is that I have several pages that I want to be in the portfolio section but ...
1
vote
1answer
372 views

Ignoring a category in WP_Query still shows the links in next_post_link()?

So I have a WP_Query like so: $homepage = new WP_Query( 'posts_per_page=1&cat=-5' ); and in my while loop, I have a call to next_post_link() and previous_post_link(), which are both showing ...
0
votes
1answer
399 views

Categories show 404 error on multisite installation

I have a wp multisite installation with multiple blogs that are totally separated websites. I use a plugin for domain mapping. Right now I am configuring everything and I wanted to remove the /blog ...
0
votes
1answer
80 views

Creating links to a page displaying posts from a particular category

Ok so at the moment I have a page which displays a list of categories within my Taxonomy (event-themes), here's the code: <div id="themeSearch"> <h1 class="mainSectionHeader">By ...
1
vote
1answer
391 views

get_post_meta not working on category.php

I'm referencing an attached image in my header.php page which is displayed as a full screen background on my posts: global $wp_query; $page_id = $wp_query->get_queried_object_id(); ...
0
votes
2answers
1k views

Display most recent post in category instead of archive?

I've successfully redirected my blog page to my most recent post - i.e. so when you click the 'blog' link in the nav it goes to the most recent post page and you can click next/prev buttons to ...
2
votes
1answer
489 views

Category and tag with same name

IN my blog, if I have a category and tag with the same name, it will make the tag have a number in the URI. Example: category/php tags/php-2 Is there anyway to make my tags with the same name as ...
0
votes
1answer
260 views

Determine the category that an archive-page is for

On a category archive page, how do I determine what category the archive page is for? I need either the id or the slug of the category. I am not looking for get_the_category(). This will give me all ...
0
votes
1answer
58 views

Need help with major category and permalink re-organization

I would like to re-organize my categories and the permalink structure. I want to rename and merge categories, make previous categories sub-categories and change the permalink structure from ...
0
votes
2answers
3k views

Show posts from category specified using a custom field

I have a post that shows the titles and excerpts from a specific category underneath the content. Currently this is coded into a specific template like this: <?php ...
0
votes
1answer
260 views

Jigoshop - only displaying 10 products

Just wondering if anyone knows why Jigoshop will only display 10 products that I have in each category. Thank you.
0
votes
1answer
86 views

In a url where Category Id is wrong It is showing wrong it is going to the page not found page

In my one project I am using old 2.8.4 version of word press. So If In url wrong category name is there then it is going to the page 404 page not found. But I want that still it should go to the ...
2
votes
2answers
7k views

How to change permalink structure for custom post type and it's taxonomies?

This is a repost of an earlier question I had, but I like to go into more details now to be able to fully solve this. So again, with (normal) posts changing the permalink is as easy as going to ...
1
vote
1answer
81 views

How can you change the permalink for pages?

When I set my permalink to '/%category%/%postname%.html' this will work for all the posts, but the pages still don't have a .html at the end. Is there a way I can fix that?
0
votes
2answers
392 views

Display latest post from Wordpress Featured Category that is also in X,Y,or Z categories

I want to display the latest post from a "featured" category (id=1) that may also be in either X category, Y category, or Z category (id=2,3,4 respectively). Note, there are other posts in categories ...
3
votes
1answer
880 views

How can you make permalink work for custom post type and taxonomy?

I have spent days now trying to figure this out, StackOverflow is my last resort. All I want is the following: ...
0
votes
1answer
160 views

How can I offer different RSS-Feeds by category?

I want to write a WordPress-Blog about some quite different topics. I will write most of it in English, but some topics are only interesting for Germans. The posts in the German-category will be in ...
4
votes
2answers
681 views

Changing Top Level Items into Radio Buttons in the Categories Meta Box?

I know it is possible to change the WordPress category list to radio buttons in the admin panel for posts, but I would like to make the just the Parents radio buttons and the sub categories or ...
2
votes
1answer
1k views

Include custom post types in categories widget

So I got a fairly simple setup, one CPT with the default category and post_tag as taxonomies. Say I have 1 post and 1 CPT entry assigned to the same category. I need this to be reflected inside the ...
1
vote
1answer
155 views

Page display certain Category Posts

I want to do almost exactly this: http://codex.wordpress.org/Pages#A_Page_of_Posts But Im confused by the last line: Save this to pageofposts.php and then assign PageofPosts as the Template ...
0
votes
1answer
3k views

category.php not showing custom post types

in my custom post type i've set 'taxonomies' => array('category'). However, within my category.php page, none of the custom post types are being displayed, only posts. How do i make ALL post types ...
0
votes
2answers
157 views

Include home page template in specific category template

I have a specific category who's page I'd like to look like the home page of my site, with all the nice sliding featured stories, etc. If I create a file category-slug.php, can I do some sort of ...
0
votes
1answer
438 views

Recent post by custom select query

Hi this is the code which displays recent post from all category. but I want to dispaly post from any single category. I dont want to change the code please help. function mdv_recent_posts( $no_posts ...
2
votes
2answers
1k views

Query custom post types

I'm having some trouble feeding a custom post-type I created (events) on my homepage. I am trying to allow this particular post-type to display under the query which looks for category 8 (Featured). ...
3
votes
2answers
4k views

Display list of Sub-Categories and the posts they contain, within one main Category

I've found tons of code and plugins to do various things; from show posts for specific cats, subcats of a cat, etc.. BUT, I cannot for the life of me find, nor do I know the WP API well enough to do ...
0
votes
1answer
177 views

Highlighting Current Category in the Archive and Feeds page

I needed a category listing in my posts page and I want the current category to be highlighted. I enabled the 'All' category, so consequently, I want the 'All' also to be highlighted when I'm viewing ...
0
votes
1answer
547 views

Adding Custom User Profile data based upon Categories

Based upon the code found here: How To Add Custom Form Fields To The User Profile Page? How Could I alter this so that users could check one of several boxes based upon categories I have setup in the ...
0
votes
1answer
295 views

Categories Listing and Highlighting current category item

My query is on Wordpress and related to categories. I have a set of categories for my posts: All, Cat-a, Cat-b and Cat-c. a. When I click on the link to my posts page, I want to show an archive for ...
0
votes
1answer
269 views

How to get sub-categories to display same look as there parents

so I am trying to use the category.php to do all this, and basically I have 3 main/parent categories, Dream it. Build it. Get The Hell Out. and will have many sub-categories under them. What im ...
0
votes
1answer
4k views

exclude category from get_posts?

getting posts by cat with get_posts but need to exclude another cat called london or id 10. is this possible? best, Dc. // array(7,-10) $laargsM = array('category' => 7, ...
0
votes
1answer
838 views

Equivalent to in_category() for subcategories

Wordpress provides conditionals like is_home() and is_category(). I'd like a function to tell me if the current context belongs to a category that is a subcategory (so, not a parent). I tried this, ...