WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Josh
    Member
    Posted 9 months 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. :)

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

  2. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 9 months ago #

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

  3. Josh
    Member
    Posted 9 months 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.

    Thanks!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.