WordPress.org

Support

Support » Plugins and Hacks » Password Protect Children and Category Shortcodes conflict

Password Protect Children and Category Shortcodes conflict

  • glasspeach
    Member

    @glasspeach

    I’d like to use category shortcodes on my site; however, the logic of these plugins seems to conflict with Password Protect Children Pages. I get an error when I try to use any category shortcode:

    Warning: Invalid argument supplied for foreach() in /home8/public_html/wp-content/plugins/ft-password-protect-children-pages/ft-password-protect-children-pages.php on line 72

    From what I understand, I’d like to add a line to the Password Protect PHP that says something like “If there’s a shortcode on the page, don’t bother with your ancestry logic” but I’d also love to hear other solutions.

    Is there a way for these two functions to coexist?

  • The topic ‘Password Protect Children and Category Shortcodes conflict’ is closed to new replies.