Using blogtitle() in wp_list_pages as title_li
-
Hi all,
I use wordpress to run a niche website i made, i use pages not posts for various reasons. My left menu prints out all pages, using wp_list_pages(), i specify a variable title_li in that function call. As follows:
<?php wp_list_pages(‘title_li=<h2>Color Blindness</h2>’ ); ?>
This of course outputs correctly, as follows in the html source output:
<div id=”sidebar_left”><li class=”pagenav”><h2>Color Blindness</h2>
<?php wp_list_pages(“title_li=<h2>” . bloginfo(‘name’) . “</h2>” ); ?>This outputs the blog name BEFORE the source its enclosed in:
<div id=”sidebar_left”>Color Blindness<li class=”pagenav”><h2></h2>
Can anyone explain why, and how to get the latter to output its return value where it should? I want to recycle the theme on a new site and like to fix any manual things in the theme like this as i find/realise:)Charles
- The topic ‘Using blogtitle() in wp_list_pages as title_li’ is closed to new replies.