Fixing 'Invalid argument supplied for foreach()' in WP


I just installed a new theme on a clean WordPress installation, and I get the following error message:

Warning: Invalid argument supplied for foreach() in /var/www/vhosts/[url removed, login to view] on line 96

See [url removed, login to view]

Instead of this message, you should see the title of the portfolio item and a brief excerpt.

I'd like to have this fixed and I'd also like to have a detailed explanation about what was changed (which lines of code in which file), so I can help the theme author to improve his theme.

Here you can download the entire [url removed, login to view] file: [url removed, login to view]



Taidot: PHP, WordPress

Näytä lisää: wordpress invalid argument supplied foreach, invalid argument supplied foreach wordpress, invalid argument supplied foreach, warning invalid argument supplied foreach, wordpress invalid argument supplied, warning invalid argument supplied foreach wordpress, invalid message supplied, wp content wordpress, themes wordpress download, warning invalid argument supplied foreach line appster, php error fixing, error fixing, excerpt, wordpress author page, supplied, invalid argument supplied foreach error, improve code clean, wordpress code explanation, wordpress download theme, detailed explanation, php excerpt, improve wordpress theme, warning page wordpress, improve theme, wordpress page warning

Tietoa työnantajasta:
( 21 arvostelua ) Amsterdam, Netherlands

Projektin tunnus: #1695508

Myönnetty käyttäjälle:


Check PM please, Thank you

35 $ USD 0 päivässä
(24 arvostelua)

8 freelanceria on tarjonnut keskimäärin 63 $ tähän työhön


wp/php team

100 $ USD 1 päivässä
(149 arvostelua)

Hello, wordpress expert.i can fix. i see the page-portfolio.php. there is something problem with taxonomy terms related with 'portfolio-categories'. i need check it through system where this page is working. please sen Lisää

50 $ USD 0 päivässä
(174 arvostelua)

I am ready and expert in wordpress

60 $ USD 1 päivässä
(95 arvostelua)

Please check PMB.Thanks.

70 $ USD 2 päivässä
(44 arvostelua)

Check PMB.

40 $ USD 1 päivässä
(247 arvostelua)

Dear Hiring Manager, Professional and quality work is our prime concern. WordPress expert is here who is very eager to do the job for you. We have enclosed some of my WordPress project works in PMB. Please review PMB Lisää

90 $ USD 1 päivässä
(4 arvostelua)

we have an experience developer in wordpress with theme customization and installation of plugin and creation of plugin and amazon api work we already solve like your bug so reply me with all detail

60 $ USD 1 päivässä
(0 arvostelua)