This WPGraphQL recipe covers how to set up a new field using register_graphql_field()
(function doc) but it doesn’t have any examples on how to pass in image/file fields. If I were doing this for a quick project, I would just output the information I needed without getting too complicated/deep into the API. But as it turns out..
Some good news if you’re looking to make things easier for yourself — work on Pods 2.8 (in beta right now) has enabled more WPGraphQL capability for Pods. I was able to build out an entire Pods Pro WPGraphQL Add-On which allows you to set up GraphQL access for whole Pods as well as all/individual fields in that Pod. I put extra attention into making sure that relationships and file fields are well represented in the GraphQL structure, you should check out the demo video.
Related Posts:
- add_meta_box Callback not being called
- Plugin allowing for artists, events and venues
- how do i remove posts from a WP_Query so the pagination is right?
- Saving Custom Post types and fields to a custom table
- Creating a custom post type, adding custom meta fields, preventing all future editability of posts of this type
- auto populate list of questions if user select a category xyz
- Custom User meta field display
- Redirect to another page using contact form 7? [closed]
- Custom Post Type Fields
- How to Resize the Custom Post Images?
- Amazon.com intergration with WordPress?
- Sticky option for custom post types without using custom fields or plugins
- How do we update a custom file upload field with the Advanced Custom Field plugin?
- Price comparison table based on Custom Post Type?
- Show related posts based of current ACF field name in a single page post (a loop within loop)
- How can I store data from custom fields to custom tables?
- “After file loaded” action
- Dictionary-style definition list plugin
- How to create repeater field manually, without plugin (ACF Pro)?
- WordPress hide post from custom post-type on a single page
- Create multiple posts when a custom post is created
- What method should I use for a sidebar widget that reads latest posts?
- Synch Custom Post Types (and Custom Fields, Cats, etc.) Between WordPress Sites
- How can i do custom author list?
- A plugin for software reviews site like this one?
- Links not opening as they should. Custom WP plugin
- Redesigning Custom Post Type “Add New” page
- Development of a WordPress Search Plugin – Best Practices
- How Do I Use The WordPress Plugin Posts 2 Posts by Scribu?
- Creating a default Custom Post Template that a Theme can override
- Getting Custom Post Type content from main-site of a Multisite
- Custom comment type maybe?
- Twillio How To Send SMS for Custom Post Type
- Enable comments for post with comments meta box removed
- How to create Repeater fields using Advanced Custom Fields?
- How to get images from EDD post?
- Allow users mark posts as “complete”?
- WordPress CMB2 – Run function on save
- Is there a way to order posts and custom post types as one group?
- Duplicate posts when posting nulls in records in phpMyAdmin [closed]
- How I can get custom field’s current value?
- Woocommerce – How to populate custom select field with stored values on checkout page?
- get_post_type() and WP_QUERY issue
- Keep a post copy when this one is updated – issue
- how to add a button next to the wordpress view button?
- How to toggle between two custom fields in WordPress woocommerce ‘WC Product Field Group’ plugin?
- ACF: post query, hide duplicate values [closed]
- How to create multiple editor?
- Adding custom meta boxes to specified custom post type
- How do I make reusable content blocks for header and footer when using WordPress headless with another front-end?
- posts from multiple post types in one slider
- Custom post type change excerpt more and excerpt length
- Order posts of a custom post type by the event date using FT Calendar Plugin
- Creating teams of users in WordPress
- Plugin that lets visitors Like a post (not facebook) and stores likes in custom meta?
- hardcoded wp pages/plugins problems
- Parent Child Custom Fields with Advanced Custom Fields
- grab or load text on demand
- How display specific category post to specific users?
- Advanced Custom Fields Plugin – Images not displaying
- What snippet do I need to type to show my ACF field show up on my theme?
- Is there a way to make [Table Of Content] plugin while not using revision data?
- Need to edit author permissions | custom taxonomy
- Import Recent Posts Only and Ignore old ones if exist
- Is it possible to pin a post in second position from top
- WordPress REST API: Query media files attached to a custom post type
- Save log for imports in WordPress database – options-table, custom post type or other place?
- How to display emails as a post?
- Error in Fetching Custom Post Type parent Category URL (slug)
- How to display the category name in the tab and post inside the tab in WordPress?
- Want to build parent-child relationships between custom post types created with CPT UI
- Add an action based on custom post meta field
- Merging new theme and plugins from development site to production
- Ultimate Members Default Post Layout problem
- Adding Custom Endpoint in WordPress Rest API
- General Term for this form Field
- How do I change the functionality of an image slider which is part of ACF?
- Make custom post types using ACF
- Is it possible to customize a wordpress post from outside dashboard(Something like site.com/post-type/post/?e=post_id)?
- How to pass multiple custom fields as shortcode’s parameters
- Taxonomy question
- Add custom field for users
- Custom Fields as Post Type Options
- Creating a user ‘add custom field’ section
- WordPress Custom post type won’t save properly
- Making a Custom Post Type Publish Loop
- WordPress User Frontend Editing Custom Fields
- ACF: Hide a div or template section when a custom field (in a field group) is empty
- Remove base from the custom post type URL [duplicate]
- How ACF Advanced Custom Field works with Woocommerce Single Product [closed]
- Displaying Random Image from ACF Options Page [closed]
- Make a magic tag work with Custom Post Types
- Need help saving input fields for Security Deposit plugin in WC Vendors page
- Adding a variable to a meta field in the backend?
- Retrieve a post with its ACF repeater fields in wordpress
- Filter custom post type returned from REST api
- Render CMB2 select option to post page [closed]
- Wrong block appender button showing
- Select posts from list and add them in a new list
- Failed to update a post when I add a taxonomy to it