Why won't Advanced Custom Fields Pro work?

Posted in: Newsmag
Post count: 74

I’ve been trying to use Advanced Custom Fields Pro, the WordPress plugin, for like a week now. Admittedly, most of that time was trying to figure out how to use it as it’s not all that intuitive, but I’ve managed to put together my Services and FAQs pages and they don’t seem to show up. When I open those pages, both in a preview and live on my website, none of the custom fields show. All you see is the title of the page and then nothing underneath.

I know about the “show” rules in ACF and have made sure that my custom fields are setup to show on the pages I need, so it’s not an issue with the plugin as far as I can tell. Is there some other part to this process that I’m not aware of? Or is there something about Newsmag that requires some type of tweak to get Advanced Custom Fields to work?

Post count: 9544

ACF 4 and ACF 5 Pro work for me.

Be sure to read the ACF docs in detail on how to insert either shortcode into “page” or ideally, make a new template file for that “page” (e.g., services.php) and put the actual shortcodes into the template.

Normally you should simply be able to place the shortcode for your field into the post box (in text edit mode, not visual mode),

e.g.,
[acf field="{$field_name}"]

https://www.advancedcustomfields.com/resources/displaying-custom-field-values-in-your-theme/

Hope that helps.

If it does NOT work, try disabling all plugins except visual composer (and ACF, of course!). 🙂

(( I don’t work here . . . ))

REF: ACF Support Forum:
https://support.advancedcustomfields.com/forums/forum/acf-pro/

Post count: 74

So, for the custom fields to show up I not only have to input whatever I want into the fields while editing the post, but I also have to go up and put in code to tell those fields to show up?

Here’s what I’ve done: I installed Advanced Custom Fields Pro (the latest version) like I would install any other plugin. Then I went in and created a field group, created the post, filled some info into the fields on the post edit page, and published. When I look at the page the only thing that shows is the title.

My coding skills are still pretty limited, I know vaguely what you mean about creating a template file for that page, but I wouldn’t begin to know how to do that. I know where it would go, but I wouldn’t know what code to include or how it would be incorporated with the rest of the theme or what code to add so that ACF would work.

The ACF resources are, at least for me, not very descriptive. I get what they’re saying, but I’m not able to decipher how to do what they talk about. I would need some really in-depth, step-by-step instructions.

Post count: 9544

Sorry … the info I provided likely not helpful.

( I don’t work here — my feedback is my own … apologies if it’s not helpful! ) 🙂

  • This reply was modified 10 years by simchris.
Post count: 74

I guess I was assuming the fact I was posting this issue here would imply I thought the trouble I was having was due to some compatibility issue between the theme and Advanced Custom Fields. The directions they provide aren’t very clear and I’d thought I’d followed them pretty closely, and yet I saw no custom fields; that led me to post here in the hope of someone knowing some magic trick to get Advanced Custom Fields to work on WordPress pages that are dressed in Newsmag.

Unless Andrei has some magical advice, I’ll bank on someone over at ACF helping me. Thanks.

Post count: 6535

Hi

We didn’t tested Advanced Custom Fields Pro to work with the theme and we’re not aware of its functionality in order to provide an answer. However I’ve made a quick test and the plugin works fine but you need to use do_shortcode function to display a form on a post or page. Here is an example for a post: http://screencast.com/t/S1daz5ocjpmhttp://screencast.com/t/IXkvDetDOlahttp://screencast.com/t/IXkvDetDOlahttp://screencast.com/t/fFipR7Fw8
Basicaly you need to edit the file corresponding with the post/page template used and add the shortcode on there using do_shortcode function.
If you want to display a form on a specific page you can use a condition like this: http://screencast.com/t/ROGHlaSJ

if (is_page("page_id")){
echo do_shortcode('[acf field="my_name"]');
}

Note that this customization require some basic coding skills in order to be achieved. If you can’t make this by yourself my advice is to look for someone which can help you wit implementation as we can’t offer customizations services at the moment.

Thanks!

Post count: 74

Actually, I believe you’ve given me enough to go on for me to do this myself! I’ll let you know how it goes. Thank you so much, Andrei!

Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newsmag’ is closed to new topics and replies.