Using advanced custom fields
-
Hello!
Love this plugin and its functionality, for the site I’m creating i’m trying to make my tabs a little more robust… Please let me know if someone has asked this before I could not quite find it if they have.
I’m trying to create basically a gallery holder that can be easily updated by the user when I’m not around anymore.
So i’ve done an echo do_shortcode on the inside of the template page I want the tabs on that looks like this:<?php { echo do_shortcode(‘
[tabby title=”First Tab”]
First Content
[tabby title=”Second Tab”]
Second Content
[tabby title=”Third Tab”]
Third Content
[tabbyending]‘);
}?>What I want to create is something with the functionality of this:
<?php { echo do_shortcode(‘
[tabby title=”<?php the_field(‘first_title’); ?>”]
<?php the_field(‘first_content); ?>
<?php the_field(‘first_lightbox); ?>
[tabby title=”<?php the_field(‘second_title’); ?>”]
<?php the_field(‘second_content’); ?>
<?php the_field(‘second_lightbox); ?>
[tabby title=”<?php the_field(‘third_title’); ?>”]
<?php the_field(‘third_content’); ?>
<?php the_field(‘third_lightbox); ?>
[tabbyending]‘);
}?>I do not have a live link yet as I am still working locally.
The topic ‘Using advanced custom fields’ is closed to new replies.