How to display a block to specific page and a specific content type

Warning: These techniques require the use of the PHP filter module which can have security implications and potentially cause performance issues.


https://www.drupal.org/node/2830351

You can use PHP block visibility settings.

Something like:

$nodeType = "New Page";

// valid node id in view mode
if ( arg(0) == 'node' AND is_numeric(arg(1)) AND arg(2) == FALSE ) {
    $node = node_load(arg(1)); // cached
    if ( ($node->type == $nodeType) OR ($node->nid == 20) ) {
        return TRUE;
    }
}
return FALSE;

https://www.drupal.org/docs/7/theming/howto/show-a-block-depending-on-no...