开发者

Wordpress invalid line with foreach statement

开发者 https://www.devze.com 2023-03-24 05:19 出处:网络
So for my personal portfolio website, I had written a script to integrate Tumblr posts within a Wordpress page. It was working fine till the other day. But now I get an invalid line error fro开发者_St

So for my personal portfolio website, I had written a script to integrate Tumblr posts within a Wordpress page. It was working fine till the other day. But now I get an invalid line error fro开发者_StackOverflow中文版m Wordpress.

at first I thought it was the new tumblr API but everything works fine on my local MAMP and WAMP setups, but online it breaks. No recent updates to cause that.So I'm at a loss.

The broken page can be found: http://www.dgovil.com/blog/ and my code for that page is here: http://pastebin.com/5wYy2Zch

I really can't figure out what may be wrong, since my local installs all seem to work fine.

Any help is greatly appreciated. My blog doesn't really have much stuff on it, but I'd like to get it working for when I do want to push it more.

Thanks!


$posts doesn't have any values in it/is not an array.

Put var_dump($posts); a line above that foreach statement and see what it returns.

0

精彩评论

暂无评论...
验证码 换一张
取 消