• I have added custom fields to my site without any plugins.

    just add this code

    <?php 
     
    	$my_book_title = get_post_meta( get_the_ID(), 'book_title', true);
    	if( ! empty( $my_book_title ) ) {
    		echo '' . $my_book_title . '';
    	}
     
    ?

    But how can this field seen in AMP Vision of my site?

    Please help me.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Yusup Ali

    (@fileour)

    I have added the above code in single.php which is displayed in the header of the post.

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Can you please let us know what is your use case and what you are trying to achieve? So that we will have a look and let you know back.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom field show on AMP version’ is closed to new replies.