Support

Account

Home Forums Front-end Issues ACF Not showing in the front end

Solved

ACF Not showing in the front end

  • I have these settings for the ACF backend http://prnt.sc/e7n83j

    But the fields don’t show up in the front end of the post.

    Please help, I am brand new to ACF.

    Thanks

  • ACF does not automatically show the content of fields on the front end of the site. This plugin requires that you modify the template code of your theme to show the content. I would suggest you start here https://www.advancedcustomfields.com/resources/

  • Hi.
    I have a better solution, I think. I’m using ACF+Custom Content Shortcode.

    Very simple. And I love it so much!!!!

  • okay I finally figured it out how to display them using the documentation provided by ACF. Thanks

  • I think this is a little stupid. Because you buy a plugin for this exclusive function and the fields are not displayed on the front end. Thousands of people searching for the same thing on the internet. The plugin is good, but this is something that makes no sense.

  • Yeah, I’m absolutely stumped by this as well, spent hours on this yesterday and had to give up which is unlike me.

    I’ve created a group and field and simply want to display it on the front end with a shortcode in either a text or code module in divi.

    It doesn’t work and I have no idea why.

  • The reply from John is awfully cryptic.

    Is there a tutorial of what you need to change and where? functions.php?

    Just a hint would be nice.

    Some people don’t want to learn how to strip down an engine when all they want to do is replace the air filter.

  • You could create your own shortcode, but a more powerful solution is to download Tangible: Loops & Logic (the successor to Custom Content Shortcode). Loops&Logic has replaced several plugins for me.

  • Sorry if my reply was “cryptic”.

    ACF is built for developers, when I say “developers” I mean people that code in PHP and are able to modify the templates and code in a theme to use the fields. ACF is an admin tool that makes creation of fields in the admin easier for the developer and give the editor a nice UI to use to add content to these fields.

    What code to use? Every field is explained in the documentation and has example code for use in your theme.

    Where does the code go? This is highly dependent on your theme. For a theme that you build, if you are familiar with how to build a theme then this is most likely self explanatory. The code goes in the theme template where you want the value of a field to be shown. If you are attempting to modify an existing theme then you need to figure out where this is. It may require editing one of the existing theme templates. It might require using action/filter hooks provided by the theme. Again, if you are familiar with building and/or modifying themes then you likely already have some idea of what this means. When using filters to add or modify content then these filters will generally be added to your functions.php file.

    As an example let’s look at WooCommerce. WC is a plugin that includes many template files as well has hooks that can be used for showing additional content or modifying content that is displayed. Templates can be overridden by copying template files to your theme. WC also has many hooks that are available to use. If you override a template then you can output ACF fields by modifying those templates. If you are using filter or action hooks then you would add your filters and actions to your functions.php file.

    Even in the case of a tool like “Loops & Logic” given by @richardu you still need to be able to do the coding to use it.

    ACF is not generally as useful if you do not have the ability to modify templates and do the PHP coding necessary to use the fields that ACF creates. It is not really meant for those that use “Theme Builders” or “Theme Frameworks” unless you have the ability and understanding of how to add custom code to these things. For those that want to use these tools and not do the coding needed there are other tools available for this purpose, like “Pods” and “Toolset”.

    There are simply too many possibilities for ACF to be able to explain how to use fields in every theme, plugin, builder and framework that is available. Getting help here on these things will depend on some other user that participates in this forum knowing how to do so. In most cases you need to talk to the developers of these other things. I you can figure out how to use a standard custom WP field in those other things then you can use ACF by replacing the code used for using those fields with ACF coding. If you can figure out how to use a custom field in these other things then you are more likely to get help here on how to modify that to use ACF fields.

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

You must be logged in to reply to this topic.