Altering the URL outputs of wp_list_pages
-
I’ve seen a few fourms/threads on this but nothing has worked for me as of yet.
Basically Im using the current code:
<ul class='internal-menu'> <?php $options = array( 'child_of' => $pageid, 'title_li' => __(''), 'post_status' => 'publish' ); wp_list_pages( $options ); ?> </ul>
To display a side bar menu of all the sub pages of a website I’m working on. I was wondering if there is a way to add an anchor tag to each of the A tags it will out put. In this case I just want to add an anchor tag such as #content so it will bring the user to the top for each page, at the moment if the user has scrolled down and clicks a new page it doesn’t automatically bring them back to the top and it appears as if there is no content.The site uses Ajax for all page loads.
Cheers
- The topic ‘Altering the URL outputs of wp_list_pages’ is closed to new replies.