Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have exported all my content to WordPress XML file via WordPress>Tools>Export as I needed to edit 300 posts at a time. Now, my concern is how to re import the file to override the default one? By re-importing the file via WordPress Tools it does only import new posts, so it's not adapted to that particular case without breaking my site/database. I need to find a way to re import the file.

Any suggestion is appreciated.

share|improve this question
    
Have you considered just doing it in a different way? What is your issue with editing in first place? –  Rarst Jan 9 at 16:19
    
Do you mean editing 200 to 300 posts html source code on WordPress dashboard by going to every single post? –  user3001925 Jan 9 at 16:29
    
What are you trying to edit in first place? –  songdogtech Jan 9 at 16:48
    
I mean there are tools for changing data in database, etc. Clearly import/export approach is problematic for your use case, but it's hard to say what would work better without understanding of what your use case is precisely. –  Rarst Jan 9 at 16:57
    
What I need to edit is the source Html code of each post. For example removing the 'text-align: justify' inside the blockquote, correcting some duplicate tags, removing old shortcodes, editing some characters from uppercase to small caps, etc... –  user3001925 Jan 9 at 17:03

1 Answer 1

What do you need to edit and why can't you edit in the WP editor?

Can you use Search RegEx? It's a plugin to search and replace with grep and regular expressions through content.

If you need to develop a regex search string to find certain content, check http://stackoverflow.com/questions/tagged/regex

share|improve this answer
    
I'm changing of template and need to edit the source code for each post to match with the new template. –  user3001925 Jan 9 at 17:04
    
That plugin will edit all posts at once, with grep, if needed. –  songdogtech Jan 9 at 17:09
    
I need to remove text align justify inside all the blockquote + every tag like <i> or <em> and remove the closing tags </p>. It's not just a search/replace process, I'm not sure this plugin will do the trick. Using Notepad++ you can do the job in one click for all the template. –  user3001925 Jan 9 at 17:16
    
Also, need to find a way to remove extra/redundant formatting tags –  user3001925 Jan 9 at 17:26
    
Yes, it will. You can do all that with grep. But grep is not specific to WordPress. Check stackoverflow.com/questions/tagged/regex –  songdogtech Jan 9 at 18:39

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.