Support » Developing with WordPress » Fetch meta values of Custom Post

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Steve Stern (sterndata)

    (@sterndata)

    Forum Moderator & Support Team Rep

    It appears that you’re asking for meta associated with the key “task”. Is that the correct key?

    What keys are really there? Use an empty key string to see what’s really in the post meta.

    $key
    (string) (Optional) The meta key to retrieve. By default, returns data for all keys.

    Default value: ”

    Thread Starter mabufoysal

    (@mabufoysal)

    Thanks @sterndata . I am learning WordPress Development. I am not sure is that the correct key. Thanks.

    Vijay Hardaha

    (@vijayhardaha)

    You can read about the function here. https://developer.wordpress.org/reference/functions/get_post_meta/

    it accepts 3 params, the first is the post id, the second is the meta key and 3rd is for single and multiple values, in most cases, 3rd value will be true.

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