Hi!
So far I've been a hardcore MF1 user, so that's probably why I'm having such trouble working with MF2 - I can't even get a line of text to display from a field.
I'm trying to display a duplicate group, and below are 2 chunks of code that would work with MF1 but not MF2 (because I'm obviously missing something)
--------------------
This is how I would usually display a duplicate group from a POST
--------------------
<?php $my_query = new WP_Query('category_name=slider'); ?>
<?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
<ul>
<?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
<?php $Slides= getGroupOrder('slider_title');
foreach($Slides as $Slide){
$new_params = array("w" => 375,"h" => 325, "zc" => c);
?>
<li>
<?php echo get('slider_title', $Slide,1,1,NULL,$new_params); ?>
</li>
<?php } ?>
</ul>
<?php endwhile; ?>
--------------------
This is how I would usually display the same duplicate group from a PAGE
--------------------
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<ul>
<?php $Slides= getGroupOrder('slides_title');
foreach($Slides as $Slide){
$new_params = array("w" => 375,"h" => 325, "zc" => c);
?>
</li>
<?php echo get_image('slides_image', $Slide,1,1,NULL,$new_params); ?>
<?php echo get('slideshow_title',$Slide); ?>
</li>
<?php } ?>
</ul>
<?php endwhile; ?>
But generally all I get is:
Fatal error: Call to undefined function getGroupOrder() in
/home/twoandten/www/www/wp-content/themes/starkers/home.php on line
24
Which in this case line 24 is : <?php $Slides= getGroupOrder('slides_title');
If it means anything, the "Post Type" is home_page, and you got it, I'm trying to display this on my homepage slider.
When I use the get_group or get_order_group here
http://wiki.magicfields.org/doku.php?id=working_with_groups_duplicated_groups_and_duplicated_fields_v20 I don't get an error, I just get nothing.
Any pointers would be great!
Scott