How do you add images on PAA sites?

Personally I download a load of niche relevant images from Pexels/Unsplash and randomly assign them to each post. I don't use WP for my PAAs, but you could use this plugin to do the same thing: https://en-gb.wordpress.org/plugins/quick-featured-images/

Look at the 'Set multiple images randomly as featured images' option
 
There are plugins that set this automatically, like WP Automatic. PAA sites are not different

But if you are doing the whole process by yourself, the best way is through API
There are specific endpoints to upload media
https://developer.wordpress.org/rest-api/reference/media/And then after uploaded you pick the result JSON and use it for the post creation (featured image or whatever)

If the image content are within the post_content then you have to set it on the fly.
Generally in the upload step people first start with the image creation, uploading, retrieving all the image urls and finally setting them where they are supposed to be within the content and send the whole post_content to the post.all at once.
 
There are plugins that set this automatically, like WP Automatic. PAA sites are not different

But if you are doing the whole process by yourself, the best way is through API
There are specific endpoints to upload media
https://developer.wordpress.org/rest-api/reference/media/And then after uploaded you pick the result JSON and use it for the post creation (featured image or whatever)

If the image content are within the post_content then you have to set it on the fly.
Generally in the upload step people first start with the image creation, uploading, retrieving all the image urls and finally setting them where they are supposed to be within the content and send the whole post_content to the post.all at once.
That seems too technical but I will take a look.
 
It's not as technical as creating the posts themselves. How are you doing, such currently?
I have a NodeJs script for posting.

I also got a python script for scraping paa which saves it in JSON files.

And nodejs script uploads the JSON file as a post.
 
What do you guys find the advantages of adding images are? Is it purely for the users or it is a Google thing?
 
I have a NodeJs script for posting.

I also got a python script for scraping paa which saves it in JSON files.

And nodejs script uploads the JSON file as a post.

Then you can do a nodejs script to upload the images (image/jpg content type in the URL I sent you) and set the images in the JSON file for the post. Pretty straightforward if you are doing all the heavy lifting with node

What do you guys find the advantages of adding images are? Is it purely for the users or it is a Google thing?

It depends a lot on the query intent focused for such posts. Occasionally, multiple images single-handedly rank a page.
 
I'm running AI to extract the KWs and classify these. The best match is the search string on the unsplash API.
 
Most PAA sites don't even use a featured image
It's just a wall of text with nice formatting
 
Unsplash and Pixabay API combined with the WordPress REST API.
 
Can you explain a little bit so that someone like me can make use of it?

Sure!

So you begin by querying the Unsplash API (documentation here) or Pixabay API (documentation here)

You pass a query to it (your keywords) and retrieve a relevant image.

Once the image passes to your local machine, you can crop/resize it, add text overlays using a python library like Pillow and then pass it WordPress.

You first make a POST request to /wp-json/wp/v2/media endpoint to upload your image to WordPress. You check the response, and parse the media ID.

Then, you update the featured_media field of your relevant post by a POST request to /wp-json/wp/v2/posts/ID - where ID at the end is the ID of your post. This applies a thumbnail to your post, with the media parsed in the first step.
 
Back
Top