Support » Plugin: AMP » Attribute data-shortcode returnig empty

  • Resolved jmjunior

    (@jmjunior)


    Hello folks.

    For some reason, the data-shortcode attribute is returning empty on Instagram embed codes on my transformed pages.

    Somebody know what could be causing this issue?

    Thanks in advance.

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Milind More

    (@milindmore22)

    Hello @jmjunior

    Can you please let us know, how you are adding embeds? also please send us your site health information using this form.

    Additionally, can you please check by disabling HTML modification/optimizations?

    Thread Starter jmjunior

    (@jmjunior)

    Hello @milindmore22

    Thank you for your reply.

    I’m having trouble to reply trought the indicated form because it says that my answer is too big, due to my PHP error log and Site Health Info.

    The embeds are being added in the common way, pasting the Instagram post url direct in the post editor with help of the Embed Plus plugin.

    After a few test, I found that the problem is related to the function create_amp_instagram_and_replace_node that is returning the node_args array data-shortcode value empty.

    Do you suspect what could be causing this issue?

    • This reply was modified 5 months, 3 weeks ago by jmjunior.
    • This reply was modified 5 months, 3 weeks ago by jmjunior.
    • This reply was modified 5 months, 3 weeks ago by jmjunior.
    • This reply was modified 5 months, 3 weeks ago by jmjunior.
    Plugin Support Milind More

    (@milindmore22)

    Hello @jmjunior

    I am not able to reproduce the issues at my end, can you please send us site health info and PHP error log just the create_amp_instagram_and_replace_node error stack ( not full error log) using this form.

    Also, can you include HTML markup of Instagram embed in additional information field (screenshot)

    Thread Starter jmjunior

    (@jmjunior)

    Hello @milindmore22

    Thank you for reply.

    I sent the info trought the indicated form.

    My WP_DEBUG and WP_DEBUG_LOG is both setted true, so there is no registry in the log relacted to create_amp_instagram_and_replace_node function.

    I believe that problem could be with the get_instagram_id_from_url function – that is not populating the %url variable in my case.

    Thread Starter jmjunior

    (@jmjunior)

    I gonna close this topic because I got a better approach of the problem. So I will create other topic most concise to the issue.

    Plugin Author Weston Ruter

    (@westonruter)

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.