Forum Replies Created
-
AuthorPosts
-
Michael
ParticipantHi,
Hmmm, yes it’s the latest version of the plugin but not a premium feature.
A bit disappointing that it doesn’t work. I guess maybe my feature request would be that I could incorporate ECP into a wordpress page template (where the php executes perfectly) rather than have to try to make things work in a ECP page template where it doesn’t – I didn’t see anything in the documentation for that, maybe I missed something. In spite of my investment in time and money it looks like I may need to source a new/different solution.
Michael
ParticipantHey,
Yes that looks better, did you use
to wrap it?
That code is the code that is not working. It seems to be omitted as I only get the wrapping
<!– GET REPEATER –>
<!– /GET REPEATER –>
and nothing in between.
And yes it seems the repeater is the only field not working, other ACF fields are working.
If I call<p><?php the_field('tagline', 12); ?></p>the proper field is returned.
Thanks.
Michael
ParticipantYa. ok, thanks for your help. Let me re-iterate a few points though for clarity.
I’m using ACF pretty extensively throughout the site without issue and understand that the fields are visible in the content editor and not the front end of the site itself – by client I mean the owner of the site who will be adding/editing/deleting content that visitors to the site will see.
With the default template for ECP I have added: <?php the_field(‘tagline’, 12); ?> for testing and it correctly renders the tagline from post 12 in the right place on the front end. But when I insert an ACF repeater it renders nothing. Here’s the repeater code I am using:
<!– GET REPEATER –>
<?php if( have_rows(‘explore-activity’, 197) ): ?>
<?php while( have_rows(‘explore-activity’, 197) ): the_row(); ?>
<!– START DESTINATION –>
<div class=”col-sm-6 col-md-3″>
<div class=”if_poi”>
” />
<?php the_sub_field(‘activ_title’); ?>
<?php the_sub_field(‘activ_copy’); ?><
</div>
</div>
<!– END DESTINATION –>
<?php endwhile; ?>
<?php endif; ?>
<!– /GET REPEATER –>All it renders is:
<!– GET REPEATER –>
<!– /GET REPEATER –>So the php is being ignored or discarded.
NOTE: This repeater renders correctly outside of the ECP template in a regular WP page template.
I was hoping to have the repeater fields render in the template and have the editing of those fields happen somewhere inside the ECP admin section – right now I’m calling the fields from another post only because it seems you can’t do it any other way.
Appreciate your help on this.
Michael
ParticipantHmmm, ya I’v gone over the Themer’s guide quite a bit. But I can’t seem to find what I need.
How do I get my custom fields to show up in the ECP template and how do I then get those fields that need to have content added to them by the client show up in the content area of wordpress or in the content area of the plugin admin. NOTE: this isn’t event related content. This is content that is to sit above the calendar.
I have the custom content working on a wordpress page so I know if is working properly but don’t know how I’m supposed to integrate with the plugin.
Would prefer not to go the second route but it may be my only option I guess. Although that sounds like it would create page slug and hierarchal issues.
Thank you for your help.
-
This reply was modified 9 years, 11 months ago by
Michael.
-
This reply was modified 9 years, 11 months ago by
-
AuthorPosts
