All the content added in the “Custom AMP editor” will be saved in post meta.
If you want to fetch the data from Custom AMP editor then use below the function
get_post_meta() is a function and in that we’re passing 3 parameter
If you want to know more about get post meta then you can check this official documentation
https://developer.wordpress.org/reference/functions/get_post_meta/
get_post_meta( int $post_id, string $key = '', bool $single = false )
get_post_meta(ampforwp_get_the_ID,’ampforwp_custom_content_editor’, true ) ;
This is the example of Code
$data = get_post_meta(ampforwp_get_the_ID,'ampforwp_custom_content_editor', true );
if($data){
echo $data;
}That’s it for this tutorial!
We hope it helped you. If you have any feedback or questions, then please share them in the comments section below..
If you want to add an AWeber form in AMP then first you need to…
Webpushr is the fastest growing web push notifications platform that marketers love & developers rely…
Follow these steps to add Adobe Analytics in AMP Step 1: Go to WordPress Admin Area -> AMP…
Core Web Vitals are the subset of Web Vitals that apply to all web pages,…
The following reasons can be shown for non-indexing. Server error (5xx) Your server returned a 500-level…
We have added the Google Analytics 4 ( GA 4 ) integration in AMPforWP v1.0.80.…