• Resolved beegoodb

    (@beegoodb)


    In Advanced Custom Fields (ACF), field values are outputed using functions like the_field() or get_field().

    I’m currently using Secure Custom Fields (SCF) and wondering:

    How do I properly link or display a custom field created with SCF in my page.php template file?

    Is there an equivalent function to ACF’s the_field() or get_field() in SCF? Also, how do I make sure the field is correctly attached to the page so it displays in the template?

    Any guidance or example code would be appreciated!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello! To output/get fields in your theme, use exactly the same functions as in ACF:

    <?php $field_value = get_field( 'field_name' ); ?>

    <h1><?php the_field( 'field_name' ); ?></h1>

    This recommendation is conditionally suitable for everything: functions, hooks, filters, actions, etc.

    I didn’t quite understand about the other questions. Describe them in more detail, I’ll try to help!

    Thread Starter beegoodb

    (@beegoodb)

    Yan, thank you very much – your response clarified everything I needed to know! I appreciate your help and the example code. That answered my question perfectly, so the topic can now be considered closed.

    Have a great day! 😊

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.