hello,
<?php
$args = array(
'posts_per_page' => 5
);
$c_posts = npc_get_connected($id, 'needed_post_type', $args);
var_dump($c_posts);
?>
or just without $args
$c_posts = npc_get_connected($id, 'needed_post_type');
var_dump($c_posts);
-
This reply was modified 7 years, 5 months ago by neatek.
-
This reply was modified 7 years, 5 months ago by neatek.