Getting custom field content on Oxygen Builder templates

Support General Getting custom field content on Oxygen Builder templates

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #28995
    OmniOmni
    Participant

    Hi there,

    I'm trying to use a custom field on an Oxygen template and I'm not having much luck. Is there any way to make this work? Things work fine with pages and posts so I'm guessing it has something to do with the way Oxygen sets up templates. I notice echoing get_the_ID in the template gives me nothing either. Any ideas?

    #29002
    Long NguyenLong Nguyen
    Moderator

    Hi Omni,

    Thank you for getting in touch.

    The function get_the_ID() used to get the post ID in the loop. Out of the loop, you may need to use get_queried_object_id() instead of get_the_ID()

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