October 15, 2009 at 12:04 pm #26453
I’m using this code to display a dropdown menu of child pagesCode:
will put the words: ‘Select a Topic’ at the top of of the list…
but I can’t seem to be able to incorporate that bit in my original code..
can someone help me with the syntax?
**Edit I’m doing this in wordpress btwOctober 20, 2009 at 1:35 am #65728
well, I figured it out by taking a different approach… (I had help lol cause I’m still so new at php).Code:< ?php if ($post->post_parent)
$select = wp_dropdown_pages(“sort_column=menu_order&selected=”.$post->ID.”&title_li=&child_of=”.$post->post_parent.”&echo=0″);
$select = wp_dropdown_pages(“title_li=&child_of=”.$post->ID.”&echo=0″);
$replacer = “
$select = preg_replace(“#
?>AuthorPostsViewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.