Inserting current_page class out of query post
-
Would it be possible to indicate what page you are in just like the function of wp_list_pages that inserts the current_page class? I am using a query posts to create like menu and I want my visitors to know where they are on the page. Below is my code in creating menu out of query post
<?php rewind_posts(); ?> <?php query_posts('category_name=front-desk&posts_per_page=7&offset=7&orderby=title&order=ASC'); ?> <?php while ( have_posts() ) : the_post(); ?> <?php the_title('<li><a href="' . get_permalink() . '" title="' . the_title_attribute('echo=0') . '" rel="bookmark">', '</a></li>'); ?> <?php endwhile; ?>
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Inserting current_page class out of query post’ is closed to new replies.