Support » Plugin: Facebook Instant Articles & Google AMP Pages by PageFrog » Custom fields in AMP Pages

Viewing 3 replies - 1 through 3 (of 3 total)
  • ltacciolilinxs

    (@ltacciolilinxs)

    Hi, any idea about my issue?

    ltacciolilinxs

    (@ltacciolilinxs)

    Hi, I find the solution:
    edit the .php file /admin/partials/pagefrog-amp-template-single.php in the plugin folder.

    In the div with class=”content” add the follow code in the position you want to show your custom field:

    <?php global $post;
        $custom_field = get_post_meta( $post->ID, 'custom_field_name', true );
        echo $custom_field ; ?>
    imigniter

    (@imigniter)

    Nice ltacciolilinxs.
    Have to try this out.
    Thanks for your effort.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.