• Helo friends

    There are some categories on my homepage that I use for the lead picture and some videos. When I exclude them with plugin it also removes the posts related to category.

    But I just want to remove the name of the category

    how am I gonna do that ?

    thanks all

Viewing 3 replies - 1 through 3 (of 3 total)
  • use exlude arguments in the list_categories inside your template.
    <?php wp_list_categories('exclude=X,Y,Z'); ?>
    where X,Y,Z are your categories,
    for example :

    <?php wp_list_categories('exclude=2,4,6,12'); ?>

    Thread Starter cucelo

    (@cucelo)

    ok krembo thanks, Ill try and tell you ab it

    Thread Starter cucelo

    (@cucelo)

    hello krembo
    I did it like the following and tried some other ways but couldnt manage it, can you help me some more please

    function wp_list_categories($args = ”) {
    $defaults = array(
    ‘show_option_all’ => ”, ‘orderby’ => ‘name’,
    ‘order’ => ‘ASC’, ‘show_last_update’ => 0,
    ‘style’ => ‘list’, ‘show_count’ => 0,
    ‘hide_empty’ => 1, ‘use_desc_for_title’ => 1,
    ‘child_of’ => 0, ‘feed’ => ”, ‘feed_type’ => ”,
    ‘feed_image’ => ”, ‘exclude’ => ”, ‘current_category’ => 0,
    ‘hierarchical’ => true, ‘title_li’ => __(‘Categories’),
    ‘echo’ => 1, ‘depth’ => 0
    <?php wp_list_categories(‘exclude=9’); ?>
    );

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Category Exclude Problem’ is closed to new replies.