The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Simple Facebook Connect
[resolved] SFC conflict with Advanced Custom Fields? (3 posts)

  1. Josh
    Posted 3 years ago #

    ACF uses the function get_field('nameofoption') to retrieve values that I set with it. When I enable SFC... every single get_field call now returns false instead of the value that I need. When I disable SFC, get_field works normally again.

    Any ideas here? Any help would be appreciated. :)


  2. Samuel Wood (Otto)
    WordPress.org Tech Dude
    Plugin Author

    Posted 3 years ago #

    There is no get_field function in WordPress. So whatever it's doing in ACF is something specific to ACF.

  3. Josh
    Posted 3 years ago #

    Figured it out. I have some get_field calls in header.php that depends on $post->ID to get the right values.... mostly needed for the homepage. But SFC has a hook for wp_head that sets $post to one of my recent posts being display on the home page.

    I just have to be more explicit with what page id I want or make rework how I go about it.


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.