Support » Plugin: Simple Facebook Connect » SFC conflict with Advanced Custom Fields?

  • Resolved Josh

    (@audiorox)


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

    http://wordpress.org/extend/plugins/simple-facebook-connect/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Samuel Wood (Otto)

    (@otto42)

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

    Josh

    (@audiorox)

    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.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘SFC conflict with Advanced Custom Fields?’ is closed to new replies.