0
votes
0answers
9 views

Keep last used category at the top in “Categories” or “Most Used” box?

Is there any way to tell WP to keep last used category on top of "Categories" or "Most Used" tab in admin area when adding new post? I would like to have last used category on top of list of ...
0
votes
0answers
21 views

Force Category Sidebar To Show Just One Level Sub-category?

Here is an example of normal categories displayed in the sidebar: - MAIN 1 -- Sub One --- Sub Sub One --- Sub Sub Two -- Sub Two - Main 2 -- Sub Two This is the default structure. Here is ...
0
votes
1answer
22 views

Output categories in something different than a list

I wanted to output all my categories in the sidebar of my wordpress theme. Now I use the function wp_list_categories(); which works fine. However it always displays the categories in a list and I ...
0
votes
0answers
43 views

get the categories of current post (in loop) that are child of a specific category [duplicate]

I have a small issue Need to get the categories names of my current post within the loop. But i need only those that are child of a specific category that is not assigned to my post. I have tried ...
0
votes
1answer
51 views

Display page of custom posts?

I have a custom post type, "design_asset". I am displaying them on a page template, with the loop <?php rewind_posts(); $paged = ( get_query_var( 'paged' ) ) ? get_query_var('paged') : 1; $args = ...
0
votes
2answers
62 views

How to list all categories in three divs dynamically based on the quatity of categories?

I have 15 categories. I list this using <div class="category_list"><ul><li><?php wp_list_categories();?></li></ul></div> Now it's listing all 15 categories ...
0
votes
2answers
93 views

Category Alphabet List Broken

In version 3.6.1 and below this worked. After updating WordPress to version 3.9.1, my category list is broken In version 3.6.1, my category list looked like this A|B|C (A) (B) (C) Apple Bat ...
0
votes
2answers
119 views

Display a list of subcategories a post belongs to

I have this code: <?php // List subcategories of category '4' $subcategories = get_categories('&child_of=4'); foreach ($subcategories as $subcategory) { echo sprintf(' <a ...
0
votes
1answer
24 views

Post of a specific category - not to be seen in paging previous/next post

i have a specific post category, eg. id=x which is not shown in category list. These posts are password protected and should be visible only to those provided with the link. However current version ...
0
votes
1answer
29 views

How to show main category related to that post

On my main page I have a few post from two categories, but I only want it to display only one Here is my code <?php /* translators: used between list items, there is a space after the comma */ ...
0
votes
1answer
29 views

Display unused categories in dropdown

I have created a front end post with a form and I would like to have several categories for the user to choose between. But the problem is that the dropdown category only show those categories that ...
0
votes
0answers
59 views

How to list categories/tags as a list in meta tags

I was wondering if there's any way to list all tags and categories of a posts in the header of that post. I want to list all the tags/categories via a plugin as a list in meta, similar to this: ...
-1
votes
1answer
192 views

Display Categories Assigned to a WooCommerce Product

