But when i am watching google cached amp pages then ads not showing, example: https://www.google.com/amp/s/www.khushkhabari.in/whey-protein-in-hindi/amp/
Please help me, due to this issue I am losing revenue.
]]>Please Help
AMP: https://gmlyrics.online/king-blessed-you-deserve/?amp
Non AMP: https://gmlyrics.online/king-blessed-you-deserve/
My AMP Website Front Page/ Pages is not showing Comments.
****************page ****************
[ redundant link removed ]
****************Shortcode Function for Embeded Code for infographics****************
add_shortcode('embedimage', 'cynoteck_embed_image');
function cynoteck_embed_image($atts, $content = null) {
global $post;
$link_init = (isset($atts['nolink'])) ? '' : '<a href="'.get_permalink($post->ID).'" target="_blank">';
$link_end = (isset($atts['nolink'])) ? '' : '</a>';
$html = <<<HTML
<textarea id="textarea">{$link_init}<img src="{$atts['img']}" alt="{$atts['title']}" border="0" />{$link_end}</textarea>
HTML;
return $html;
}
****************Shortcode in the content****************
[embedimage img="https://localhost/cynoteck/wp-content/uploads/2019/12/muzammil-soorma-611403-unsplash-940x470.jpg" title="muzammil-soorma"]
****************Output Result****************
<a href="https://cynoteck.com/demo/blog-post/pwa-vs-native-app-comparing-cost-and-long-term-usability/" target="_blank"><amp-img src="https://cynoteck.com/demo/wp-content/uploads/2019/11/PWAvsMobile_infographic.jpg" alt="" width="423" height="496" class="amp-wp-enforced-sizes" layout="intrinsic"><noscript><img src="https://cynoteck.com/demo/wp-content/uploads/2019/11/PWAvsMobile_infographic.jpg" alt="" border="0" width="423" height="496" class=""></noscript></amp-img></a>
****************Output Result We need****************
<a href="https://cynoteck.com/demo/blog-post/pwa-vs-native-app-comparing-cost-and-long-term-usability/" target="_blank"><img src="https://cynoteck.com/demo/wp-content/uploads/2019/11/PWAvsMobile_infographic.jpg" alt="" ><img></a>
Today I checked the amp url and found that it redirects to the non amp page. This problem is happening only on pages except homepage.
So, I request you to fix this asap.
]]>https://howdodo.info/how-to-undo-the-sent-gmail-settings-2019/amp/
Sep 4, 2019
https://howdodo.info/how-to-make-cocktail-mixte-and-spring-cocktail-recipe/amp/
Sep 4, 2019
https://howdodo.info/how-to-answer-objections-to-face-an-interview/amp/
Sep 4, 2019
https://howdodo.info/home/amp/
Sep 4, 2019
https://howdodo.info/solve-huawei-honor-mobile-not-charging-problem/amp/
Sep 4, 2019
https://howdodo.info/how-many-countries-in-the-world-today-country-list/amp/
Sep 4, 2019
https://howdodo.info/how-temperature-effect-to-body/amp/
Sep 4, 2019
https://howdodo.info/home/amp/page/2/
Sep 3, 2019
https://howdodo.info/contact/amp/
Sep 3, 2019
https://howdodo.info/celery-cocktail-iron-cocktail-and-carrot-cocktail/amp/
Sep 3, 2019
https://howdodo.info/how-to-make-a-boomerang-out-of-plywood/amp/
Sep 3, 2019
https://howdodo.info/raw-juice-therapy-for-the-overweight/amp/
Aug 31, 2019
https://howdodo.info/importance-of-business-and-sales-letters/amp/
Aug 31, 2019
https://howdodo.info/how-to-make-a-red-cabbage-cocktail-and-cucumber-cocktail/amp/
Aug 23, 2019
https://howdodo.info/easy-recipe-of-anti-cold-cocktail-party-cocktail/amp/
Aug 14, 2019
https://howdodo.info/how-to-make-a-radish-cocktail-and-watercress-cocktail-recipe/amp/
Aug 14, 2019
I’m trying to get some post_metas in AMP pages, but the thing is that it seems like some of the post_meta isn’t getting to AMP.
When I get all the metadata associated to the post with get_metadata('post', get_the_id());
I can see all the post meta keys and values associated with that post object, for some reason not all the post_metas are listed in the metadata object. I have two post_metas missing and I don’t know why only those two are lose since almost the rest of post metas in the metadata object are also custom post_meta (metaboxes) and they are made with the same logic.
Please any advice is welcome
Here is the line: $metadata = get_metadata('post', get_the_id());