The tag has no wiki summary.

learn more… | top users | synonyms

-1
votes
1answer
23 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
15 views

Loop spesific category title + Foundation reveal

I would like to make a list of a spesific post category title. In this list I want the reveal function from Foundation to open the post + its title. How do I make this? I'm kinda new to making loops ...
0
votes
1answer
19 views

How to display post title and link within wp_list_categories()

I'm testing something which needs to display posts within wp_list_categories(). Basically I want to display all content for a taxonomy. I'm pretty sure that to make it happen I have to alter the WP ...
0
votes
2answers
22 views

Break down output of wp_list_categories

Im looking at how to breakdown the output from wp_list_categories. Currently it shows: <a href="http://www.oddpandadesign.co.uk/shaun/cat-band/drummer/" title="View all posts filed under ...
0
votes
1answer
83 views

Get categories list with category name in custom WP_List_Table class

Im building a plugin and i made custom wp_list_table class to suit my needs and display items with native wordpress look. The problem is that i can't get to list categories with categories names. I ...
0
votes
0answers
16 views

Show the child categories of current category on category page including other parent category

I want to show list like: category 1 sub cat 1.1 sub cat 1.2 sub cat 1.3 category 2 category 3 My code is: <div class="f1" ><p class="heading">Links</p><?php ...
0
votes
0answers
12 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
16 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
28 views

Custom taxonomy list in Worpdress

