Error in custom php function doesn’t exist

You get an error because it’s looking for function named as set_default_page_template while you seems to have function named set_page_template_default. I’m not sure you either don’t have a function named set_default_page_template or you later renamed it. but that’s the error. WP cannot find your hook because it doesn’t exist. you should either rename your set_default_page_template … Read more

foreach loop still echoes array

OK, so this is what I did wrong. This was an array within an array, which meant that I had to use the element index to echo the values. I’m not even sure I’m explaining it right, but thanks for your help all. It’s working now.