• Hello all,
    I have a theme options page setup and I’m trying to grab a value (4) and place it into the wp_list_categories. I have done this successfully throughout my theme, but for some reason the list_categories ain’t having it.

    Currently I have:
    <?php wp_list_categories('child_of='.$bluelight->option['project_category'].'&amp;title_li'); ?>

    I’ve also tried double quotes to no avail:
    <?php wp_list_categories('child_of='.$bluelight->option['project_category'].'&amp;title_li'); ?>

    I think I’m 90% there, must just be something small I’m missing. Any help is much appreciated

Viewing 2 replies - 1 through 2 (of 2 total)
  • This should work:

    <?php wp_list_categories(array( 'child_of'=>$bluelight->option['project_category'],'title_li'=>'')); ?>

    I have use the following format:
    <?php wp_list_categories('include='.$variable_name.'&title_li=' ); ?>

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Adding a variable into wp_list_categories’ is closed to new replies.