WordPress.org

Ready to get started?Download WordPress

Forums

Simple Staff List
[resolved] conflict with Advanced Custom Fields? (6 posts)

  1. brpubs
    Member
    Posted 1 year ago #

    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/

  2. Brett Shumaker
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. brpubs
    Member
    Posted 1 year ago #

    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.

  4. Brett Shumaker
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  5. brpubs
    Member
    Posted 1 year ago #

    Bingo! Thanks!!

  6. Brett Shumaker
    Member
    Plugin Author

    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.