Skip to content

Commenting

Ryan Kienstra edited this page Apr 3, 2018 · 12 revisions

When using "Native AMP" or "Paired Mode," WordPress commenting will work on AMP-enabled pages (screencast, example page).

Using A Live List

By using add_theme_support( 'amp', array( 'comments_live_list' => 'true' ) ); (documentation), you can prevent a page refresh after making a comment. It will simply appear, using an amp-live-list.

This requires wrapping your theme's wp_list_comments() call in an <amp-live-list>. Here's an example.