Adding blog title to Page list in menu
-
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 blog I need help with is: (visible only to logged in users)
-
The blog you specified at http://www.colour-blindness.com does not appear to be hosted at WordPress.com.
This support forum is for WordPress.com hosted blogs only. If you have a self-hosted WordPress blog you need to seek help at the WordPress.org forums, not here.
If you don’t understand the difference, you may find this information helpful.
- The topic ‘Adding blog title to Page list in menu’ is closed to new replies.