AFC Cornerstone Integration

I want to create a page template based on shortcodes and ACF. It seemed like the post below had some critical information but the graphic used to explain the concept is missing. Can you provide the missing info?
"
“AFC Cornerstone Integration not working” https://theme.co/apex/forum/t/afc-cornerstone-integration-not-working/12329

Hello Georgia,

Thanks for writing in!

You will first have to create a page template by adding following code:

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

  <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
      <p><?php the_field('c_name'); ?></p>
      <p><?php the_field('c_city'); ?></p>
      <p><?php the_field('c_pricing'); ?></p>
      <p><?php the_field('c_blurb'); ?></p>
      <p><?php the_field('c_address'); ?></p>
      <p><?php the_field('c_phone'); ?></p>
      <p><?php the_field('c_email'); ?></p>
    <?php x_get_view( 'global', '_content', 'the-content' ); ?>
  </article>

<?php endwhile; ?>

or for Ethos Stack

<?php


// =============================================================================
// TEMPLATE NAME: Sample Custom Layout - Fullwidth
// -----------------------------------------------------------------------------

get_header();

?>

  <div class="x-container max width main">
    <div class="offset cf">
      <div class="<?php x_main_content_class(); ?>" role="main">

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


              <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
                  <p><?php the_field('c_name'); ?></p>
                  <p><?php the_field('c_city'); ?></p>
                  <p><?php the_field('c_pricing'); ?></p>
                  <p><?php the_field('c_blurb'); ?></p>
                  <p><?php the_field('c_address'); ?></p>
                  <p><?php the_field('c_phone'); ?></p>
                  <p><?php the_field('c_email'); ?></p>
                <?php x_get_view( 'ethos', 'content', 'page' ); ?>
                <?php x_get_view( 'global', '_comments-template' ); ?>
              </article>

          
        <?php endwhile; ?>

      </div>
    </div>
  </div>

<?php get_footer(); ?>

For more information on creating custom page templates, please take a look at following resources:

https://developer.wordpress.org/themes/template-files-section/page-template-files/

After that, add following code in Cornerstone text element:

{{acf:field_name}}

Please note that custom development work falls outside the scope of support we can offer.

Thanks.

1 Like

Thank you for the start! Warm regards.

You’re always welcome.

Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.