Support » Plugin: AMP » Internal Links to other Posts going to Non-Amp Posts

  • Resolved chris-slick



    Noticed that the links inside my amp Posts are by default linked to non-amp Posts.

    How can I fix this to keep the user on the amp posts?

    Thanks 🙂

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

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


    I believe you may be referring to “AMP-to-AMP linking”. This feature is enabled by default in Transitional mode, but not in Reader mode.

    If you want to opt-in to the feature in Reader mode, you can do so with this plugin code:

    add_filter( 'amp_to_amp_linking_enabled', '__return_true' );

    We are going to be providing a UI for this in the future.

    Thanks Weston,

    That seems to have done the trick! I believe Transitional mode caused a bit too much headache with theme issues.

    Plugin Author Weston Ruter


    Good. Note that in v2.0 the AMP plugin will allow for entire AMP-compatible themes (e.g. Twenty Twenty) to be used in Reader mode rather than the basic AMP templates that come with the plugin. So that will give you more customization options and include the ability to serve your entire site as AMP in Reader mode (whereas previously it was limited to singular posts and pages).

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