Hi @markbailey24,
Thanks for using the plugin.
Yes we can set a featured image. But it should be already uploaded i.e available in the media library.
We need to set the ID of the featured image like below.
---
title: Super RSS Reader v4.4 Release
taxonomy:
category: blog
post_tag:
- release
- super-rss-reader
custom_fields:
_thumbnail_id: 9402
---
https://raw.githubusercontent.com/vaakash/aakash-web/master/blog/super-rss-reader-4-4-release.md
I publish my posts with a featured image following this way.
Thanks,
Aakash
Thanks for that Aakash. How did you ge tthe thumbnail ID? Looking at your website, the feature image is from https://www.aakashweb.com/resources/images/posts/aw-wp-update-ft-img.png. No mention of an ID
Cheers
Hi @markbailey24,
The thumbnail ID is simply the media ID of the image.
Go to Media > Library > Select an image.
In the URL you can find a number which is the media ID.
So you can upload the featured image using the admin dashboard and give its ID in the .md file
Thanks,
Aakash
That worked thanks. Is it also possible to set the date of the post?
Cheers
Mark
Hi @markbailey24,
Sorry for the late reply.
Git it write supports all the parameters as seen in the below page.
https://developer.wordpress.org/reference/functions/wp_insert_post/
To change the date, you can add post_date: 2022-05-23 18:57:33
Hope this is useful.
Thanks,
Aakash