Support

Account

Forum Replies Created

  • @korndev and @acf-support Thank you. Saving this for when I learn how to use hooks, I haven’t gotten there yet 🙂

  • This reply has been marked as private.
  • Thanks @hube2 I hadn’t seen that plugin before!

  • This reply has been marked as private.
  • I got as far as to make the custom post type and re-create/assign the page template, which uses the page builder, for the post type. I want some of each sport page to be editable, but some parts of it to output strictly the acf fields that are shown. So I’ve added a code section in the page builder, and so far have managed to get this, with your help, in that part…

    <h3>Coaching Staff</h3>
    <div class="coach_name">[acf field="coaching_staff_0_coachs_name"], [acf field="coaching_staff_0_coachs_title"]</div>
    
    <div class="coach_contact">Phone: [acf field="coaching_staff_0_coachs_phone"] | <a href='mailto:[acf field="coaching_staff_0_coachs_email"]'>E-Mail</a></div>
    
    <div class="coach_bio">[acf field="coaching_staff_0_coachs_biography"]</div>

    I don’t know enough about building page templates or php to create the full page that way, wish I did! I’ve hired people to make them for some other sites, but had a little extra time and wanted to try to learn a little more 😉

  • @hube2 Wow, thank you for the quick response. I’m sure it’s evident I’m pretty new to using ACF in templates. When you say there isn’t a way to create a loop, what do you mean?

    I am making a site where someone else will put in info about sports teams (a custom post type), and for the repeater field, they can add as many coaches per sport as they need, but not every sport will have the same number, which is why I chose the repeater. And I’m trying to make page templates in the theme’s page builder so the person who manages the site just has to type things into the meta fields instead of opening the page template and editing that.

  • @hube2 Thank you, the shortcode one works! For some reason, the php one doesn’t work.

  • @hube2 Thank you! I will try that. Is there a way to do the same with a shortcode? I am creating a site for someone using the Divi theme, and putting the code into the page builder (even the ‘code’ module) isn’t working. They won’t want to be editing template files in the future.

  • Not to highjack the thread but this is what I am trying to do as well. I have a field head_coach_email and am trying to get a mailto link to display on the front end. It’s not working. Can someone please help me? I am pretty much a php beginner.

  • Not to highjack a thread, but related to this, how would I output the email address (from a backend email field) on the front end, in a mailto: link? Example, let’s say in the back end there is information entered for John Doe, e-mail address is [email protected]. On the front end, I want to display a link that says E-mail, with mailto:[email protected] as the link. Thanks for any input!

Viewing 10 posts - 1 through 10 (of 10 total)