The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
2answers
72 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 ...
-1
votes
1answer
587 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.'"]'; ...
2
votes
2answers
831 views

Add class to Categories Widget

I have a few default widgets which I am using in a custom sidebar and I'd like to edit its output in my functions.php file. Currently the categories widget and blogrolls are generating an unordered ...
0
votes
1answer
1k views

add filter to wp_list_categories and query if used to list tax-terms?

this is probably a confusing title of my question, but it's exactly what's describing my problem best. I want to add the category-slug as classname to my wp_list_categories() output. I found a really ...
1
vote
1answer
110 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 ...
1
vote
1answer
389 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
47 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
1answer
1k 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
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> ...
0
votes
1answer
1k views

Add filter to wp_dropdown_pages() or wp_dropdown_categories() - no select container?

I'm working with wp_dropdown_pages() and wp_dropdown_categories() and both are always outputting a <select>-box with its <option>s as items. Is it possible to add a filter/hook to this ...