A bit of investigation and it seems it’s also the Post Object field which has this issue.
I also managed to fix this by changing the Return Format for the field to Post ID rather than Post Object. Not ideal but it’s a solution.
Hi Elliot,
Have you had chance to have a look at or heard of a similar issue with bbPress & the relationship field?
Cheers,
John
Hi Elliot,
Upon investigation, it appears that it’s bbPress which it doesn’t like. Which is a problem for us, as we need to forum to be working on the site. Going to have to look into it further.
Thanks,
John
Hi,
We’re having the same issue. The posts which are related to the page are showing in the front-end when we’re logged in, but once we log out, they aren’t appearing.
Very strange.
John
Another twist in the tale.
This issue only happens when my plugin is activated first and then we try activate ACF.
If we activate ACF, then try activate our plugin, everything works fine.
How bizarre!
Hi Elliot,
Yeah, the easiest was I could think to test it was working…
if ( ! class_exists( 'Acf' ) ) {
//define( 'ACF_LITE' , true );
//include_once MY_PLUGIN_PATH . 'inc/advanced-custom-fields/acf.php';
echo "<p>This Works</p>";
}
Responds as it should. When the plugin is active, the echo doesn’t display. When it’s not active, the echo is displayed at the top of the screen.
The same happens when I use the is_plugin_inactive() function. This function does work as it should the for the add-ons.
Cheers,
John
Hi,
I’m trying to include ACF in a custom post type plugin. Which works fine, as does the location add-on.
I’ve added to my code a ‘is_plugin_active’ check to not include the location add-on if the client has the plugin already installed which works fine.
However, I’m trying to do the the same for ACF but it’s not working and throwing error above. I’ve tried plugin active & class exists checks but the issue remains.
Regards,
John
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.