Skip to content

Using Custom Settings values with Block Bindings? #7505

@jhmonroe

Description

@jhmonroe

Description

  • I setup a simple custom settings page with location and phone_number
  • I try to use the name, id, and field metadata values
  • nothing shows up on front end
  • Is the issue that Custom Settings Pages doesn't have the REST API options that Custom Post Types do?
  • Therefore is it NOT possible to use Custom Settings Pages with the Block Bindings API?

Example template code for block bindings:

{"metadata":{"bindings":{"content":{"source":"pods/bindings-field","args":{"name":"sitewide","id":"168","field":"location"}}}}}

Sitewide it the name of the pod itself
Details is the name of the field group
168 is the ID of the pod
169 is the ID of the field group

Version

3.3.9

Testing Instructions

No response

Screenshots / Screencast

No response

Possible Workaround

No response

Site Health Information

WP 6.9.4

Pods Package

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions