user3550879
user3550879

Reputation: 3469

removing 'categories' title from list

I have the following code which creates a list with all my categories and an 'all posts'. However it also outputs a 'category' on top of the list. I would like to remove that, and just have the list items.

HTML

<?php
  $args = array(
  'show_option_all' => 'All posts'
  );
?>

<h3><?php wp_list_categories($args); ?></h3>

OUTPUT

enter image description here

Upvotes: 2

Views: 310

Answers (1)

m4n0
m4n0

Reputation: 32255

Set the title_li argument value to empty string. Refer the WordPress Codex

<?php
  $args = array(
    'show_option_all' => 'All posts',
    'title_li' => ''
  );
?>

Upvotes: 2

Related Questions