WordPress.org

Ready to get started?Download WordPress

Forums

Where are the actual contents of widgets stored? (7 posts)

  1. qforquack
    Member
    Posted 6 years ago #

    Where are widgets stored exactly? I don't see them in the database or widgets.php files at all! I'm trying to help someone edit theirs because they've messed it up and now the admin won't let them click to edit and an error line 44 appears.

  2. MichaelH
    Member
    Posted 6 years ago #

    The info for the default Widgets are kept in the wp_options table with these option_names:
    widget_archives
    widget_calendar
    widget_categories
    widget_meta
    widget_pages
    widget_recent_comments
    widget_recent_entries
    widget_rss
    widget_tag_cloud
    widget_text

  3. qforquack
    Member
    Posted 6 years ago #

    I'm not seeing that in mine.

  4. qforquack
    Member
    Posted 6 years ago #

    *Knock Knock*

  5. MichaelH
    Member
    Posted 6 years ago #

    Change to the WordPress Default 1.6 theme.

    Now drag a Widget into the Sidebar 1 area, and save.

    Look at wp_options for those values.

  6. Chandesh Parekh
    Member
    Posted 6 years ago #

    I'd like to amend the code of one of the Recent Comments widget to display an extra field that I've added to Comments form - where can I do this?
    (I have the form working - just need to know where to find the 'recent comments' widget code to edit)

    Thanx in advance.

  7. Chandesh Parekh
    Member
    Posted 6 years ago #

    Strike my daft question! All default wp widgets are found in wp-includes/widgets.php and can be edited there.

Topic Closed

This topic has been closed to new replies.

About this Topic