I need a SQL query to change the sidebar of my posts
-
Hello,
My WordPress site have the ability to create custom sidebars. I have 5 sidebars. I would like to attribute a sidebar ABC to several posts of a category ABC but I have to change them manually. I would like to change the sidebar with a SQL query.
In the custom fields the name of the field is “ABC_right_sidebar” and the value is “sidebar-XYZ”.
Is there a solution to SELECT all the posts of the category ABC AND attribute the sidebar ABC?
- The topic ‘I need a SQL query to change the sidebar of my posts’ is closed to new replies.