Home / category / Remove <br /> after wp_list_categories
  • How to Remove <br /> after wp_list_categories

    no thumbnail sorry: Remove <br /> after wp_list_categories

    Adding this PHP code to your wordpress theme will remove the <br /> from wp_list_category().

    ( click code to copy )

    wordpress snippet : PHP

    <>
    <?php $variable = wp_list_categories('child_of=270&style=none&echo=0'); ?>
    <?php $variable = str_replace('<br />', '', $variable); ?>
    <?php echo $variable; ?>
    

    ( WordPress codex functions, hooks, in this snippet. )

    wp_list_categories, wp,
  • Pete

    How would I add a separator?