• I’m using wp_list_categories template tag.

    But i want to list only 3 sub-categories and after then write “Other”.

    How can i do it?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Find where the function exists in the WordPress structure. Copy the entire function to your functions.php file in your theme, making sure to rename the function (i.e. custom_list_categories). Modify it to operate as you’ve described, and use the function in your template where you’ve used wp_list_categories, replace it with a call to your new custom_list_categories.

    This is how I normally modify the current functionality of certain aspects of WordPress when I need to alter how it works by default.

    Good luck.

    Thread Starter sakarya

    (@sakarya)

    I realy need luck.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wp_list_categories Hack’ is closed to new replies.