-
AuthorPosts
-
February 18, 2015 at 11:56 pm #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
February 18, 2015 at 11:57 pm #398544I should also say, the new sidebar is an enfold custom sidebar widget.
February 19, 2015 at 11:16 am #398769Hi!
Thank you for using Enfold.
You can find it inside the wp_postmeta table. Look for the “sidebar” meta_key.
Best regards,
IsmaelFebruary 19, 2015 at 11:56 am #398798Thanks 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
February 19, 2015 at 2:26 pm #398911Hey!
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!
IsmaelFebruary 20, 2015 at 3:41 am #399417Thanks 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
DarrylFebruary 23, 2015 at 11:16 am #400517Hi!
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,
IsmaelFebruary 23, 2015 at 11:38 pm #401085OK, thanks for letting me know Ismael, I’ll learn about this method, seems like it will make development much faster. Much appreciated.
cheers
Darryl -
AuthorPosts
- The topic ‘Using database to modify sidebar on multiple pages’ is closed to new replies.