Showing or hiding content from Instant Articles

Showing or hiding content from Instant Articles

Sometimes you might have content in your WordPress post that you don't wish to appear in the Instant Article version (either because it doesn't transform well or you simply don't want it there). You can use the [wpna hide=''][/wpna] shortcode in your WordPress post to conditionally show content that will either appear only on your site or only in the Instant Article version.

Hide content from Instant Articles

To hide content from the Instant Article version of your post, you can use the shortcode like thus:

[wpna hide='ia']This will NOT be shown in the Instant Article version but WILL appear in the post on your site[/wpna]

Hide content from WordPress

To hide content in your post from the WordPress version on your site and only show it in the Instant Article version you can use the short code like thus:

[wpna hide='wp']This will NOT be shown in the post on your site but WILL appear in the Instant Article version[/wpna]