Custom Fields
Re-Envisioned
Support General Getting custom field content on Oxygen Builder templates

  • Creator
    Topic
  • #28995
    Omni
    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?

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #29002
    Long 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 1 replies (of 1 total)
  • You must be logged in to reply to this topic.