• Greetings,

    I am trying to implement AMP for my client and he is actually using wptouch for his mobile website version.

    The idea is to implement AMP for only one category but when I select the category to hide AMP I get a “too many redirects” error.

    Is there any hook that I can disable AMP entire for when I am not current show a specify category?

    Regards!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Actually, the WP Touch is trying to redirect the people automatically on their version on the mobile.

    Do you have the Mobile redirection enabled in AMP? The issue might occur in this case.

    Please check and let me know

    Thread Starter José Leonardo

    (@joseleonardo)

    Hi, thank you for the quickly reply.

    I’ve tried what you suggested, the conflict was solved but now all categories are being display as WPTouch version.

    It is not redirecting to AMP anymore.

    I am using a Chrome extersion which detects if the page has an AMP version, and it is detecting AMP fine.

    Is there any hook which I can use to “force” go to AMP version for the category(ies) I want to?

    Best Regards!

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    If you want to use Mobile redirection, then why use the WP touch in the first place?

    Thread Starter José Leonardo

    (@joseleonardo)

    It worked, thanks!

    But I found a bug when using more than one category.

    It is not changing the meta post from default to hide-amp and hide-amp to default when we save the post only on the second time.we save it.

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Can you please elaborate a little more on that issue? So that I can understand and help you well?

    Thread Starter José Leonardo

    (@joseleonardo)

    I have some posts published on my website and most of them are included in more than one category.

    As long as, this plugin only works with “exclude category” I had to exclude all my categories except one of them because I want one only category to show AMP.

    Doing that I noticed when I unselect other categories and select the one I want to show AMP the meta post value “ampforwp-amp-on-off” is not changing on the first post save, it works only if I save it twice.

    Not sure if I was clear enough but I can give you any further information you want to…

    Thread Starter José Leonardo

    (@joseleonardo)

    Another question, how can I unhook some hooks only when AMP is showing? I want to disable a plugin Ads which is showing a non-amp Ads on the content.

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Jose, can you please give me some information on the “ampforwp-amp-on-off” ?

    To “unhook some hooks only”, you can try the AMP plugin manager or try to do the same thing which we did in the code: https://github.com/ahmedkaludi/accelerated-mobile-pages/blob/master/includes/features/functions.php#L9

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Amp4Wp + WpTouch’ is closed to new replies.