dannybrowne
Forum Replies Created
Viewing 7 replies - 1 through 7 (of 7 total)
-
Forum: Fixing WordPress
In reply to: need help with dynamic menu based on listing categoriesgot it…
function:
function get_parent_category_id($id, $level=0) { $lookfor = "?cat="; $endat = "\""; $separator = "|"; $parent_list = get_category_parents($id, TRUE, $separator, FALSE); $parents = explode($separator, $parent_list); $parents[$level] = substr($parents[$level], strpos($parents[$level], $lookfor) + strlen($lookfor)); $parents[$level] = substr($parents[$level], 0, strpos($parents[$level], $endat)); return $parents[$level]; }pass the category and depth you want to go into the above function.
something like:
<?php wp_list_categories(‘orderby=name&hide_empty=0&title_li=&parent=’.get_parent_category_id(get_query_var(‘cat’), 1)); ?>
Forum: Fixing WordPress
In reply to: need help with dynamic menu based on listing categoriesbump?!
Forum: Plugins
In reply to: cant get fancybox to workbump…
also, where i have
<div class="entry">above it should actually read<div id="entry">regards,
danny.
Forum: Plugins
In reply to: using PHP how to identify if its the last post??thanks man
Forum: Plugins
In reply to: using PHP how to identify if its the last post??sorry,
yeah last post on the page.
regards,
danny.
Forum: Plugins
In reply to: HELP! This shuold be simple (small mod to the image uploader)bump
Forum: Plugins
In reply to: HELP! This shuold be simple (small mod to the image uploader)anyone any idea?
Viewing 7 replies - 1 through 7 (of 7 total)