Quote:
Originally Posted by tonyparra
How do this with wordpress? Mass replace post content and links.
|
You are a CyberSEO customer. Am I right? If so, just go to CyberSEO->Tools and find the "PHP Code <?php .. ?>" box. You can use it to modify every existing post (title, content, excerpt). For example, if you want to replace "word1" to "word2" in every post and its excerpt, simple put the following code into the "PHP Code <?php .. ?>" box and click the "Apply" button:
Code:
$post->post_content = str_replace('word1', 'word2', $post->post_content);
$post->post_excerpt = str_replace('word1', 'word2', $post->post_excerpt);
If you want, say, remove "bad_word" for the post tittle, the code will be as simple as this:
Code:
$post->post_title = str_replace('bad_word', '', $post->post_title);
etc