Create horizontal categories menu in WordPress without CSS

To create a horizontal categories menu separated by ‘ | ‘ in WordPress, use this code.

<?php
echo str_replace('<br />',' | ',
wp_list_categories('style=&echo=0&title_li='));
?>

Related

This entry was posted in WordPress and tagged , , , . Bookmark the permalink.

One Response to Create horizontal categories menu in WordPress without CSS

  1. Frances says:

    After two hours of searching on the web for a simple menu that does exactly what you’ve described…Thank you, thank you. I knew it had to be simple, and I don’t need the CSS.

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>