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
0answers
10 views

Custom meta boxes adding prefix to first category but not others

I've created a custom post type and added some custom meta boxes using this great resource: https://github.com/WebDevStudios/Custom-Metaboxes-and-Fields-for-WordPress The problem, I've found, is that ...
0
votes
1answer
15 views

Lowest catagory link

I am trying to display lowest child category link.At this point I can only display the child category name but I want it with permalink.So far my approach $categories = ...
0
votes
1answer
15 views

Ad line breaks in category description via enter

My client wants to ad line breaks in category description via keyboard enter. In the editor the white space is added, but it is not shown on the website. I can ad it with   but I have to be ...
-1
votes
0answers
18 views

Display deepest child category for current product in woocommerce [on hold]

This seems like it should be easy to do but I haven't been able to, and cannot find any posts regarding it. I can display all the categories associated with a product, or the top category, but how do ...
0
votes
2answers
55 views

Wacky taxonomy in wordpress

I have my main site, www.whatsthatbug.com, and a test site, test.whatsthatbug.com. They are identical as far as I can tell - same version of wordpress, same plugins at the same versions, same theme ...
-1
votes
0answers
9 views

custom categories

I am working on a site that will show only event and I am using the all in one event calendar by time.ly My problems is that from the theme options>categories when I try to assign an event category to ...
-1
votes
0answers
17 views

Hierarchy of WooCommerce product categories [on hold]

I'm working on a WooCommerce stores selling wines with the following product category setup: wines (parent) - white wines (child) - red wines (child) - wine of the month (child) - wine of the year ...
2
votes
3answers
153 views
+150

Display all posts in category, with specific tag posts at top

Rephrase question I need to order posts inside the loop for my category car. What I need, if I visit the category page of car, I need all posts tagged BMW to display first, and then the other posts ...
0
votes
1answer
31 views

Display Categories or Subcategories with name & description in category.php in wordpress

I have the following issue for my customer. Can some suggest a possible solution to this issue? This website has Categories & Subcategories Cat1 -Subcat1 -Subcat2 -Subcat3 Cat2 -Subcat1 ...
2
votes
0answers
77 views

Display all posts from all categories with pagination

Alright, this might be a tricky one to explain but I'll do my best. At the front page I want to display all the posts from all the categories. However I want them to be divided. Take this for an ...
1
vote
1answer
17 views

Find out which user created a category or tag?

We recently had an employee create inappropriate categories on our site as a way to retaliate against one of our managers. We are looking to figure out who is responsible. I have super admin, as well ...
0
votes
1answer
15 views

How to exclude the last post from a category(featured for example) from the main loop?

I am using 2 loops on the main page, one that shows the last post from the featured category and a general one with all the posts. The problem is that i get the last post in the featured category in ...
0
votes
0answers
14 views

display related product of same subcategory in woocommerce with wordpress [on hold]

i'm working on a site in wordpress and using woocommerce plugin. on my single product page i want to show the related product of same subcategory but unable to do so. i have a category fall ...
0
votes
2answers
22 views

If posts category is “cars”, display image

Can someone translate this: If posts category is "cars" show image For example: I have an article with category 'car' and another article with category 'banana'. No I'm looking for a way to add an ...
0
votes
0answers
19 views

Wordpress gallery shortcode - include author's images

I'm using the built-in wordpress gallery shortcode to display all images of a category -- documentation found here: Wordpress Gallery Shortcode Codex --- By using [gallery category="1"] How could ...
0
votes
0answers
13 views

Adding Category Items to Non Category Menu Item [on hold]

I'm using Events Calendar Pro and would like events that I categorize as "Featured" to automatically be added as a second-level nav item in my site's nav menu, underneath of the top-level item ...
0
votes
1answer
47 views

New WP_query in template not working with CPT+category on some pages

I have three page templates, homepage, documentary, and corporate, each using the same CPT WP_query code with only the category name changed for each respectively. The homepage works fine, pulling and ...
0
votes
1answer
10 views

Get value of custom field in category admin

I am using cfs-custom-category-fields plugin. In their documentation it says that to get the value of a custom field in category you should use CfsTaxonomy::get('field_name') This works well when I ...
0
votes
0answers
27 views

how to Specifies an author / editor to edit one category only?

let me say i have a news website and it have many categories like sports ,politics and art . so i want to specify or select one of my authors "Bob" to be an editor for sports only for example .... how ...
1
vote
1answer
34 views

Display empty taxonomy terms with get_terms()

