Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #398542

    Hi Enfold users

    I am currently adding a sidebar widget to 40 pages. This takes a long time using the admin interface. I have searched the database to find where each post has a value for the sidebar they require, but I cannot find it.

    Does anyone know where in the database I can edit the value of sidebar for each post?

    cheers

    Darryl

    #398544

    I should also say, the new sidebar is an enfold custom sidebar widget.

    #398769

    Hi!

    Thank you for using Enfold.

    You can find it inside the wp_postmeta table. Look for the “sidebar” meta_key.

    Best regards,
    Ismael

    #398798

    Thanks for your help with this Ismael. When I edit that field I thought it might list the current pages and potential pages. I don’t know much about these things, but I’ll keep poking around in there and see what I find.

    cheers

    Darryl

    #398911

    Hey!

    I want to suggest database queries but it can mess up the database when done improperly. Change it manually. Open the wp_postmeta table then click search. On the meta_key column, input “sidebar” then click go. It will create a list of all posts with the sidebar meta_key.

    Cheers!
    Ismael

    #399417

    Thanks heaps Ismael, I found which pages are using the particular sidebar. Much appreciated. If it is possible for me to bring up certain pages using the database, and then populate the meta_value with the custom sidebar name, will that then be reflected in the front end of the website?

    That would enable me a much quicker method of adding custom sidebars to multiple pages? If so, I don’t expect you to explain the steps to me, I will go online and learn about it, but please let me know if that is a possible way for me to update pages?

    cheers
    Darryl

    #400517

    Hi!

    If you’re reading this, please don’t follow my last instruction. It is incorrect. Use this instead: http://pastebin.com/Y3tzv8Cm

    This will change the custom widget area to “DAMN” for pages with id 12 and 17. Again, we don’t recommend this if you’re not familiar with database. Create a backup of the database first before doing anything.

    Regards,
    Ismael

    #401085

    OK, thanks for letting me know Ismael, I’ll learn about this method, seems like it will make development much faster. Much appreciated.
    cheers
    Darryl

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Using database to modify sidebar on multiple pages’ is closed to new replies.