• Dear support,

    I have a site for which captioned images aren’t being output in the AMP pages.

    I have set up a copy of my website, to which I will send you the credentials so that you can login and have a look for yourself.

    The credentials will be sent to your support email, with a reference to this topic.

    Sincerely,

    Jay

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter Jay

    (@jwbats)

    I’ve sent you the email.

    This version of your software also causes one particular hotlinked Amazon image to appear stretched in the AMP output. Hundreds of other hotlinked Amazon images throughout my site, appear correct.

    A description of this problem has been sent to you in a second email.

    Reference: Aspect ratio incorrect hotlinked images.

    Plugin Contributor ampforwp

    (@ampforwp)

    Hi Jwbats,

    Thank you for sending the e-mail.

    I see that one of our team member’s is working on it.

    Thread Starter Jay

    (@jwbats)

    Thanks for working on it.

    I made a lot of observations and sent those spread across multiple emails. I hope all this info is useful to you!

    Can you reply or update this topic when there are developments?

    Thanks in advance for your help.

    Plugin Contributor ampforwp

    (@ampforwp)

    Hey Jwbats,

    You’re welcome.

    I thank you for sending the detailed information.

    Let me keep you informed that you’ll receive an e-mail with regards to this query from one of our team member’s who are working on it.

    Thread Starter Jay

    (@jwbats)

    I’ve set up a test site for which you’ll have to edit your hosts file in order to make the domain name resolve to the correct IP.

    The details of this have been sent via email. I keep getting a reply from Sameer that he is unable to access the test site I’ve set up especially for you guys.

    Can all of you stick your heads together and find a way to move forward on this issue please?

    Plugin Contributor ampforwp

    (@ampforwp)

    Hi Jwbats,

    Thank you for letting me know about this.

    I had a word with the person who was working on your concern, we will get this taken care of immediately and work rapidly on it.

    Thread Starter Jay

    (@jwbats)

    I am honing in on the captioned image disappearance bug.

    In class-amp-post-template.php there is the class AMP_Post_Template. In this class’s constructor, you are building the AMP page.

    I placed this statement at the end of it:

    echo var_dump($this->data[‘post_amp_content’]);

    This echoes the current amp content to the test page I have set up for Sameer. At this point in the code, the amp output is still correct. The final output misses a captioned image, though.

    The AMP_Post_Template class is called by your components-core.php. So it looks like the bug is somewhere at the top level.

    Unfortunately, my echo statements do not produce output in the components-core.php file, so I am currently unable to continue debugging.

    What’s my best option for producing output from within the components-core.php file, so that I can continue my search?

    • This reply was modified 6 years, 3 months ago by Jay.
    Thread Starter Jay

    (@jwbats)

    I have found the cause of this problem.

    I noticed that it was always the first captioned image that was missing. So I started thinking which setting has to do with the first image in content.

    Turns out it is the ‘Featured Image from The Content’ setting.

    I had it turned on. It didn’t show featured images on my AMP pages, so I had no idea that it was on.

    I turned it off. My captioned images are now correctly appearing in the AMP output.

    Then I also noticed ‘Duplicate Featured Image’, which has as description ‘turn on if you also want to show image in article’. Well, ofcourse I do. Why would I want to not show certain images in my article?

    Can’t believe it took us all this long to find. You guys have detailed knowledge about the settings you’ve created in this software.

    Also… it’s strange that no featured image was shown on my AMP pages, when in fact I did have that option turned on.

    Any chance there’s a setting for that, too?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Captioned Images Not Being Output In AMP Pages’ is closed to new replies.