I am using WooCommerce with SuperStore theme. In meta.php file is this line, echo $product->get_categories( ', ', '<span class="posted_in">' . _n( 'Category:', 'Categories:', $cat_count, ...
0
votes
0answers
16 views

wp_list_categories output /defaultcategory+category2/

I need output this /default_category+ and add after that comes all site categories and then list those. I need to list this so I can make ready list, so user can search post that are in under default ...
0
votes
0answers
29 views

Category not displaying in add post, edit post, and categories page.

I have faced one problem after updating WordPress to 3.8.1. When I try to add or edit a post the category list at right side panel is blank, even though I have several categories on the site. Please ...
0
votes
1answer
67 views

How to show post from category select

This code is in my functions.php: array( "name" => "Headline", "type" => "section"), array( "type" => "open"), array( "name" => "Headline Categories", "desc" => "Choose a category ...
0
votes
0answers
133 views

Exclude Categories from wp_list_categories()

in before: I already searched for this answer her but couldn't find a thing that worked for me. I have a Lot of Categories and Child Categories. I use them to give a Location, Country, Type of ...
1
vote
1answer
120 views

Modification to wp_list_categories

I dug this up to help me modify wp_list_categories and place the featured image from the latest post in that category, inside the generated li. class CategoryThumbnail_Walker extends Walker_Category ...
0
votes
1answer
175 views

Displaying different posts Via wp_list_categories()

I believe this problem to be quite simple but can't seem to get my head around how to solve it. So I'm pulling in all the category with posts in using wp_list_categories(); My problem is when I ...
0
votes
1answer
1k views

Add class to items in wp_list_categories()

I have this in my category.php to show sub-subcategories: <?php if (is_category()) { $this_category = get_category($cat); if (get_category_children($this_category->cat_ID) != "") { echo ...
0
votes
1answer
80 views

Exclude a specific category link from archive / front page

I create posts that are used just to create an index item to show an existing post has been updated. The post I create 301 redirects to the updated post. I add these index posts to the category ...
0
votes
1answer
42 views

If searched in a category show different 404 page

Is this possible? I have a searchform that searches for certain categories. If there is no post, it will show me a 404 page... Can I change this page to something else? If so, how do I do that?
0
votes
0answers
27 views

How Can I List Categories by Date?

This question isn't specifically about categories, but any taxonomy. I registered a taxonomy called issue. I want to list these issues by year. I'm currently using the function: wp_list_categories( ...
1
vote
3answers
876 views

Add Class While on Current Post; wp_list_categories

The code below produces a sub-menu of child categories of the currently active parent category. This code also produces the child categories of the top parent category while viewing child categories ...
1
vote
1answer
826 views

Using wp_list_categories like the the_category (showing just current categories of a post)

fromi'm using wp_list_categories to get an unordered list with headlines (on single.php inside the post-loop): <ul><?php wp_list_categories('title_li=0');?></ul> the thing is: i ...
0
votes
1answer
737 views

How to list only child categories?

Is there any way to list the child categories only? I just want to filter the Parent Categories
0
votes
1answer
473 views

Show last post from multiple categories using wp_list_categories

I have the following code that lists out the children categories on a separate page when you click on its parent category. The code renders a list like so: Home › Archive for IQ Issue 7 Journal ...
0
votes
1answer
289 views

Give child-categories same class (the parent category-slug) as parent in menu list?

I am trying to do two things, which I have no idea how to do: give child categories the same class as the parent category (which is the parent category-slug) create a menu which displays my ...
2
votes
1answer
322 views

Changing post category from dropdown

I am showing a list of posts on the front of my wordpress site which each have a dropdown next to them with a list of category's, which are pulled in as follows. As you can see the form submit button ...
0
votes
1answer
1k views

How can I make wp_list_categories output li with category-slug as class, for its children?

Simply put, I'd like to change the wp_list_categories output from this: <li class="cat-item cat-item-1"><a href="http://mysite.com/category/articles">Articles</a></li> ...
1
vote
1answer
341 views

Giving wp_list_categories the class of the category

I am using wp_list_categories to list my categories in my menu. When the menu is generated each category is listed as a <li>-element with "cat-item[number]" as class. Is there a way to also or ...
1
vote
1answer
44 views

Order categories by most posts

How can I list the categories by most posts News(100) Updates(45) Alerts(20) and so on
0
votes
3answers
1k 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'); ?> ...
1
vote
1answer
2k views

wp_list_categories() - current-cat class also inside posts?

I wrote my own function to list all taxonomy terms of a certain taxonomy … function wr_list_taxonomy($taxonomy, $orderby, $hierarchical) { $show_count = 0; $pad_counts = 0; $title ...
0
votes
2answers
147 views

how do you prevent showing a particular category on the admin dashboard for specific user roles?

I'd like to prevent the "Featured" category from appearing for certain user roles. To be specific, I want only the admins and editors to be able to see and thus select or unselect that category. ...
0
votes
1answer
633 views

Listing Specific Categories from Current Post with Depth

I've been on this for sometime and been having a ton of issues to find a proper way to do what I'm trying to achieve. An Example would be as follows: I have a featured Image with a rollover and I ...
-1
votes
1answer
614 views

wp_list_categories() not listing categories

I've many categories in my database but when i'm calling wp_list_categories() it is not listing any categories, its only outputting Categories No categories Also, I'm trying to populate it using ...
-1
votes
1answer
636 views

how to set category name for a post

how to set category name for post: this is my code ,this is not working ,why? $post_title = $vname; $categ='category name'; $post_content = '[newpage link="'.$videos.'"]'; ...
0
votes
1answer
431 views

wp_list_categories with show_count, except for specific categories

I want to show post count for all child categories shown, but not for their parent categories. Or, since there are only 3 parent categories, this exclusion could be per category id. Is there a way ...
1
vote
1answer
172 views

Post specific text based on category displayed

So I'm working on a site and I need a news page that is slightly different. It is a post category but I want the text echoed at the top of the news category listing. <?php endif; ?> <?php /* ...
0
votes
2answers
944 views

wp_list_categories() Exclude All Categories Except One

Is there a way to exclude all categories except one? I want to show a category and it's sub-categories as a dropdown menu, but the admin might add more subcategories to it so I don't want to limit ...
0
votes
2answers
132 views

Categorie parents and childs displayed

I'm trying to create a menu directly hard-coded, basically I need to display the parent category and below its child categories, however I have to do this several times meaning something like this: ...
-1
votes
2answers
565 views

Differentiate Between Parent & Child Categories

So I'm working with a non-wordpress theme called "Misty" and it uses this code to pull categories: <li class="sidebox"> <h3><?php _e('Categories','ml'); ?></h3> <ul ...
1
vote
1answer
297 views

List Sub-Categories of a Parent Category

I need to be able to list categories that are the sub-category of a specific category that is a sub-category of a primary category. So something like this: Print Categories where ParentCategory = ...
0
votes
1answer
68 views

Not showing list if there aren't any categories to display

maybe you can help: Bellow there is a simple code listing my blogs categories. I need some code that will not display the *ul is there aren't any categories to display* <ul> ...
0
votes
1answer
996 views

How to divide and display categories into two columns

I am using custom taxonomies. I have multiple categories and each category has multiple children. I would like to display the categories in two columns on my homepage similar to linkcentre.com. I ...
1
vote
1answer
1k views

get_category_link() is returning nothing

<?php $categories=get_categories('taxonomy=galeriak'); foreach ($categories as $category) { ?> <li><a href="<?php echo get_category_link( $category->term_id ) ?>" ...
0
votes
2answers
324 views

Wordpress Categories: Function using custom SQL to return array of specific category IDs

I'm developing a custom theme which uses categories for positioning, all of which begin with an underscore (e.g. _position1). I have an SQL query as below to get a list of these categories (those ...