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

How To Disable Category Hierarchy In Categories Widget?

I want to disable all category's hierarchy in default categories widget. With a code in functions.php . But how? Thanks in advance.
0
votes
1answer
747 views

SQL query to return categories and category parents

I have some categories which are not correctly defined. I.e. their parents are messed up. How can I select with SQL all categories and their parents?
0
votes
2answers
1k views

Target a specific category from a custom taxonomy?

I am trying to target a specific category from a custom taxonomy. This is for WooCommerce. So, the custom taxonomy is called "product_cat" and the category itself is called "adult-dvds". This is ...
0
votes
1answer
232 views

Make a menu visible for a single category and it's content

I'm working on a site with 3 major sections. Therefore I want to create archives for each section and those archives should be visible only in the category page and it's posts. At this point, I made ...
2
votes
3answers
766 views

How to mass-insert categories?

I want to insert hundreds of categories, structured hierarchically. Any suggestions on how I could do it in a batch mode? Thanks.
0
votes
1answer
1k views

Show custom menu in category and its posts

I have a category X of posts. The category page and it's individual posts are all part of a custom menu consisting of pages and posts. My submenu, in the sidebar, works fine for showing on the pages, ...
2
votes
1answer
510 views

How to stop wordpress from showing the selected category on top of others in the category selection?

By default in the category chooser at the edit post screen wordpress displays the selected categories on top of the others, i find that extremely annoying and i would like to disable the feature even ...
0
votes
3answers
1k views

Trying to add taxonomy to get_categories() but it's not working. How to fix this?

I have this template I purchased and I'm trying to customize. I added a new taxonomy category called location and I'm trying to replace the default categories being loaded in the theme with my new ...
4
votes
2answers
3k views

How To Modify The Loop in archives.php To Have 11 Posts Per Page and CSS Styling

I edited my loop in archives.php in order to work with pagination and with the Category Post List Widget. I basically pieced it all together from random code and ideas and am now so far from the ...
0
votes
1answer
432 views

How to make wp dropdown category load with selected option on top?

I have the selected option saved correctly, but when load the page, wp_dropdown_categories still load the list by its order. I prefer to load the selected item on top. How to do this?
0
votes
1answer
59 views

how to organize my categories or should I do custom post types for some?

I have main pages calling the Main parent and putting recent posts on those pages. What I am having the most trouble with is the Magazine. I can not seem to just get Spring 2012 to show with it's ...
1
vote
1answer
433 views

Additional form options based on category selected not working

I have a conditional statement to show certain images to choose from (radio buttons) based on the category chosen, however when the category is chosen, the radio buttons don't show? What am I doing ...
0
votes
1answer
424 views

Archived Posts in Wrong Category

I am working on a site and am having an issue with one of the categories. There is plenty of content on the site and there are seven different categories. All of the categories display the correct ...
0
votes
2answers
614 views

Get post content intro text on category.php?

For some categories on my site there's introduction text that needs formatting (so using the category description isn't an option) and placing at the top of categories.php. I've added a post ID to ...
0
votes
3answers
986 views

How to Remove a Title from All Category and Tags Page?

I am trying to remove the title from all my category and tags page. So far, I have been using this code http://pastebin.com/xxmyw7BP. It works but not perfectly. The title of my category and tag ...
0
votes
2answers
3k views

Display one latest post from multiple categories

This should be very easy, however for some reason I can't find a working snippet anywhere on the web.. I basically need to display one latest post from 6 categories (can be changed to 7,8, etc etc) ...
1
vote
2answers
368 views

Default category link for a custom category is a broken link

I'm developing a Multisute plugin that is supposed to setup sites using a specific template, including setting up several static pages and menu items, as well as a "Blog" category for blog posts. The ...
3
votes
1answer
1k views

WP_Query not looking at child category

Hi all I have a loop that shows a post on a single page and puts the first category name in the variable $cat: $cat = $category[0]->cat_name;?> Now after the post I have a link to show ...
1
vote
2answers
260 views

I Cannot Create New Category

For some reason I can't add new category. I changed the browser and even tried on my iPod Touch but it still did not do anything. It did not show any error message, No Nothing. It's like the new ...
0
votes
1answer
73 views

Twitter List Tweets and Delicious Links as Posts

I'm trying to integrate Tweets from a Twitter list as individual posts categorized as "Twitter," and trying to do the same thing from a Delicious account. I've found several plugins that will add ...
1
vote
1answer
126 views

Full Width Main Post

