• Hi
    Every time my ‘add a new porfolio item’ page loads I get this warning.

    Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/content/88/6940688/html/wordpress1/wp-includes/theme.php on line 1682

    It then prevents me from adding any media to my new page.
    My theme is Portfolio Press version 1.5.
    I know there is a 1.8 upgrade but I have edited the theme to extend porfolio items and removed date stamps so I don’t want to have to recode these parts.

    FYI this error has only just happened along time after the before mentioned tweaks we made.

    Any info you can give me would be most appreciated.

    Thanks in advance

    http://iconicexistence.com

Viewing 3 replies - 1 through 3 (of 3 total)
  • And your code is?

    The error simply means you’re not passing an array as the second argument. Take a look at the documentation to see the order of the arguments.

    Give your code to provide you a good solution.

    Thread Starter sanct

    (@sanct)

    Many thanks for you advice chaturaka.
    I decided to upgrade the theme to solve this problem.
    Now I am just trying to figure out how to create a child theme in my function.php and add a filter???

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Warning: in_array() [function.in-array]:’ is closed to new replies.