Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi, try to use get_the_ID() function instead of $post->ID

    Thread Starter Gabums

    (@gabums)

    Hi!

    Thank you for your suggestion. Unfortunately it still returns the same thing

    $custom_field = get_post_meta(get_the_ID(), $zn_meta_elements['content_main_area']['stb_content'], true);

    I’ve also used other variations of get_the_ID() and tried with different field name and string combinations.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘custom fields and strings’ is closed to new replies.