Support

Account

Forum Replies Created

  • For anyone that stumbles across this in future…

    The shortcode alone is not enough, you also need to specify where the information is stored by adding the post/page id number

    [acf field="field_name" post_id="123"]

    Set up a field group that displays only on one page, ‘shortcodes’ and make a note of the ‘shortcodes’ page id number. Add fields as needed and note their shortcodes.

    You can then paste the shortcode above onto any page in a text module and it will pull the data and display it.

  • Thanks John, defining the post id was what solved the issue.

    I work with a coder on a few sites and we use ACF without issue on a couple of those (also using Divi). I assumed I could install the plugin and it would work as it does on those sites.

    My thinking now is that he’s added some code to either functions.php or the page template that calls the data without the need for postid.

    What’s strange is that while in ‘edit mode’ the site could find one of three tests I set up. When out of edit mode none were displayed on page load.

    It was a frustrating 24 hours.

    My coder is/was unavailable due to serious family issues and I didn’t want to disturb him with work stuff.

    I got there in the end though.

  • I still don’t know the ‘correct’ way to do this. Can someone point to a tutorial or video that shows how to achieve what I was looking for?

  • Hi John,

    I managed to work something out that made this work but I’m still interested in the ‘official’ way to achieve the functionality I’m looking for.

    What are your recommendations and can you point to a tutorial or video that would help newcomers will this seemingly common problem?

    Thanks.

  • I worked it out. Thanks for the help everyone!

  • 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.

  • 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.

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