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
- Use a separate custom table (not posts) to handle file upload data
- Custom upload directory per CPT; when removed, file not deleted
- Modify featured image path to Amazon S3
- How to set an upload directory for each media type?
- Get loading state of wp data selector
- How to protect uploads in multisite if user is not logged in?
- Remove upload_files capability from a role but allow role to manage an avatar image
- Automatically wrap post image in div
- 3.5 media manager add CSS / JS to new ‘tab’ iframe content
- Filter post_content before loading in Gutenberg editor
- post_id missing from the wp-admin file upload request
- Image uploading stuck on “crunching”
- Get attachments by user
- “upload_mimes” filter not working. Need to allow WOFF and WOFF2
- Using Gutenberg parse_blocks Function With ACF Custom Blocks?
- Placing assets for external use
- Email Attachment from Form Submit
- Extra “uploads” added in path
- Attach media to post by media category
- How to add/edit advanced custom fields on custom post type’s WordPress REST API?
- How to get the Gallery form/section just like in Gutenberg block?
- upload_max_filesize is set to 64 MB already but WordPress is still showing 2 MB
- How do I get the site url from a Block (within the block editor)
- Uploading PDF files from the front-end
- Custom Endpoint API based on attribute gutenberg block
- JSON – Create rest api endpoint for Advanced Custom Fields
- Uploads going to the root of wp-content/uploads
- WordPress Images, Header Videos and Carousel is not working live but perfect on Local Host Is It FTP? Filezilla?
- Can’t upload images (incorrect “file exceeds upload_max_filesize” error)
- Theoretical limit of upload file size [duplicate]
- All my files are on my blog! I need sync solution
- media file uploading
- Editor User Role can’t see other users media
- How to allow .ged file uploads
- Media files not loading
- What folder to place Large Video files?
- uploading photos
- Add frontend editor with media buttons for Visitors and display only their media
- WordPress Custom Fonts Problem! [closed]
- I want to customize wp.media (the wordpress admin uploader) in order to change the file name but only in video custom post type