Changing the loop to display the list of written pages.
I think I understand that you can’t just create a page of custom name and then just hook it into the template hierarchy. So if I can’t do that then I need to change the loop in index.php to be able to distinguish between a link that was clicked.
Instead of displaying a list of our pages in one of the sidebars … I would like to have a pages button (which I got) that when clicked will display the list of our written pages. So my understanding is that I need to modify the loop somehow so that I can distinguish between when the pages button is clicked and then call <?php wp_list_pages(‘title_li=<h2>Pages</h2>’); ?> or something to that effect … Does anyone know how I could do this?
Is this possible … or are there any functions that I can make use of? Or even plugins that anyone knows about?
- The topic ‘Changing the loop to display the list of written pages.’ is closed to new replies.