• With this plugin, is there a call you can now make like is_single and is_page? Or no?

    Would be cool if is_amp() becomes an option to display elements strictly for the amp page.

    Cheers
    Ryan

Viewing 3 replies - 1 through 3 (of 3 total)
  • Anonymous User 7842110

    (@anonymized-7842110)

    Yes, this would be very handy for php IF statements etc.

    Thread Starter casbboy

    (@casbboy)

    Hey Jimmy,

    I actually found a solution:

    if ( function_exists( 'is_amp_endpoint' ) && is_amp_endpoint() ) { 
    //code for amp here
    }

    Cheers
    Ryan

    Thank you, Ryan.

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

The topic ‘is_amp()?’ is closed to new replies.