WordPress / press-this

Press This is a little tool that lets you grab bits of the web and create new posts with ease. It will even allow you to choose from images or videos included on the page and use them in your post. Use Press This as a quick and lightweight way to highlight another page on the web.
48 stars 22 forks source link

Add Featured Image Support #7

Open kraftbj opened 6 years ago

kraftbj commented 6 years ago

Originally https://core.trac.wordpress.org/ticket/39956

Featured Image is a nicer datapoint than inserting the image HTML into a post's content.

The media workflow for Featured Image doesn't actually save anything via AJAX, it just returns HTML that gets blobbed into that page, and is then coincidentally associated on save. This works on the Post Edit screen because there is a meta box for the AJAX to interact with. In Press This, there is no target for the HTML, rendering the Featured Image workflow moot.

chazzzzy commented 6 years ago

I can confirm that this is a bug as well. The option to add a featured image is there when using Press This and even picking an image that's already uploaded to the media library results in NO featured image being added.

datdudejibril commented 6 years ago

Was this ever fixed?

kraftbj commented 6 years ago

@datdudejibril This issue will have updates when there has been progress.

datdudejibril commented 6 years ago

@kraftbj No problem I've gotten the image issue fixed.

Gr8Britton commented 5 years ago

I know you said, "This issue will have updates when there has been progress.", but that was quite awhile ago and thought I would just check. Thanks!

Moderndayfreak commented 5 years ago

So...... whats the status on the featured image issue????? Has everyone gave up on this plugin?

flexseth commented 5 years ago

@datdudejibril Do you think you could share your solution for this with the rest of us fine folks who are looking for help? Here's a snippet I'll share: Press This for The Events Calendar (or really any custom post type with minimal modification)

Plugin: Press This for The Events Calendar

sabernhardt commented 3 years ago

There was another Trac ticket about this: https://core.trac.wordpress.org/ticket/40033

RobinEd commented 9 months ago

No fix for the featured image - is everyone using a different plugin then?

flexseth commented 9 months ago

Installed the plugin and bookmarklet for the first time in forever. It allows the option to include an image as the first image of the post, here's a screenshot when I used it on the State of the Word on WP Tavern.

image

There are plugins out there that will attach the first image of a post as the featured image. That's probably the best workaround, here's one of those plugins: https://wordpress.org/plugins/auto-post-thumbnail/

Disclaimer: I have not used this plugin.

For anyone looking to contribute to WordPress, here's a great opportunity! Search the web for the code to pull the first image of the post and auto-add it as featured image ("post thumbnail").

Add that code to this plugin, make sure it meets coding standards, and submit it as a pull request to this repository and you have your first contribution!

That said, the official WordPress plugin repo says it has not been tested with a few major releases of WP - so that's probably a best first step - making sure the plugin is compatible with WordPress 6.x+