Adding special characters between menu items using WP_LIST_PAGES

This should do the trick,Here i am using Divider(|) between the name,It’s working fine in my client site. You also try to do this one.. this code help for you

$links = wp_list_pages('title_li=&categorize=0&ort_column=ID&include=5,7,9&echo=0');
$pages = explode('</li>', $links); //create array from string returned by wp_list_bookmarks
array_pop($pages); //pop last element off array
echo implode('<span class="divider"> | </span>', $pages);?>

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s