Forums

problem with wp_list_categories in footer (5 posts)

  1. mhawkins
    Member
    Posted 2 years ago #

    I'm probably overlooking something simple, but I cannot get wp_list_categories to output the categories of my posts in my footer (whether or not I pass any arguments). All I ever get is "No Categories" displayed. When I call it in my header, it works fine. I threw in a "rewind_posts()" call in my footer, but it didn't seem to do anything.

    This is using a custom theme that I built from scratch. Any ideas?

  2. mhawkins
    Member
    Posted 2 years ago #

    Ok - it looks like something is goofy somewhere in my theme. wp_list_bookmarks is not working either. Is there some basic tag or function call I may be overlooking that would cause my footer to act like this? This function also works in my header.php file, but not footer.php.

  3. mhawkins
    Member
    Posted 2 years ago #

    Sorry - I should've put this all in the first post. I turned on debugging and am seeing WP database errors in both places where I'm calling the above functions:

    WordPress database error: [Table 'wp_terms' doesn't exist]...
    (then it shows the SQL statement)

  4. mhawkins
    Member
    Posted 2 years ago #

    My bad - error in my php code within the sidebar. Removing the sidebar got both the functions to work.

  5. GavinHope
    Member
    Posted 1 year ago #

    Hey, when you say error in the php code of the sidebar, what do yo mean?

    I'm trying the basic:
    wp_list_categories

    in a page, and it doesn't work.
    I've got the same call in my sidebar.php and it works there fine.

    I've installed a plugin to allow php execution in articles, and the archive list is working just fine in a page...

    Cheers, Gavin

Topic Closed

This topic has been closed to new replies.

About this Topic