WordPress.org

Ready to get started?Download WordPress

Forums

SELECT cat_id, cat_name FROM error (4 posts)

  1. kidsklubs
    Member
    Posted 7 years ago #

    Hi there,

    My wordpress site is located here:
    http://www.kidsklubs.com.au/news

    The error message that I am receiving is:

    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1]

    SELECT cat_id, cat_name FROM

    The error message appears in the blogroll section and I have no idea why it is there, or how to change it.

  2. MichaelH
    Member
    Posted 7 years ago #

    You likely need to change your sidebar.php to use the template tag, wp_list_bookmarks().

  3. kidsklubs
    Member
    Posted 7 years ago #

    how would i go about doing that?

  4. MichaelH
    Member
    Posted 7 years ago #

    If the author of your theme has not updated the theme to be compatible with Version 2.2 (actually this change happened at 2.1) then you need to edit your theme's sidebar.php template file and replace the obsolete template tag (probably something like get_linksbyname) with the new and improved wp_list_bookmarks.

    See:
    Editing Files
    Stepping into Templates
    Stepping into Template Tags
    Template Hierarchy.

    If you have more questions, please provide us a link to your theme (e.g. link to the theme on the theme author's site)

Topic Closed

This topic has been closed to new replies.

About this Topic