WordPress.org

Support

Support » How-To and Troubleshooting » list_cats and file

list_cats and file

  • I’ve searched and have only found old posts. I am trying to list the child categories of one single parent. That’s working. I want to use the “file” parameter but it’s not working.

    <?php list_cats(FALSE, ”, ‘name’,’asc’, ‘booklist.php’, true, false,false, false, false,true, 2, 0, false,”, ”, ”,true); ?>

    As you can see, I want to click on the category and go to the booklist.php page. It’s not working though. Am I missing something? Thanks for the help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Anyone know if the file attribute works?

    The param lits at Template_Tags/list_cats
    says:
    file
    (string) The php file a category link is to be displayed on. Defaults to ‘index.php’.

    For me the keyword is ON. To be displayed on. Doesn’t say anything where to point…

    Moshu. Am I mis-reading it then? What exactly does it do then?

    If I’m using the attribute incorrectly, is there a way for 3 or 4 subcategories to point to one category page and 3/4 other categories to point to another category page?

    Thanks for the help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘list_cats and file’ is closed to new replies.