Support

Account

Home Forums General Issues Want Page ID in post_id Field Reply To: Want Page ID in post_id Field

  • @ab_mannan

    I think you’re making things a little more confusing than they are. Lets try simplifying the logic a bit.

    Post a screenshot of the actual custom fields inside the field group, please. That way we can get the correct field names.

    Start off by checking with a simple conditional if the current page_id is equal to your field.

    for example:

    
    <?php $field = get_field('your_field_name') ?>
    <?php if(get_the_ID() == $field): ?>