-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can add the "featured-image-by-url" in a post using the rest API? #49
Comments
Marco, you must put urls in metadata, like here: {"name": " your_productname ", All names started with "your" are wildcards for your data. Pay special attention to quotation marks. |
Thanks @fernandogiacomino I used your wocommerce example for a normal post, but the image is not showing up. post = { I've tried also the commented line, but no luck. What's wrong with my code? Thanks in advance |
I found the solution here: https://stackoverflow.com/questions/56743795/wordpress-api-post-meta-field |
Yes, I didn't realize that your query was related to a Wordpress post and not a Woocommerce product. Greetings! |
Hi,
I tried to create a new post using the REST API, but the "featured-image-by-url" doesn't not display.
I tried different endpoint like _knawatfibu_url, featured_image_urls, jetpack_featured_media_url but I had not luck.
I installed also the plugin "Rest API Custom Fields" that used to enable the custom field '_knawatfibu_url' under the 'post' section, but the image did not show up.
Below an example of code I was using.
thanks in advance
The text was updated successfully, but these errors were encountered: