WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Custom Fields
Do I need to create a template file for this to work? (2 posts)

  1. SJTR
    Member
    Posted 7 months ago #

    Hi all.

    I'm having trouble following the installation of this plugin.

    I've managed to create some custom fields and they're showing up at the pages where I want to use them.

    Now I understand that I need to add some lines of code to a file. I just don't understand to which file I need to add it to. I suspect it's the index.php, or do I need to make a separate template file? Because I'm already using the_content to load content into the index.php and I donĀ“t see where I should paste this field code: <p><?php the_field('field_name'); ?></p>.

    I tried replacing field_name with my own field name I set in the plugin, and added the field code below the_content but still nothing shows.

    Wonder how to make it work?

    This plugin is kinda only for advanced users I guess.

    Thanks for any help.

    https://wordpress.org/plugins/advanced-custom-fields/

  2. SJTR
    Member
    Posted 6 months ago #

    Anyone?

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.