Working with 1.5.4 - can't display anything

31 views
Skip to first unread message

Nick

unread,
Feb 26, 2013, 11:40:42 AM2/26/13
to magic-...@googlegroups.com
I'm doing some work on an existing WP site using version 1.5.4 of magic fields. I've never worked with this version and being used to the newer versions, I'm totally baffled, and I can't upgrade it (for client reasons).

I've created the write panels, added my content, but nothing shows up at all. Not single fields, not duplicate fields or duplicate groups.

I'm using the following code for a group with duplicate fields:

$logos = getGroupOrder('logo_slotmachine_logo');
foreach($logos as $logo){
echo get('logo_title',$logo)."<br />";
echo get_image('logo_slotmachine_logo',$logo)."<br /><br />";

Nothing appears. What am I doing wrong? Is something different about this old version? I'm referencing the other templates made for this site, too, and I just can't work it out. Please help!

Reaxion

unread,
Mar 16, 2013, 1:28:02 PM3/16/13
to magic-...@googlegroups.com
I can get it to work, but keep in mind I tested it displaying a duplicate group on a PAGE. Here it is:

<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>

<?php $logos = getGroupOrder('logo_slotmachine_logo');

foreach($logos as $logo){
echo get('logo_title',$logo)."<br />";
echo get_image('logo_slotmachine_logo',$logo)."<br /><br />";
 } ?> 
<?php endwhile; ?>


Can you help me too??!! I just made a similar post  near yours regarding how I can't get a single thing to work in MF2 - I can't display ANYTHING!

Reaxion

unread,
Mar 16, 2013, 1:29:34 PM3/16/13
to magic-...@googlegroups.com
In addition to my cry for help, this is the post I need help with!

https://groups.google.com/forum/?fromgroups=#!topic/magic-fields/t0QkStQJ0dI

Thanks!
Reply all
Reply to author
Forward
0 new messages