How to correct preview of records for different pages?

There are records which contain photos. These records are published on two pages "Photo" and "news". Includes photos using the plugin NextGEN Gallery. This plugin displays at 10 photos from the gallery and pagination for browsing.

Dear experts, please help me to solve the problem. How to make preview entries pagination was not, and when I press "View all photos" and go to the post detail page, the pagination appeared. And on the "news" page to make the gallery thumbs do not display.

Tried to solve the problem using regular expressions, and hook the_content(code pasted in functions.php the child theme):
remove_pagination_ngallery function() {
 $tag = "div";
 $attr = "class";
 $value = "ngg-navigation";
 $tag_with_pag = "/<(".$tag.")[^>]*$attr\s*=\s*"."(['\"])$value\\2[^>]*>(.*)<\/\\1>/";
 str_replace($tag_with_pag, ", $content); 

 return $content;

add_filter( 'the_content', 'remove_pagination_ngallery' );

As a result, records are generally completely erased (I tried different of the regular season).

That's what we need to achieve:
In the news:

Thanks in advance to all responding and advantages you karma
July 9th 19 at 14:06
1 answer
July 9th 19 at 14:08
In pattern news:
class or id of pagination container {display: none;}

in a Photo similar
Thank you! - myah35 commented on July 9th 19 at 14:11

Find more questions by tags WordPress