• Hello !

    Short version : please, would you know how to make a wordpress blog re-open every of its posts, and save them again ?

    Long version :I’m rejuvenating an 8-years old blog, created long before wordpress offered to nicely manage image attachements in a library, long before themes offered to handle an image as the official featured image, and manage different image sizes and thumbnails for that featured image.

    Since the very beginning, my posts in that blog have been starting with an image. My method hasn’t changed, I upload an image to the internet, and embed it into the post with the Control-Shift-M keyboard shortcut, that became “add media > insert from URL” in the current branch of WordPress.
    The final code looks like this :
    <p style="align-center;"><img src="https://inter.net/folder/image.jpg" alt="text for google" title="human-readable hover text" /></p>

    … That is so 2006, right ? (But, hey, it works !)
    And that is so broken with modern themes, which is why I come here to ask for help ??

    I’m updating this blog to the Hueman theme, and this theme makes use of post images, with varied image sizes.

    By default, the images I place on the top of the blog posts are NOT loaded as thumbnail/post image/post thumbnail for mobile display. The posts appear as if they don’t have an official image.

    However, if I open a blog post and update it, then Hueman (or is it default “Good Guy WordPress” ?) will make the image currently on top of my post “the” post’s image, with all other image dimensions and thumbnails accepted, and shown.

    And so (sorry for the long introduction, but I wanted to avoid misunderstandings) I’m coming here to ask : please, would you know if there is a way to forcefully make wordpress open all the blog posts, and save them again ? This way, their image will become considered as the post’s featured image.

    Sure, I could do it by hand, but in the optimistic hypothesis of me being able to update 20 posts per minute, it would still require me to spend 14 days on it, without sleeping or eating : that’s an old blog with many posts ??
    I saw plugins to regenerate thumbnails, but I’m afraid they’re irrelevant here, since there are no featured images to speak of, it’s precisely all about updating a post so that its first big image is considered as a featured image.

    Sorry for the wall of text, but hopefully, this way, it will have provided every required piece of information.
    If you can help, really, thank you !! ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    You can try bulk edit and update, so you will not open each post, just select all posts. Probably you have to do some change there, not sure about that. If yes, temporary change author or whatever and then you can put it back.

    You can set higher number of posts per screen on the same page with ”screen options” up

    Thread Starter Sabinooo

    (@sabinooo)

    Hello Peter,

    Thanks for your suggestion ! I’m grateful ??

    However, it didn’t work, for batch-updating posts consists in sending a one-URL very long query to the server, so long that this query will be blocked.

    For instance, updating a list of 100 posts generates a 2066 characters long URL.
    Blocked by server, and almost blocked by registrar anyway.

    With 8751 posts and counting, batches of less than 100 posts is mostly unrealistic, sadly.

    Would you, or other kind souls, have other ideas, maybe ?
    Thank you !!

    This scenario is typically where a sysadmin or developer would create a database upgrade script to address the issue, I’m not sure you are going to find a plugin or feature that will do this for you. And even if you did find something i’m not sure I would even recommend it, considering the sheer quantity of data at stake. Whatever you do, I would back up your DB right now before attempting anything.

    Btw. if you need change all code for images and all are in the same format, you can try this plugin
    https://www.ads-software.com/plugins/better-search-replace/

    You will be able to replace one text in database with another.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to force-update all my posts ?’ is closed to new replies.