Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save westonruter/1515ce1bae788e6d52d1a94ddd61fb59 to your computer and use it in GitHub Desktop.
Save westonruter/1515ce1bae788e6d52d1a94ddd61fb59 to your computer and use it in GitHub Desktop.
@nicopujol
Copy link

This has been a very handy plugin. One issue with the Genesis framework is that this plugin inserts related posts on Pages for AMP and non-AMP versions. Could you update the plugin to only insert into posts?

@westonruter
Copy link
Author

@nicopujol Try making this change:

- if ( is_amp() && is_singular() ) {
+ if ( is_amp() && is_single() ) {

As a whole, the code here is going to be made part of Jetpack directly, so this plugin here will be obsolete. Please follow: Automattic/jetpack#9556

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment