WordPress.org

Support

Support » Plugins and Hacks » [Resolved] conflict with Advanced Custom Fields?

[Resolved] conflict with Advanced Custom Fields?

  • I’m using ACF to add a custom sidebar on each page — brought in by a php call to the field in an enhanced text widget. Just noticed that on the page where I’ve got the staff list set up, the custom sidebar disappears as soon as I bring in the shortcode for the staff list — and reappears as soon as I remove the shortcode. A normal text box works fine — and gives me a simple work-around — but I’m wondering if there’s a more elegant fix, or whether I’m missing something in what I’m doing.

    Thanks so much for this plug-in!

    http://wordpress.org/extend/plugins/simple-staff-list/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Brett Shumaker
    Member

    @brettshumaker

    Thanks for letting me know.

    I’m trying to figure out what’s going on with the conflict between my plugin and the widget areas. Several people have been having issues with this.

    Thanks again.

    I did just notice that if I call the post ID for the page that has the staff list, what I get is not the ID for the page but the ID for the last staff member listed. My guess is that that’s what is at issue with my problem with ACF — it’s not displaying the field for that page because it’s not seeing the correct post ID.

    Plugin Author Brett Shumaker
    Member

    @brettshumaker

    Ah…I’m not using wp_reset_query(); at the end of my shortcode function in inc/user-view-show-staff-list.php like I should be.

    Try adding in wp_reset_query(); just before return $output; on line 128 and see if that allows you to get the correct post ID for the page.

    Bingo! Thanks!!

    Plugin Author Brett Shumaker
    Member

    @brettshumaker

    No problem. Sorry about that. I’ll push that change out this weekend.

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