So I have some meta boxes on a custom post type.
$customportfolio = get_post_meta($post->ID, 'customportfolio', true);
echo '<ul class="customportfolio">';
foreach($customportfolio as $customportitem){
echo '<li style="clear:both;">';
echo '<image src="' . $customportitem['image'] . '" class="alignleft" />';
echo '<p>' . $customportitem['description'] . '</p>';
echo '</li>';
}
echo '</ul>';
I have this snippet above in a custom-single.php template which calls the metaboxes. This works fine.
The problem I am having is I need to hardcode a nextpage <!--nextpage--> for each custom portfolio item, well this won't work because I am not inside the_content which is were the `<!--nextpage-->' gets parsed. I can't find any way to manually call it outside of the_content, or another solution to have a page break after each one. Any Ideas?