Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1246281
    eveall
    Participant

    So i tried creating a portfolio page via the new page and under properties (as opposed to the portfolio section on the dashboard). When i tried to preview it i got this error:

    Warning: in_array() expects parameter 2 to be array, string given in /home/sitename/public_html/blog/wp-content/themes/x/framework/functions/global/portfolio.php on line 112

    Warning: Invalid argument supplied for foreach() in /home/sitename/public_html/blog/wp-content/themes/x/framework/functions/global/portfolio.php on line 128

    Could you please have a look? I use the child theme, so i’ve never done any changes to this part of the theme.

    #1246282
    eveall
    Participant
    This reply has been marked as private.
    #1246547
    Rupok
    Member

    Hi there,

    Thanks for writing in! You have enabled filter for the portfolio page but didn’t set any category and that’s why the warning were showing. As you don’t have any category, I have set “All Categories” and saved the page again and the warnings are gone.

    Cheers!

    #1246915
    eveall
    Participant

    Ah, thanks so much. So simple for you, not so much for me. Thanks for your help!

    #1246923
    Thai
    Moderator

    If you need anything else please let us know.

  • <script> jQuery(function($){ $("#no-reply-1246281 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>