Extracting Information From A Webpage With PHP & CURL

Posted 3 months, 1 week ago at 5:17 pm. 12 comments

So it’s been a little while since my strangely popular GTA 4 controversy post and I thought I would journey back to some coding. This time I am going to show you how to use PHP to replicate a little part of something I have been working on for my other site, Celeb ‘O Rama.
Continue Reading…

Wordpress: Fixing Wordpress 2.5 Child Link System

Posted 4 months, 3 weeks ago at 4:39 pm. 23 comments

So you’ve just upgraded to Wordpress 2.5 and all of a sudden you are greeted with an error that says something like this:

Warning: Invalid argument supplied for foreach() in wp-includes/post.php in line 1783

It’s something like that but basically this error only occurs if your page template tries to access a child list using the following:

1
$childPages = get_page_children($page->ID, '');

It doesn’t really matter about any of the code other than the last bit. This worked before because the function get_page_children realized it was empty and replaced it with the right value it’s self. Well it doesn’t anymore so here is how you fix it.
Continue Reading…