Forums

Can wp_list_categories work in page at the same time as the sidebar? (4 posts)

  1. GavinHope
    Member
    Posted 1 year ago #

    Hi there,

    is there any reason why a full, unfiltered call to list categories would return absolutely nothing in a page, if it's working in the sidebar at the same time?

    Is there anyway I can debug this?

    Cheers, Gavin

  2. MichaelH
    Volunteer
    Posted 1 year ago #

    Should work okay in a page template, or a page's content if a PHP exec type plugin is used.

    To debug, deactivate all plugins. If that doesn't solve it, switch to the WordPress Default theme. Create a Page Template that contains the wp_list_categories code, then write a page and assign that template to the page.

  3. curtisservices
    Member
    Posted 1 year ago #

    I read this (http://codex.wordpress.org/Template_Tags/query_posts#Category_Parameters) and it makes sense, BUT my problem is that I need this page to be password protected. If I do this OR make the page a post page, it doesn't ask for a password. Any suggestions???

  4. lmgraphix
    Member
    Posted 1 year ago #

    I am having the same problem. I changed the theme, per suggestion and wp_list_categories works fine. So, I uploaded an older version of the theme from when I know it worked, but it still doesn't work. To help me find the problem, can anyone tell me what template the form goes to. I think it's search.php, but I have changed this and still I get nothing. I hope someone can give me a clue

Topic Closed

This topic has been closed to new replies.

About this Topic