callback function example

Support General callback function example

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #46152
    FizzPop MediaFizzPop Media
    Participant

    I have a CPT field group Properties with a select field Community where the editor needs to choose from an existing list of Communities.

    I also have a separate CPT field group for Communities and would like to use a callback function to extract the list of entries and make those the available options for the Community select field above.

    Can you provide an example of the function I would need to write for this?

    #46154
    PeterPeter
    Moderator

    Hello,

    You can use the post field which supports showing a list of entries of a CPT. Please follow the documentation https://docs.metabox.io/fields/post/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.