In my posts I'm using <!--nextpage-->
in order to paginate specific blog posts, which works fine. But my issue is that the featured image shows in the post header for each page.
I've tried using !is_paged
but it's not working and I read that it doesn't work for posts using <!--nextpage-->
The code I'm using:
if (isset($props['featured_in_head'])) {
if ( !is_paged() ){
$props['featured'] = $props['featured_in_head'];
}
}
I've noticed on the sub-pages of this one post that my body has the classes of single-paged-2
or paged-2
, but it doesn't look like it has just the paged class, so if there's a way to hide .featured
via CSS I could just do that
Any help is appreciated