Display or retrieve the HTML list of categories.

learn more… | top users | synonyms

4
votes
2answers
223 views

How to show subcategories in categories else show posts

I have hierarchy like this: Category1 -Subcategory1 -Subcategory2 --Post1 Category2 -Subcategory1 I need to show subcategories name and description when i go to category//// Now i use this code: ...
0
votes
2answers
409 views

How to display wp_list_categories on div instead of li?

Does anyone know how to display the wp_list_categories() on a div instead of the li? I basically want to wrap main categories and its children in a bootstrap column. $args = array( 'taxonomy' ...
0
votes
2answers
365 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 ...
1
vote
1answer
33 views

Get categories with posts by custom field value

I have a big categories tree (~2000 total subcategories)... And I have a lot of posts with custom field "city" (different values). I have created filter posts by "city" field. But I have problem with ...
1
vote
1answer
113 views

wp_list_categories depth and number

My code is as follows: $custom_args = array( 'orderby' => 'name', 'order' => 'ASC', 'depth' => 1, 'number' => 4, ); ...
1
vote
1answer
46 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
1answer
23 views

How to toggle custom WP archive list

Help! I'm trying to toggle the "SideDish Archive" list in the right-hand sidebar of this page – http://my-table.com/sidedish/. I don't know really anything about javascript. Small company, small ...
0
votes
1answer
130 views

How to show posts only for the last subcategory?

I have a hierarchical categories tree, meaning up to 3-4 subcategories with posts. When clicking on a category link in the home page, I am redirected to the category page. I need to check if there ...
0
votes
1answer
158 views

wp_list_categories set order manually?

Is it possible to do this? In the codex the 'orderby' option does not allow manual ordering (only ascending ID, name, count, slug etc). Here is the code: <?php wp_list_categories('include=16,...
0
votes
1answer
260 views

Multiple Dropdown's with Submit Button

I am pulling 2 categories into 2 dropdown lists. When I click submit the URL is showing the filtering but its just loading the homepage. I want the user to be able to select multiple categories and ...
0
votes
1answer
517 views

Custom HTML structure in wp_list_categories

I am trying to accomplish an Ajax navigation for the categories and for that I need the code to look something like: <ul> <li data-level="1">Parent Category</li> <li data-...
0
votes
1answer
350 views

Add Thumbnail to wp_list_categories()

I'm using the following code to display a list of my taxonomy terms in my home page: $customPostTaxonomies = get_object_taxonomies( 'guide' ); if( count( $customPostTaxonomies ) > 0 ) { ...
0
votes
1answer
44 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
331 views

Custom category link in wp_list_categories()

I simply want the link to be /catname instead of /category/catname for all the links listed using the wp_list_categories() function. Any ideas for this?
0
votes
1answer
64 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
145 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
40 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
1answer
258 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). wp_list_categories(...
0
votes
1answer
284 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
106 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
47 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
1answer
202 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 ...
-1
votes
1answer
170 views

How to list out post category name and description in page

I want to display this all categories and description in home page and for each category the division will be like this: Category name ...
-2
votes
1answer
26 views

Listing category and its posts one by one

I want to show all category and its posts as below in a page, for a dynamic website. Please help -category a -post a1 -post a2 -post a3 -category b -post b1 -post b2 -post b3
2
votes
0answers
47 views

Filtering a custom post type by custom taxonomy in archive template

I've seen this question posted in different forms before, but most of those solutions are centered around the admin interface, and I haven't found any answers that apply to the front end. I've got a ...
1
vote
0answers
29 views

Categories as main menu items and subcategories as nested lists

I am new to WordPress and am trying to make my website. Would it be possible to list categories and subcategories as a nested list with links in the main navigation menu. What am i trying to achieve ...
1
vote
0answers
57 views

wp_list_categories

I wonder if anyone could shed some light for me. I have updated wordpress and one of my plugins has stopped working, which is also up to date. I have narrowed it down to exactly what isnt working the ...
1
vote
0answers
241 views

show count is out of the anchor tag in wp_list_categories

I'm using wp_list_categories with 'show_count' enabled on that, i styled my <a> tag, but the category count doesn't show up under anchor tag.(it's under li) $args = array( 'orderby'...
0
votes
0answers
34 views

show subcategories of each category easy digital download

I'm looking for a way to show the subcategories of each category. I have this code that displays all categories, but do not know how to display only subcategories of the category in which one is ...
0
votes
0answers
34 views

Show name of post category, and name of category parrent (if category has parent)

Example: I have category named "Food" and inside that category another category named "Fruit". How to show name of post category, and its parent category (it category has parent category). After ...
0
votes
0answers
67 views

Post not show after select the category from drop down

I show all my categories in dropdown and want to show all the related post from specific category My code is here <li id="categories"> <h2><?php _e( 'Posts by Category' ); ?>&...
0
votes
0answers
14 views

List categories alphabetically in multiple colums with subcategories

I have this code to list categories alphabetically in multiple colums <?php $cats = explode(" ",wp_list_categories('title_li=&echo=0&depth=0&style=list')); $cat_n = count($cats) - 1; ...
0
votes
0answers
25 views

how to get 1 post from current category's sub categories

I want to show a list of current category's subcategories with their latest past in subcategories I have categories like this >> Electronics >> Mobile >> Android ...
0
votes
0answers
21 views

Hierarchy of category and its child categories

I have something like this... I have Subjects-->Groups-->post1, post2, post3... Which means I always have posts in groups ... by using wp_list_cats('sort_column=name&depth=1'); I can get top ...
0
votes
0answers
50 views

List post categories with a custom taxonomy term assigned

I have one custom taxonomy called 'p_type' with 'news' as one of it's terms. All of my posts have one or more categories assigned and a part of them also has 'news' as a custom taxonomy term assigned. ...
0
votes
0answers
188 views

Hide specific categories from category widget

I'm trying to hide a large amount of categories from my category widget. I've tried a few plugins but none of them seem to want to let me use the dropdown option. I looked into the ...
0
votes
0answers
62 views

Problem with wp_list_categories

I use wp_list_categories('echo=true&show_count=1'). Everything works well but there is one thing is that. Show category contains 1 post, but it results count is zero, I click on that category link,...
0
votes
0answers
33 views

Display custom Taxonomies same as listing Categories

I have used CPT UI plugin to create a custom post type and a custom taxonomy to go with it. In a manner as similar to wp_list_categories() as possible, I'd like to list these new custom taxonomies as ...
0
votes
0answers
122 views

wp_list_categories doesn't return 4th level of children

On my website, I have a taxonomy, on each term page of which I list child terms. If there are children, immediate ones (depth=1) are displayed. If there are none of them, nothing is displayed. The ...
0
votes
0answers
166 views

How To Get WordPress Categories Last Update Date?

I am trying to make a custom sitemap for my WordPress blogs categories. For that I added the below code in my functions.php file and save it. Now all things is working fine but I want to get the date ...
0
votes
0answers
48 views

wp_list_category only showing to logged in uers

I am trying to print categories at front end using <?php $args = array( 'show_option_all' => '', 'orderby' => 'name', 'order' => 'ASC', 'style' =&...
0
votes
0answers
75 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: <...
0
votes
0answers
32 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
0answers
56 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
0answers
382 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
0answers
29 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
0answers
35 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
131 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> <...
0
votes
0answers
292 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="#" class="dropdown-...
-1
votes
0answers
21 views

how to get the child categories of products in the spicial style

I work on themes i get and can't know how to redesign the component to get what i need so i get the HTML of the element i need from the Pagebuilder in the theme and i make some search and find this ...