The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
41 views

Display post list within category list sorted by name [duplicate]

I'm trying to display a list of categories sorted by name and all posts of each category inside it. Like this: Category A Post B Post F Post Z Category B Post A Post C Post G Category C Post D ...
0
votes
1answer
53 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
2answers
54 views

list all categories that have a certain word in title

How to list all the categories that have a certain word in title - first word of the category? in category.php so, for example, if I am viewing the category "Green Apples Sells", it will list all the ...
0
votes
0answers
19 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
26 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
1answer
16 views

Get images by category

My current way of getting the images for sliders is by using the following code that works perfectly: $args = array( 'post_type' => 'attachment', 'sort_order' => 'ASC', ...
0
votes
1answer
70 views

Category Page Custom Layout [closed]

I'm beginner in wordpress. I want to modify category page layout from this : into this : I'm using The7 theme. I have read this Category Templates, but still don't know how to. I have create ...
0
votes
0answers
50 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
1answer
92 views

Category Template for Custom Post Type

I'm driving myself crazy with the following issue, hope you can help me! I'm working on a WordPress theme for a business directory so I decided to make some custom posts types on functions.php file ...
0
votes
0answers
78 views

custom function for wp_list_categories

I need to write a custom function for wp_list_categories so instead of displaying a hierarchical list of links they are instead a list of checkboxes with the parent terms being displayed as h3 tags. ...
-1
votes
2answers
178 views

How to show WordPress Parent and child category different PAge?

I am currently trying to do a directory style site, and I currently have parent categories and child categories. Right now I have the parent categories showing and when you click on the parent it ...
0
votes
0answers
14 views

How to convert this snippet to taxonomies instead of categories

How would I change this snippet of code so that it outputs a list of the child taxonomies from the current custom parent taxonomy rather than categories. This will be outside the loop in taxonomy.php ...
0
votes
1answer
159 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 ...
0
votes
1answer
131 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
0answers
31 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
1answer
124 views

Category with description and thumbnail

I am using the below codes to show all Parent Terms from a custom taxonomy with title and link on a page. But I want to show the parent term description, thumbnail and post count in it too. So how I ...
0
votes
0answers
120 views

Limit wp_list_categories to show categories of curently logged in user

I am trying to figure it out, how to force wp_list_categories, to show categories, which have posts assigned to them but for currently logged in user. Right now this function shows all (other user's ...
0
votes
0answers
14 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
58 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
0answers
34 views

Adding Class and div id to wp_list_categories

I am trying to create a dropdown menu for wp header with categories and children as dropdown but cant find a solution, trying to get somethink like this <li class="Main-Cat"> <a href="Link ...
0
votes
1answer
146 views

How to show subcategories using loop?

i am using wp_list_categories('child_of=54&title_li=') method to display all the subcategories, but it is showing only one, how can i use it with loop to show all the subcategories properly.
0
votes
1answer
297 views

“show option all” on list categories doesn't display taxonomy

I have a wp_list_categories list set to display my custom taxonomy. Everything works fine, and now I want to add a show_option_all link. However, when the link is clicked it displays all default ...
0
votes
1answer
27 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
1answer
177 views

Display current category without an active link in wp_list_categories

I appreciate your time in looking into this for me. I'm using wp_list_categories tag to display a list of categories in my navigation menu and I'd like to disable the link to the current category ...
0
votes
1answer
79 views

Three Column Loop

I have a theme that creates two columns of categories with child posts from that category. I've tried messing with the code that inserts the after two posts are listed, but it's not working (because ...
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
77 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 = ...
1
vote
1answer
58 views

Strip a word from wp_list_categories

With the following code I am showing a list of sub categories: <ul class="subcats-blog"> <?php if ( is_category() ) { $current_cat = get_query_var('cat'); ...
0
votes
1answer
81 views

Modify text after post count

On my Archives page, I list categories with post counts. I've modified the post count by removing the parentheses, wrapping them in a span that floats them to the right, and putting the word "Entries" ...
0
votes
2answers
91 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
0answers
37 views

how to get wordpress categories list with thumbnails?

i am trying to get thumbnails list with their thumbnails images .i tried code below but it only gives categories list . i know there a could do using feed_image but i can't figure out how to do it ...
1
vote
1answer
90 views

Insert HTML inside link in a walker

I've got a custom nav walker that (theoretically) pulls the featured image from the most recent post in a custom taxonomy, and displays the the image after the link in a wp_list_categories. The ...
0
votes
2answers
193 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
303 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
30 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
0answers
128 views

walker_category doesn't walk?

I'm trying to use the walker_category class in order to modify the HTML output of the wp_list_categories for several custom taxonomies, but the walker doesn't seem to 'work the tree'. Here is my ...
0
votes
1answer
37 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
36 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
1answer
102 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
0answers
70 views

Change permalink from wp_list_categories

UPDATE: This helped me: $cat_name = 'onde-encontrar'; $category = get_category_by_slug( $cat_name ); $taxonomies = array( 'category' ); $args = array( 'parent' => $category->term_id ); $terms ...
0
votes
0answers
25 views

pad_count with custom taxonomies and attachment post type

I use hierarchical custom taxonomies with attachment post types, and am trying to display a hierarchical terms list with the pad_counts argument set to 1 but children counts are not added to parent's. ...
0
votes
1answer
93 views

wp_list_categories() with attachment post types

I'm working on a pictures gallery, where there is no 'regular' post, only images with several custom taxonomies, some of them being hierarchical. I use wp_list_categories() to display hierarchical ...
-1
votes
2answers
86 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 ...
1
vote
1answer
109 views

List all blog categories

I have created a blog plugin. I have the blog category in my blog. I would like to get the list of all the blog categories and list it in my www.domain.com/blogs/ page. My blog category name is ...
1
vote
0answers
113 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( ...
0
votes
1answer
64 views

Get whole <li> linked with wp_list_pages

I'm using wp_list_pages for my sidebar and it works fine to me, i just wanna add new feature which seems is not listed on codex or i don't know how to use it. $args = array( 'child_of' => ...
0
votes
0answers
64 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
352 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
29 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
252 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 ...