Forums

How to automatically update ALL posts? (9 posts)

  1. MasterBen
    Member
    Posted 4 months ago #

    I needed to search and replace ALL occurrences of a specific word in all the posts (e.g. "white") and replace it with another word (e.g. "blue").

    This was accomplished pretty easily with the plugin called Search-Regex, which is available on the wordpress site as well.

    However, although the words "white" is now replaced with the word "blue" this does not manifest on the WP front end until I manually click edit every single post and click "update".

    It looks as if WP now uses some kind of cashed versions of the posts and never checks what is in the database. (please note: although I use WP Super Cache for cashing, it is now deactivated and doesn't influence this operation).

    Is there a way to automatically update ALL posts in one go so that my search and replace gets done quickly? I have over 1000 posts and updating every single one of them manually is going to be pretty exhausting.

    Thanks.

  2. MasterBen
    Member
    Posted 4 months ago #

    I see I made some grammatical mistakes that could blur the meaning of my question. So, here is the corrected version:

    However, although all the occurrences of the word "white" are now replaced with the word "blue" in the posts in the WP database, this does not reflect on the WP front end (the blog itself which my surfers can read) until I manually click edit on every single post and then click "update" (from the WP admin area).

    Can this process of "updating" the posts be automated so that I don't have to go and edit and then update every single post? I have more than 1000 posts.

  3. Frank Bültge
    Member
    Posted 4 months ago #

    yes, you can replace strings, like "white" to "blue" with the plugin Search & Replace

  4. MasterBen
    Member
    Posted 4 months ago #

    Frank, thanks for the reply but that is not what I asked.

    Read my second post - even when those words are replaced in the WP database WordPress still generates the posts using the old word "white". In other words, my surfers still see only "white" and that remains until I click EDIT Post and then Update (without actually making any modifications - the text inside the post has already been changed by Search-Regex plugin).

    I need to know if there is a way to do this "editing and updating" of all posts automatically.

  5. mcbain7484
    Member
    Posted 3 months ago #

    I'm having the same problem, did you ever find a solution?

  6. MasterBen
    Member
    Posted 3 months ago #

    As far as I can see, if you wait one day or so, the posts get updated by themselves.

  7. mcbain7484
    Member
    Posted 3 months ago #

    Thanks! I'll wait and see what happens.

  8. MAIK72
    Member
    Posted 2 months ago #

    Try this
    I havent tested yet but it looks promising

    Im using http://wordpress.org/extend/plugins/text-obfuscator/ and i think it works if you mass update published posts

    As far for ''search regex'' i used it without any problem , without updating each post idividually , just from plugins control page with one click when i had to remove one paragraph from posts.

    In worst case scenario you could build youre own function

  9. Leesureman
    Member
    Posted 3 weeks ago #

    My campaigns that I have running are not updating as set for time and date automatically. I find that I have to manually repost each item whether it be you tube rss or article. What happen to it updating automatically.

Reply

You must log in to post.

About this Topic