uri3000
Forum Replies Created
-
Forum: Plugins
In reply to: [Mortgage Calculator Free] ShortcodeThe shortcode is [mortgagecalculator]
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] img tag not converted to amp-imgYes,
Using the ACF WP plugin.
I have a few custom fields and I created the following template for the post with these fields. This is the template (as you can see, it has tags which are not converted to amp-img):<?php
$introduction = get_field(‘introduction’);if (isset($introduction) && trim($introduction)!=” && trim($introduction)!='<p></p>’) {?>
<div class=”amp-wp-article-content”>
<p><?php echo get_field(‘introduction’); ?></p><div class=’topics-summary’>
<h5>In this article:</h5>-
<?php while( have_rows(‘section_list’) ): the_row(); ?>
- “><?php echo $title ?>
<?php $title = get_sub_field(‘section_title_h2’); ?>
<?php $reftitle = str_replace(” “, “-“, $title); ?><?php endwhile; ?>
</div>
<?php while( have_rows(‘section_list’) ): the_row(); ?>
<?php $linkedpost = get_sub_field(‘section_linked_post’); ?>
<?php $postlink = get_permalink($linkedpost->ID); ?>
<?php $posttitle = get_the_title($linkedpost->ID); ?><?php $title = get_sub_field(‘section_title_h2’); ?>
<?php $reftitle = str_replace(” “, “-“, $title); ?><h2>‘><?php echo $title; ?></h2>
<p><?php echo get_sub_field(‘section_content’); ?></p>
<?php if ($linkedpost != false) { ?>
<div class=’section-read-more’><b>More on </b>“><?php echo $posttitle ?></div>
<?php } ?>
<?php endwhile; ?>
</div>
<?php
}
?>Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] img tag not converted to amp-imgI am not talking about the featured image…. check the regular images on the post.