Pod extension of 'media' type returns empty fields in JSON API #4893
Labels
Component: REST API
Issues related to the Pods REST API endpoints or integration with existing WP REST API endpoints
Status: Need Reproduction
Issue must be reproduced before coding can begin
Type: Bug
Issue Overview
Created a new Pod that is an extension of the 'media' type. Custom fields are returned in the API, but all values are
false
.Expected Behavior
JSON fields populated with values defined in the WordPress interface.
Current Behavior
New fields are being returned in the JSON response, but all values are
false
.Possible Solution
I don't know anything about the internals.
Steps to Reproduce (for bugs)
Media
.Pods Package Export (helpful!)
Related Issues and/or PRs
Todos
WordPress Environment
PHP Version: 7.0.10
MySQL Version: 5.5.56
Server Software: Apache/2.4.27 (Red Hat) PHP/7.0.10
Your User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1 Safari/605.1.15
Session Save Path: /var/opt/rh/rh-php70/lib/php/session
Session Save Path Exists: Yes
Session Save Path Writeable: Yes
Session Max Lifetime: 1440
Opcode Cache:
Apc: No
Memcached: No
OPcache: No
Redis: No
Object Cache:
APC: No
APCu: No
Memcache: No
Memcached: No
Redis: No
WPDB Prefix: wp_
WP Multisite Mode: No
WP Memory Limit: 40M
Pods Network-Wide Activated: No
Pods Install Location: /opt/rh/httpd24/root/var/www/html/wordpress/wp-content/plugins/pods/
Pods Tableless Mode Activated: No
Pods Light Mode Activated: No
Currently Active Theme: Twenty Seventeen
Currently Active Plugins:
Akismet Anti-Spam: 4.0.3
FG Drupal to WordPress: 1.58.0
Pods - Custom Content Types and Fields: 2.7.1
The text was updated successfully, but these errors were encountered: