• Hello,
    I would like to know if there is a filter or hook that I can tap into to change the html that is shown on the amp page.

    I have some custom fields that for text I want on the amp pages but I also use shortcodes to insert youtube videos with schema.org.

    How can I run a do_shortcode and/or change the html to add the text?

    Hope you can help me out.

    Cheers

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Weston Ruter

    (@westonruter)

    You can conditionally override the shortcode when serving AMP. Please share the code you are working with that you want to modify.

    Thread Starter controvi

    (@controvi)

    Well there is just some htnl I want to add to the post_content so it shows up.

    The textual content that I laid out on my page is as follows:

    summary (custom field text)
    Youtube shortcode (custom field text)
    post content (wordpress post_content)

    What I see on the amp page is just the post_content part.

    Plugin Author Weston Ruter

    (@westonruter)

    Sorry, I don’t understand.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘shortcodes and filters’ is closed to new replies.