Support Forum ยป User Profile

Forum Replies Created

Viewing 2 posts - 3,721 through 3,722 (of 3,722 total)
  • Author
    Posts
  • in reply to: Getting object ID #38932
    PeterPeter
    Moderator

    Hello Yasmine,

    Can you please let me know the full scenario in this case? If you use this code

    $term_id = get_queried_object_id();
    $value = rwmb_meta( $my_custom_field_id, ['object_type' => 'term'], $term_id );

    It will work on the archive term page and get the term meta. But you also refer to this code

    $was_interview = get_post_meta( $post->ID, 'summary-made', true );

    which only works on the post page or in the WP Query loop.

    in reply to: Output mb block from code with static data #38931
    PeterPeter
    Moderator

    Hello there,

    Currently, MB Block does not support passing data to a function to render the custom block like that. I will inform the development team to explore the possibility.

Viewing 2 posts - 3,721 through 3,722 (of 3,722 total)