I just registered following code in my function add_action( 'init', 'create_resources_taxonomies', 0 ); function create_resources_taxonomies() { $labels = array( 'name' ...
0
votes
1answer
42 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
1answer
17 views

Placing generated list into drop-down on custom menu

I'm trying to add categories and authors automatically into the custom menu as they are created (avoiding having to do it manually for each one). I've modified Alex Mill's code and got to display a ...
0
votes
2answers
49 views

Post Image not displaying in category view

I tried adding an thumbnail sized image in the very first line of the post so that I want my category list search should display with this thumbnail and some text with "read more" button but this ...
1
vote
1answer
35 views

Arrange Combined List of Pages and Categories

I'm using the code below to display both top-level pages and categories in my menu. (If this is the incorrect way to do so, please let me know). I would like to arrange the items alphabetically. The ...
0
votes
0answers
81 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 ...
0
votes
2answers
53 views

Add html word before category

I'm trying add "Tuppersex" text before categories but it's impossible! Everyone can help me please? Now, final code is this: <ul id="cat-col-1" class="cat_col"> <li class="cat-item ...
0
votes
1answer
71 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
2answers
69 views

Style wp_list_categories

I think this is a fairly simple question and im sorry if it is but how would I add a <div> to each individual category within this code: <?php $taxonomy = 'category'; // get the term IDs ...
0
votes
1answer
29 views

Need help using a filter on the default Categories widget

I need to add the "All Categories" item to the default WP categories widget. I can see that there's a filter that I can hook into in the core (line 485 default-widgets.php). ...
0
votes
1answer
43 views

How to remove uncategorised posts from WordPress

I am using koresponsive theme. I am displaying name of categories as my menu bar just below my header. Now I need to remove 'Uncategorized' category from displaying it in the menu bar. How can I do ...
0
votes
1answer
403 views

Highlight current category in wp_list_categories

I am using wp_list_categories to display all terms of my custom taxonomy 'categories'. The function is outputting all my terms successfully but the current category is not being highlighted, even ...
0
votes
0answers
152 views

How to add dynamic text to the product page in Woocommerce

I'm looking to add text to the product page aside from the 'short description' text, that will not appear on the category page. I cannot determine the best way of going about this. I thought about ...
0
votes
1answer
103 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 ...
1
vote
1answer
35 views

List of Posts and Categories

I have a custom taxonomy of Species and a custom post type of Animals. I would like to display them in a tree view like so: All Animals Fish (taxonomy term) Shark (Custom Post Type) Sun Fish ...
-1
votes
1answer
50 views

Replace the post count on wp_list_categories with “Has Posts” instead of number and “No Posts” if none

How can this be achived? Replace the post count on wp_list_categories with "Has Posts" instead of number and "No Posts" if none.
2
votes
1answer
257 views

How to highlight all current categories when viewing a single post?

When viewing a single post, the wp_list_categories function already marks the current category of this particular post by assigning the current-cat CSS class. If the post is mapped to multiple ...
0
votes
1answer
517 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
0answers
67 views

Build Categories List for Posts with specific meta_value

I've a set of Posts under custom post type that has a specific custom field (meta_value). This posts are categorized with a simple Common Parent->Child#N relationship. The question is how to list ...
0
votes
1answer
607 views

Adding ul class with wp_list_categories Custom Walker

I am trying to achieve something that seems like it should be simple but is causing me headaches. I am listing my categories out using wp_list_categories which gives me this... <ul> ...
0
votes
1answer
68 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
0answers
152 views

wp_list_categories() to link to list of posts from one custom post type and one term

Sorry for this title. I've created 2 custom post types called 'audio' and 'video'. I share them a taxonomy called 'category' with 4 terms 'cat1', 'cat2',... In my 'audio' template page, I'd like to ...
0
votes
1answer
38 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
26 views

Hiding any option or menu from menubar

Just after logging in through the 'Login' menu when any valid user will reach to the profile page that time the 'Login menu will be hidden in a wordpress theme. That means after logging him/herself in ...
0
votes
1answer
805 views

How to make a drop down menu with categories

I'm building a website in which there is a navigation menu with various links; in this menu there is the link to the blog section. My goal is to create a drop down menu that appears when the cursor ...
1
vote
1answer
16 views

How to display all the categories a post is in

How do I display all of the categories that a post is in, in sentence format. eg. cars, boats, aircraft, bicycles.
0
votes
1answer
39 views

Display Taxonomy Terms in an option tag with value being the slug

I have a custom taxonomy filled with terms that I wish to display in a fashion such as below. <option value="[SLUG]">[TERM]</option> <option value="[SLUG]">[TERM]</option> ...
0
votes
0answers
22 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( ...
0
votes
0answers
93 views

WP Network - List Posts child_of plus include specific category

Alright, so problem I have is my client has 8 WP sites in a network. 1 specific site they want additional posts from another category to display other then child posts of thew News category. I have ...
0
votes
0answers
33 views

Custom URL writing with two taxonomies

I have two custom taxonomies: Brand and State If I'm viewing the "Browse States" page, I'm wanting to use wp_list_categories() to list all the states (I can do this). The urls for each State being ...
0
votes
1answer
77 views

Delete Term via edit-tags.php

I might get rep'ed down on this - but is there suppose to be a "Delete" link on the edit-tags.php page? Note: not the WP-List-Table, but the actual page where you specifically view the terms ...
2
votes
2answers
3k views

How can I customize the wp_list_categories

I have a list of categories in woo-commerce which I'm trying to customize to be displayed to look like the following image. I created the above image using normal HTML and css however I would like ...
1
vote
1answer
105 views

Insert <ul> Into Sub-child Menu

This code displays a list of child categories of the parent category while a user is on a child category or single post. The styling around this list is displaying even when a list isn't being ...
1
vote
3answers
694 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 ...
0
votes
0answers
73 views

Display a custom post type list by taxonomy term

I need to show a list of custom post type classified by terms. The idea is something like this: Service list: <ul> <li> <a href="#">Webdesign (taxonomy term)</a> ...
-2
votes
1answer
130 views

Make this jQuery toggle snippet target each list item individually [closed]

I'm currently using this little jQuery toggle snippet to show/hide child categories using the wp_list_categories function; $('.sidebar ul.children').hide(); // Start by hiding child categories ...
0
votes
0answers
136 views

wp_list_categories not working on my live site

I am using wp_list_categories function it work on local server fine but on the live site its not working the code i am using for this is <li class="dropdown"><a href="#" ...
0
votes
1answer
647 views

Get category ID from category slug (not working)

I found this code, which apparently gets the category ID from the category slug: $category = get_category_by_slug('category-name'); $id = $category->term_id; But when I try to implement it ...
0
votes
1answer
239 views

Category count inside the link

Is it possible using wp_list_categories set count of post in category in the href?
0
votes
1answer
67 views

Retrieve Custom Taxonomies with Description and Slug

I've been looking to grab a list of custom taxonomies for a custom post type with the titles, descriptions and tag but have not been able to progress or find anything helpful. Breakdown: I have ...
1
vote
1answer
654 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
2answers
110 views

Targeting categories in custom fields

I was hoping somebody could help me out with custom fields. I created a custom post type called game-type in WordPress. In this I have the categories "Android", "iOS" and "PC", then within these I ...