DISCLAIMER: this post is older than one year and may not be up to date with latest WordPress version.

The wp_list_pages fnction is very useful, but sometimes it can be a bit frustrating, for exemple when you want to insert characters as such as “//” between menu items. Happilly, here is the solution to this problem.

To apply this hack, simply paste the following code where you want your menu to be displayed.

$char = ' \\ '; 

Found on WordPress Codex.

By the way if you’re a WordPress blogger interrested in finance and investment, you should definitely read this post I wrote yesterday on cats Who Code.

Leave a Comment

Your email address will not be published. Required fields are marked *