quick finding a solution for linking get_category_link(get_single_cat(‘ID’))
maybe you have some best one ?!
I searching for multiple category display in the loop right now :)
Thx you for reading me !
I would like to make it with links (linked cat name), It’s possible?
Optionaly can you help with child cat names? (not single)
Thank you so much
(adding display-posts-shortcode categories)
Great plugin. Thanks! I’m happy to make donation to help support this plugin.
very good peace of code :D
as for idea i when i was using your code in my theme i face a situation that i have to show categorys only on parent categorys (not last node of category).so i modify your code a bit to check if current category is a parent category or not.here what i ended up with:
if (is_category() ) :
$this_category = get_category($cat);
//get sub categories of current category
$cat_childs = get_categories(array(‘child_of’=>$this_category->cat_ID));
if (sizeof($cat_childs) > 0) : return true;
hope to be usefull for someone.
Absolutely brilliant. This is the cleanest implementation of a warning box I have ever seen. Very nice.
This is my approach for the same problem
$page = get_page_by_title($title);
$pageID = $page->ID;
$permalink = get_permalink($pageID);
[…] WordPress page number download sitesinden indirmemiz gerekiyor, daha sonra Plugins/ yeni menüsünden eklentimizi […]
Thaks, This tricks is working fine for me!
thanks boss.its really working
Many thanks. It worked straight out of the box. I used it in a Word Press 2012 child theme and it’s fine on PC and tablet. Needs some work for mobile compatibility. Great simple piece of code thanks….
All published comments with recent comments first.