I have a function setup as follows: <?php $terms = get_terms("wpsc_product_category"); if ( !empty( $terms ) && !is_wp_error( $terms ) ){ foreach ( $terms as $term ) { ?> ...
0
votes
2answers
22 views

How do I add and display a custom image field to a category?

How do I add and display a custom image field to a category? I know I need to use the hook 'category_add_form_fields' however I am not quite sure how... I am relatively new to wordpress so any help ...
0
votes
2answers
28 views

How to disable access to category pages

I want my categories to be active and at the same time I want to make the category pages inaccessible. Is it possible? If yes, How? Why I want to do this? (Possibly this may help) I am working on a ...
0
votes
2answers
23 views

Best Way to Redirect Category to Page and Hide Category

I have a category archive page at: http://mysite.com/news It displays an archive of items from the category 'news-article' I'd like to redirect any requests for ...
0
votes
1answer
22 views

the_category() tag not styling HTML or CSS

I am having problems getting my the_category() template tag to style accordingly with the rest of my theme. I believe this is because the HTML isn't output the same way as the the_author() and ...
0
votes
1answer
22 views

Exclude category from foreach loop

How can I exclude one category from this loop wher I list my custom type projects by year ? <?php foreach(posts_by_year() as $year => $posts) : ?> <h3><?php echo $year; ...
0
votes
0answers
14 views

How to add Default Post Type “Custom” category to custom post type

Hi I have three custom post types 1- student 2 - teacher 3 - academy All three types share should have three categories 1 - subjects 2 - area 3 - qualification level First I thought I should add ...
0
votes
1answer
11 views

Cannot filter categories by parent category

I'm trying to get all direct child categories in category hierarchy. What I've tried: $args = array( 'child_of' => get_query_var("cat") ); $categories = get_categories($args); ...
0
votes
2answers
22 views

comments_number fails to print

I want to display the number of comments on a post using the template tag <?php comments_number( $zero, $one, $more ); ?> However, for some reason this tag does nothing and it is ...
0
votes
1answer
19 views

create category upon saving post and save post in that category

What I'm trying to do is similar to this one but we have a bit of difference in getting our info. Basically, when a user creates a post (under suggestions custom post type) on my site, it is not ...
0
votes
1answer
18 views

Display one post on category.php: Wrong featured image

What I want When a user opens a category link, there should be automatically displayed the first queried post. My query looks like this: <?php global $query_string; $posts = ...
-1
votes
0answers
6 views

Blog parameter section to create a new page?

How to add Select Blog Parameter in the page ? I need to create a new page that show all my blog post . I want to add two of my categories in a page name as Blog . I need some thing like as See in ...
0
votes
1answer
38 views

Random taxonomy category list

I'm trying to display one of my custom taxonomy lists on a page. I want to show five but have them in different random orders when the page is refreshed. I've tried using shuffle, but it just ...
2
votes
1answer
33 views

Limit function to specific post category

I have a function that wraps images in a custom div. It's placed in functions.php and modifies all posts. I'd like to know if there's a way to only apply it to posts in a certain category. Here's ...
0
votes
1answer
34 views

List child categories from parent category on custom taxonomy page

I making some updates to a theme I'm currently working on. I've moved a bunch of categories that have custom post items under them into a parent category that's all within a custom taxonomy. e.g.: ...
0
votes
1answer
18 views

Add posts of a certain category to a page

I have posts with a certain category(Blog Posts) and I would like to add these to a certain page(Blog). What can I do to add my category to a certain page? I really appreciate your help!
0
votes
1answer
42 views

Link category archive from category archive template [on hold]

All my posts belong to categories. There're at least 30 categories and sub-categories with 10 or more posts per category. When opening http://example.com/category/subcategory only the latest 3 ...
0
votes
2answers
52 views

Displaying One Custom Post Type's Content On Single Post of Another Custom Post Type

I'm currently building a college football blog and I have 2 custom post types: conference and team. Each conference post type will be a horizontal list consisting of each teams' logo and will be ...
0
votes
1answer
19 views

Add category attribute to custom recent post shortcode

I have a recent post shortcode to display a custom post. Everything works fine so far. However, I would like to add a category attribute so I can specify which category to display. My working code is ...
0
votes
1answer
47 views

Redirect year month day postname permalink structure to category postname structure

I have a Wordpress site with a /%year%/%monthnum%/%day%/%postname%/ permalink structure, and now the client wants it changed to /%category%/%postname%/. How do I do a generic redirect for the old ...
0
votes
0answers
10 views

Archive page display all posts which are listed under multiple categories or tags

Say I have some posts that I want to display which are listed under the categories "Video Games" and "Reviews". Or I have some posts under the tags "Mario" and Four-Stars". I initially came to ask a ...
2
votes
2answers
66 views

Get user's most published categories

I am working on listing all users similar to the Users page here on SE. When listing each user, I want to add their 2 categories they have published most into. All categories are within Posts. ...
0
votes
1answer
23 views

How To Remove Certain category Posts From the Blog Page

I'd like to know, Is there any ways to remove certain category posts from the blog page. Actually, I own a technology blog and I'd like to implement free software directory or marketplace in my blog ...
0
votes
0answers
13 views

Limit categories visible

How could you limit the categories displayed for a certain role when adding a new post? I would like to only list a few categories, but would rather not prevent them from seeing these categories ...
1
vote
1answer
27 views

Wordpress JSON API remove posts from a specific category

I have installed Wordpress JSON APi plugin, the idea what I want to do is to retrieve all posts from a websites except a specific category for example with ID: 434. I need all posts except from this ...
-1
votes
0answers
15 views

Cannot pull up posts of category on category page!

I have an extremely simple loop which I've placed in header.php: $my_query = new WP_Query('category_name=home'); while ($my_query->have_posts()) : $my_query->the_post(); whatever(); endwhile; ...
0
votes
1answer
20 views

How to use an array of categories as a dropdown?

I need to use an array of existing categories as a dropdown option value then use the selected category ID. More exactly, I try to make a custom module to display the latest posts form selected ...
1
vote
0answers
24 views

How can I edit the 'Most Used' tab in the categories meta-box to show another custom taxonomy?

The 'Most Used' tab in the categories meta-box is the one that can be seen in the Edit Post section. I want to replace the Most Used tab, with a tab that lists another Custom Taxonomy, or edit the ...
0
votes
0answers
19 views

Related sub category posts with thumbanils

I want to show sub sub category posts and title Like Parent Cat Sub Cat Sub Sub Cat <--- I use the following code but shows me all posts from Parent cat , sub cat and sub sub cat posts. ...
1
vote
2answers
52 views

Show matching categories in search page

my current search only shows POSTS as results. http://newslines.org/?s=george My site has categories for George Clooney, George R.R. Martin etc. How do I get a list of categories that match the ...
0
votes
1answer
18 views

Include Category With Tax Query

I'm using The Events Calendar plugin but I thought I'd post it here as I believe this particular function works the same as get_posts(). I'm trying to use the function to display only posts from one ...