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

Is there a way to only show Custom Meta Data on single posts from certain catagories

I am trying to use this code to display something in the 'single.php' file on the theme when the post is of a certian catagory. $cat = get_query_var('cat'); if ($cat == '4') { echo "post"; } else { ...
0
votes
1answer
318 views

Better way to exclude category output for post/pages?

I always assumed there was a way to exclude certain categories from being output in the loop using get_the_category, the_category, or one of the term related functions. After looking around it seems ...
1
vote
1answer
1k views

Categories of custom taxonomy don't show any posts

I want to display posts from categories of my custom taxonomy but realy don't know how to achieve this. I am using isotope filtering which works as expected with default post categories. I can click ...
0
votes
2answers
1k views

Customize category query in widget

I would like to exclude a category from my categories sidebar widget. If I understand the way this works, the sidebar.php code is not in use since the widget is displaying the categories. (something ...
1
vote
2answers
485 views

Using permalinks, category slugs, and tag slugs

I'm trying to set up some permalinks for my site. Right now all the posts are under sitename.com/blog/, which is fine. But the category pages and tag pages show as 'sitename.com/blog/category/catname' ...
1
vote
1answer
2k views

How to display custom taxonomies with links in filter menu?

Since two days I am trying to solve a problem with custom taxonomies (categories). I have a Custom Post Type called 'Portfolio' and it works as expected but a problem is with my hierarchical taxonomy ...
2
votes
2answers
2k views

How to change the category in URL for posts in multiple categories?

How can I change the category slug that appears in the URL of a post that's in multiple categories? I'd like to change the default WordPress behaviour of using the category with the lowest id. I ...
2
votes
2answers
921 views

How to display a description of a given category from a custom taxonomy

I have a taxonomy called tcp_product_category. In the admin panel I have created a few terms within this taxonomy. On the homepage I want to display the description of one of those terms with the slug ...
0
votes
1answer
2k views

Custom Post Type Category Link

I have a loop of posts for a custom post type I built. How can i call the link of the category/taxonomy for each post? Thanks
0
votes
1answer
1k views

Exclude category from drop down list form

I need a bit of quick help. How do I exclude category ID number 50 for example in drop down list form in Wordpress? I have this code and I need to just insert the excluded category id. <?php ...
0
votes
1answer
95 views

How do I export the headlines of all the blog posts in a single category?

I need a list of all the blog post I wrote on a topic. (Basically a list of headlines that are marked with a certain category.) One of my readers once created a list like this and emailed it to me, ...
0
votes
3answers
2k views

echo get_post_meta of all post in a category to fill up a select field

I want to retrieve a specific post_meta of all posts contained in a specific category. I want to build a search form at the top of each category with a select field which would be filled up by the ...
0
votes
1answer
917 views

Add class to current post in query_post

I have a query like this; <?php $temp_query = $wp_query; ?> <?php foreach(get_the_category() as $category) { $cat = ...
2
votes
1answer
1k views

How to show post(excerpt) from specific category on wp page?

I need this on 3 pages, all 3 from different categories, and then to show several post excerpts from all 3 categories in sidebar of home page.
0
votes
1answer
206 views

Check if post belongs to any category

I've got a custom post type which displays portfolio items. I display the portfolio category on the page using this code: <?php $myterms = get_the_terms($post->ID,'portfolio_category'); ...
0
votes
1answer
685 views

Having Trouble With get_category_by_slug In a Custom Function

Here's my custom function to list child categories by the parent slug. function ribbon_list_cats($parent_cat_slug) { $parent_category = get_category_by_slug($parent_cat_slug); if ...
0
votes
1answer
155 views

Call Current Category

I'm using this in a file named category-portfolio.php which is for the archives page of my portfolio. I don't want to use cat= to specify a specific category. But when I don't use cat= it pulls up ...
0
votes
1answer
393 views

Load the last post of a category

I would like to load the last post when I go to the selected category. For example if I go to http://site.com/category it loads http://site.com/category/35/this-is-the-last-post Does exist some ...
2
votes
2answers
209 views

One Wordpress Install, Two Categories. Each Category Gets a Domain

Ok here is a setup I am aiming for, hopefully someone knows how to get me there: One Wordpress Install on www.mainsite.com www.mainsite.com will be a landing page that points to two Category links: ...
0
votes
3answers
2k views

Make parent categories not selectable

I'd like that my categories having child-categories don't be selectable on the post article page. What I want to do is to remove the checkbox before their label. I've looked the filter documentation ...
2
votes
1answer
68 views

How can we get Catergory / Term Creator

How can we get the category creator id ? I have checked the tables of category/terms viz. wp_terms, wp_term_taxonomy and wp_term_relationships. But there is no information about creator of the ...
0
votes
2answers
1k views

Category.php template for custom posts

I'm trying to use my category.php file to display all posts of a certain custom post type (say "Company") with a given category. However, when I try to use it by navigating to ...
0
votes
1answer
569 views

Show the categories the current post has

I have a custom post type; posts of this type can have either one or two categories associated with them. I need to display the names of the categories that are associated with each of these custom ...
1
vote
1answer
396 views

How to customize tag and category post listings to show introductory content?

In wordpress, we allow google to index our category and tag pages. We don't use no-index for tag or categories, which results very high ranking in a lots of keywords and we are receiving very high ...
0
votes
1answer
101 views

Page permalink rewrite

I added the following code which allows categories on my 'Page' post type. add_action('init', 'edit_page_type'); function edit_page_type() { register_taxonomy_for_object_type('category', ...
0
votes
1answer
412 views

wp_list_categories link to first post of category instead of calling taxonomy template

I'm using wp_list_categories to give me a list of links to categories (no surprise there) Is it possible to get Wordpress to link to the first post of a given category instead of calling the taxonomy ...
3
votes
4answers
130 views

Wordpress 1 domain multiple blogs

I need to setup a website with wordpress that 1 domain with have different pages of blogs. For example: - my website have Home, Artworks, Techniques pages. - Artworks and Techniques are 2 different ...
0
votes
2answers
114 views

Geting error in post and category [closed]

Hallo, I have in my blog now add a Plugin [Custom Post Type UI] and have great a Post type movies and taxonomies like genre,actors,directer..... like this all ok now i have great a test post min add ...
0
votes
1answer
513 views

create function to call category name and slug

In several theme templates I have code to retrieve the category name and slug for the present post or category page. It is outside the loop. Here is the repeated code: global $post; $categories = ...
-1
votes
2answers
283 views

Change from all posts to specific categories post on main page?

How do I change my index.php to display only the desired categories posts in the main page ? I tought that changing this would workout but instead it just print nothing: query_posts( ...
5
votes
5answers
2k views

Different post sort order within different categories

I need to give each post a unique post order for multiple Categories (per post) it is in. I can imagine a solution using custom fields whereby for each Category there is a corresponding custom field ...
0
votes
1answer
136 views

How to Show or Hidden Categories on page in Wordpress?

I have a problem to resolve. I have wordpress site with 2 pages : Food and Cooking. I have categories : food_categories (1) and cooking_categories (2). I want to show only food_categories on Food ...
0
votes
2answers
176 views

separate posts to have (kind of) 2 blogs?

Before putting a lot of effort in this, just to find out it's not possible: Let's say I have two different categories and I want the user to be locked in one of them after choosing it from a ...
2
votes
1answer
788 views

Using widget logic I want to show only a widget on the archive page if there are no posts

I have a custom post type with it's own taxonomy and I need to display a widget when on a category archive that is ONLY displayed when there are no posts. Currently I'm using this: is_tax( 'genre' ) ...
0
votes
1answer
266 views

3.1 post formats and specific categories/custom taxonomies

Is there a way to have a specific custom taxonomy for new 3.1 post formats? Let's say for example we want to categorize the "gallery" post format with two categories —only available for those kind ...
2
votes
3answers
2k views

How to get Total Post In a Selceted category

i have a wordpress site that has around 20000 post it gets slow at generating pagination. i have traced the problem. $my_query = new WP_Query($query_string ."&posts_per_page=-1"); $total_posts = ...
0
votes
2answers
399 views

how can we bring category metabox to Media Library/Upload New Media Page

I would like to place the 'categories metabox' found in new post/edit post page in the "upload new media" page. Any clues ?
0
votes
1answer
821 views

How to make category RSS feeds show full content

I'm trying to fix a friend's feed to show full content in the category feed instead of only a summary. He's already done the setting bit, but it still doesn't seem to work. Thoughts? EDIT: The feed ...
0
votes
2answers
705 views

Author Page - List of categories plus number of posts in that category

On my author page I currently have a list of categories the author has posted in generated by the following code: <?php $categories = $wpdb->get_results(" SELECT DISTINCT(terms.term_id) as ...
2
votes
1answer
369 views

How to block a category from one user and enable the category for the rest of the users

I have a site in which all categories are open to anyone, except for 2 categories that are password protected: Students, and Teachers. They are open only to specific users types, as follows: The ...
2
votes
4answers
262 views

Multi-site or categories?

I've recently been redesigning a site for a college radio, switching from Drupal to Wordpress from scratch. The site is based on the radio station, but each specialty show will also have its own blog. ...
2
votes
2answers
236 views

Custom Theme Want To Remove One Category From All Displays

I created my own custom Wordpress theme for my website, everything is great. However, I have a strange need, I have one category which is kind of a 'placeholder' for content which is automated and ...
1
vote
1answer
744 views

Subcategories with the same name

The wordpress codex says that a category and subcategory cannot have the same name, even if the subcategory has a different parent. I'm going to run into this exact situation and am trying to think ...
0
votes
1answer
543 views

How to add categories using mysql

I have an excel sheet with 423 categories consisting of US States > Military Bases. Is there a way I can reformat the excel sheet and import the categories into the wordpress database? I know how to ...
2
votes
1answer
40 views

Migrate posts into a different category

I have about 1500 posts I want to change category for. Is there a quick way to do this in Wordpress Admin?
1
vote
1answer
379 views

Taxonomy filter all children

I have a custom taxonomy filter that will filter all the pages in the selected taxonomy. I would like the code to select the pages in that taxonomy, and the children of thous pages. Heres the code. ...
0
votes
1answer
1k views

How can I display a list of categories of my posts

I have a Post Category called 'Podcasts' and under it are many other sub-categories. On a page I have titled "Podcast Categories", I would like to list all categories under the "Podcasts" category, ...
1
vote
1answer
583 views

Add title, post content, and category like add_post_meta and update_post_meta

How can I update/add a new title, post content, and category to a post with hard PHP code similar to add_post_meta(), update_post_meta()?
0
votes
1answer
142 views

Different post views for different category views

In my blog, my "pages" are really just posts sorted by categories. What's the best way to change the way the posts look for one of my category pages?
2
votes
2answers
3k views

Restrict categories to a custom post type

In the WP-Admin when creating a post or a custom post type I want to restrict certain categories to a custom post type. For example, Posts will only be able to select Category A and B. And custom post ...