Last active
September 14, 2015 15:10
-
-
Save iledcom/d7b872b51f077e21e718 to your computer and use it in GitHub Desktop.
Drupal7 node_load_multiple($nids)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php //for example $nid = 48; | |
$node = node_load($nid); | |
$nids = array($node); | |
$nodes = node_load_multiple($nids); | |
foreach ($nodes as $node) { | |
$title = $node->title; | |
print $title; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment