This collects all NID’s for nodes

$query = new EntityFieldQuery();
$query -> entityCondition('entity_type', 'node', '=');

for a particular content type

$query -> propertyCondition('type', $thiscontenttype, '=');

with this node title

$query -> propertyCondition('title', $thistitle, '=');

Finally get the result

$result = $query -> execute();
$nids = array_keys($result['node']);

Leave a comment

Your email address will not be published. Required fields are marked *