I have a page template that does not work on iOS devices on Safari and Chrome. It just shows a grey, “Can’t open this page” error [like this]).
It works on every other device and OS (Android, Windows, macOS). I tested it on multiple iOS devices and can reproduce the issue. WPEngine support could reproduce it too.
Removing `the_content();` from this code fixes the issue. I tried to use `get_the_content();`. Also tried stripping tags (although they’re just `<p>` tags).
<?php
$loop = new WP_Query( array(
‘post_type’ => ‘member’,
‘posts_per_page’ => -1,
‘post_status’ => array( ‘publish’ ),
‘orderby’=>’menu_order’,
‘order’ => ‘ASC’
)
);
while ( $loop->have_posts() ) : $loop->the_post();
?>
<div>
<h3><?php the_title(); ?></h3>
<?php the_content(); ?>
</div>
<?php
endwhile;
wp_reset_query(); ?>
Does anyone know what might be going on? The CPT uses Gutenberg.
[ad_2]