SQL Post Info Replace
-
What is an SQL query to replace HTML in posts when there are 2 variables?
Example:
All website posts have many paragraphs like this:
<h5>
PARAGRAPH TEXT GOES HERE
</h5>I need to replace
<h5>
with
and
</h5>
with
Queries
UPDATE wp_posts SET post_content = REPLACE (post_content, ‘
<h5>’, ‘
‘);
UPDATE wp_posts SET post_content = REPLACE (post_content, ‘</h5>
‘, ‘
‘);
don’t help.
IMPORTANT:
I cannot run separate queries, i.e. one forand then for <h5>.
I need to somehow replace<h5> in one set.
Thank you.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘SQL Post Info Replace’ is closed to new replies.