Support » Plugin: Advanced Custom Fields » Inherit custom fields

  • Hi,

    How do I inherit advanced custom fields from a page into a a custom single page template?

    I have tried:
    <img class="page-image" src="<?php the_field('page_image'); ?>" />


    <?php $color = get_post_meta($post->post_parent, 'page_image', true);
    		echo $color;

    the var_dump returns bolean false.

    any ideas?

Viewing 1 replies (of 1 total)
  • I think Im right in saying that the Fields are added to a certain Post Type.

    As Page and your Custom Post Type are two different Post Types, your field will only show on Page.

    Edit the Field and look for the Location box. Add your second Post Type and it should start to show.

Viewing 1 replies (of 1 total)
  • The topic ‘Inherit custom fields’ is closed to new replies.