Check out ACF to REST API – https://github.com/airesvsg/acf-to-rest-api
You can optionally turn on/off which fields you want to enable.
// Enable the option show in rest
add_filter( 'acf/rest_api/field_settings/show_in_rest', '__return_true' );
// Enable the option edit in rest
add_filter( 'acf/rest_api/field_settings/edit_in_rest', '__return_true' );
Related Posts:
- REST API: upload media with advanced custom fields (ACF)
- How does WP media uploader create the 3 different sized images, and how can I duplicate it
- simple solution for restricting access to (some) uploads/downloads
- Saving images from Gravity Forms repeatable File Upload as post attachments [closed]
- How to get all files inserted (but not attached) to a post
- Password protect some uploaded files, so only logged-in users can view them
- Override json encoding in rest api
- WordPress REST Upload Media
- How to check if an image attachment exists before uploading
- Create custom tab in WordPress 5 media upload
- File upload from front-end form (as attachment) not working
- Add suffix to filename of uploaded images
- Check if image exists before uploading with media_sideload_image()
- Add a YouTube or Vimeo video as a post attachment?
- How can I save the original filename to the database?
- How to solve: An error occured in the upload
- Images not being generated at correct size
- How to manage a big collection of files with wordpress?
- How can I store a file in the database in the same way WordPress and ACF do?
- Use the WP media uploader dialog for uploading a form attachment (non-admin). Offering progress and drag and drop feedback
- Update image via WP REST API
- Rename attachment filenames to attachment ID on upload
- What is the way to add additional fields to attachments in 3.5+?
- How to edit attachment with media-upload.php?
- Upload iPhone video clips to blog via native WP app
- How to load attachment in media library for current user?
- In the media Rest API, what is “missing_image_sizes”?
- How does WordPress decides how many sizes of an image to create?
- Upload and attach to a post multiple image files [closed]
- wp_generate_attachment_metadata for non-images files
- How to detect when a file has been uploaded?
- How to add filetype to meta value when using wp_upload_bits?
- Insert attachments from custom uploader into post (regular uploader style)
- PDF Upload from Input Error
- Do custom post type (CPT) attachments/media store the parent post ID?
- Upload Video using wordpress rest api with ionic
- Using unzip_file() to get contents of file
- Images uploaded via Gutenberg image block are cropped
- What is wrong with my wp_insert_attachment code?
- Adding attachment custom field metadata to TinyMCE tag
- Updating the attachment from front end doesn’t show the new change
- How to upload multiple images using WP rest API to media?
- Access featured image URL based on media ID?
- Set attachment category from file name on upload
- “Could not write file” error in wp_upload_bits function
- _d_improd_ directory in uploads breaking site images
- Check if author or uploader id of the attachment(uploaded) image is match?
- Limit attachment caption characters
- controlling whether upload is attached to post or not
- How to force attachment size for every post
- Attachment Metadata not updated while uploading audio files
- Upload file to front-end form and send as email attachment
- Limit number of uploaded attachments of specific context
- How do I protect my uploads?
- How do I update attachment urls after changing site domain
- Upload User Avatar from android to WordPress using Rest API
- Question regarding the file path for media_sideload_image and wp_upload_dir()
- Cannot upload CSV via REST API: ‘Sorry, not allowed to upload this file type.’ but it does work through the WordPress Dashboard
- How to properly move media files and update data?
- Update media item using wordpress rest api in python
- Get Specific Files (Only Specific Extension Type All Files in Loop ) from Media
- How to Upload a media item with alt text and description
- All uploaded files using wp_mail() renamed to tmp_name
- Do something when publish a post in Gutenberg with hook rest_after_insert_post
- WordPress API – sign-up to multiple Multisites from one single form
- How to display the maximum upload size in a WordPress single site?
- How to upload a file and have it available on the post for download?
- How to modify the HTML output of Gutenberg block? (Youtube)
- WP media upload issues
- Update block once an API request returns with a value
- Images not displaying on site or media library
- Manipulate the files uploaded via Gravity Forms before they are stored
- Changing WordPress media location and upload path to sub-domain not working
- Some posts not displaying by taxonomy term
- image not display in media library and thumbnail not display in post
- How to allow .xls file uploads?
- Replicate Media Galley Edit view in Add Media View
- Get post attachment with post id
- Increase .htaccess file upload without prompting error
- wp_handle_upload specified file failed upload test
- Get list of posts from attachment
- Looking for a javascript callback action to re-initiate a custom slideshow in gutenberg
- How to require files in a custom endpoint
- Upload automatically html files
- Front-End Upload media with category
- Where to store sensitive uploaded file?
- Picture upload issue – broken thumbnail
- Attachment metadata has value of ‘1’
- How to manually set an attachment in a post?
- Media Library: Remove replace images of selected author
- How to upload .tex files in wordpress?
- Which WordPress file controls the featured image upload maximum width and height of 3000px
- Custom meta POST request fired twice when updating a post in Gutenberg
- Editor User Role can’t see other users media
- WordPress upload folder stuck in 2017
- How to allow .ged file uploads
- What is the hook to obtain the path and the name of the file that is being uploaded?
- Sanitizing existing media library paths and page links from foreign characters
- wp_delete_attachment doesn’t delete image files / doesn’t work
- Bulk upload images in upload folder does not show in media library