Jump to content

Getting php error on Wordpress theme


Pugs2411

Recommended Posts

Hi,

I am very very new to php and I'm building a Wordpress site using a theme so please bear with me if I ask any obvious questions.

My site is running php 5.6 and Wordpress is up to date.

In the theme options a php file called theme_options.php should give various items to place on the page but I am getting this error

Warning: Invalid argument supplied for foreach() in on line 1114
/websites/123reg/LinuxPackage21/co/ok/es/cookesproperty.co.uk/public_html/dev/wp-content/themes/homely/admin/theme_options.php

I have looked at line 1114 and this has this of code
 

<?php
$property_detail_items       = get_option('rypecore_property_detail_items', $property_detail_items_default);
$property_detail_items_order = get_option('rypecore_property_detail_items_order', $property_detail_items_order_default);

foreach($property_detail_items_order as $value) {
?>

The last line is line 1114

Is there anything obvious I am missing?

Thanks for any help at all!

Lisa

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.