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

  • Creator
  • #28995

    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
  • #29002
    Long Nguyen

    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.