Support » Fixing WordPress » How to SQL mass update Gallery Link thumbnail option

  • Does anybody know the exact table and field in SQL in which the Gallery setting “Link thumbnail to” (values: Image File, Attachment Page) is stored? I’d like to do a mass update from Attachment page to Image file using SQL.

    Let me know!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Michiel

    (@michiel)


    Bump… I cannot find where the setting for Link thumbnail to Image File vs Attachment Page is stored in the SQL database…

    The function wp_get_attachment_link has a parameter called $permalink (bool) Link to the attachment page (true) or directly to the attachment file/image (false; default) and this must be stored somewhere…

    Michiel, did you ever find a answer to this? I’m looking to do the same thing.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to SQL mass update Gallery Link thumbnail option’ is closed to new replies.