On my site I want to add a section just below Navigation and above-content (from where posts starts to show up on front page) which would show a panel where I can put any BREAKING NEWS (not always, ...
1
vote
1answer
31 views

Categories: A Greenhorn Question on Strategy (Not Code)

Im having an issue in my category set-up logic Let's say I sell new/used (including Vintage) Drums/Drum Parts wherein a user can search by new, used or by individual part. So let's say they choose ...
4
votes
2answers
121 views

Randomise results from a category page?

I have my standard category page. On this page, I'd like to put a button which, when clicked, randomises the results shown on the category page. I know I could make a rand-category.php page and send ...
1
vote
1answer
404 views

Style category link depending on category ID

I want to style a link depending on its ID, for instance, if the category ID is 2, then I want the link to be pink. My theme calls the category like this: <?php if (in_array('categories', ...
0
votes
1answer
113 views

Assign a category by user and customize the edit-tags.php?taxonomy=category page

I've been searching for days now without success... Here's my goal: - assign a top level category by user (this I've made it) - let each user create child categories only in his assigned category ...
-1
votes
1answer
574 views

exclude category in loop.php

I am using twentyten theme. I am trying to exclude category 1 from author posts. I used the following code in loop.php query_posts(cat='-1'); while ( have_posts() ) : the_post(); ?> But no post ...
0
votes
1answer
104 views

Display static pages instead of category, in code

I'm very new to programming and not sure how to go about this. The following code returns 3 category names and feature images and then outputs them on the page. <div id="footer"> <div ...
0
votes
2answers
346 views

Add Post Screen Keep Category structure

So on the add post screen in wordpress there is the category checkbox div. Before you select a category for your post it shows the correct hierarchical structure as defined in the category admin ...
0
votes
2answers
2k views

Custom Single Post By Category

I'm trying to get up to speed with the terminology of the ins and outs of WordPress, so apologies. I'm setting up a full site utilizing WordPress and a custom template, basing it on TwentyTen ...
0
votes
1answer
27 views

Wordpress Loop Prob

im using this code to get the posts of the categories but the problem is this code is getting one less value than actual if there are total 5 post its getting 4 any when can plz check it .......... ...
1
vote
4answers
189 views

Echoing Categories only if they're a child of a given category

I've got posts that I want to echo after the post content the categories only if they're a child of a given parent category. Example: Parent category: Goal Child categories of "Goal": brand ...
1
vote
1answer
1k views

Category List (Archive) Page Template By Category

I feel like this is probably a duplicate question, but cannot find the search terms to find what I'm looking for. Is it possible to have different category list (archive) pages (or views/templates) ...
1
vote
1answer
535 views

display posts from specific category on a page , in thematic child theme?

i have a blog page template , i need to make it display posts from specific category called news this is the template , i use thematic framework child theme <?php /** * Template Name: Blog * * ...
2
votes
0answers
397 views

Best way to programmatically link to multiple categories (union/intersection) [closed]

This question assumes that you know about the various complex taxonomy queries available from the WP_Query API. I know about tax_query as well as about things like category__and, which allow you to ...
0
votes
1answer
132 views

Duplicate posts and change category (frontend)

I am trying to create a button inside a post and, when the user clicks on it, I'd like the post to be duplicated and this new post goes to another category, is it possible? For example: I have "post ...
0
votes
1answer
111 views

Return Custom Post Type Categories

I have setup a custom post type within Wordpress. For this I have also registered a new taxonomy and added various categories. I then have assigned these to the posts, all of which works, it shows ...
0
votes
1answer
64 views

What approach should I take for this URL structure?

For a website I am developing I have to create two pages with listings of courses. The first page is a "Trainings" page while the other page is "Coaching". I would like to use a single custom post ...
0
votes
3answers
2k views

How to hide child categories from displaying

I am using this code to show a list of all categories in sidebar <?php wp_list_cats('list=0&sort_column=name&optioncount=0&hierarchical=0&optioncount=1&children=0'); ?> ...
2
votes
1answer
3k views

Display products for a category, sorted by post_excerpt

I'd like to display a list of products for a certain category, sorted by the post_excerpt. The original code I used was this: $args = array( 'tax_query' => array( array( ...
0
votes
2answers
646 views

Get unique post in parent category

I have a parent category and several child categories. I also have several posts that belong to the child categories. Each post can be belong to several categories. I want to know how to query the ...
0
votes
1answer
359 views

Order Categories by Hierarchy?

I want order my categories by hierarchy. But I want to use custom select name, id and class like this: <select name="kategorisec" id="cat" class="postform"> ... </select> and I want to ...
-2
votes
1answer
212 views

How to load/include category templates based on conditionals?

I have this lines to get different template, I can get the desired template but also i'm getting the default template at the end of theme. I tried to skip the code with goto but this fuction is ...
0
votes
1answer
63 views

Nicer URL for viewing category of posts?

At the moment to view a category of posts I have a url like http://server/category/tag Is there a way in wordpress I can do this as: http://server/tag
1
vote
0answers
560 views

How to display only the parent category in the permalink

How it is possible to display only the parent category of the post. It contains two sub categories and I want to eliminate it. Example: myblog.com/parent_category/post_name This is only what I want. ...
0
votes
1answer
2k views

forming WP_Query for posts of all post types but from specific categories

I need to get post from blog, custom post type 1, custom post type 2. custom post type 3 and either from category 1 or category 2 or category 3 or category 4 or category 5 or category 6 or category 7 ...
1
vote
1answer
645 views

How to Filter categories in the permalink structure

Using /%category%/ %postname%/ for the permalink I get a URL string of all the categories that the specific post is included in. I would like the categories in the url to be filtered down.here it is, ...
1
vote
0answers
68 views

Listing and accessing categories for a custom post type

I have two post types: Projects and Events. I want each of these post types to have their own categories: Upcoming and Past. I have an archive page displaying the posts in these types. However, on ...
1
vote
1answer
1k views

Pagination for category slug returns 404 when page >= 2

I have a custom type and the slug is: 'rewrite' => array('slug' => 'blog/%blogs_tax%'), And after register_post_type() I have a function to rewrite the slug variable. I works fine, but I ...
0
votes
1answer
1k views

Hide tag and category boxes from the post editor

I want to hide the tag and category boxes from the post editor, the theme I've just developed doesn't need them, thus I want to hide them. I am aware they could be hidden using the 'screen options' ...
0
votes
1answer
521 views

Custom post types with categories in template

I´d like to do something like this: Pages: 1. Sport 2. Business 3. Normal Custom Category "Car-Types": 1. Audi 2. BMW 3. VW My custom post type will called "Cars" I´d like to show the cars ...