- This topic has 5 replies, 3 voices, and was last updated 6 years ago by
Steve.
-
AuthorPosts
-
-
September 27, 2013 at 1:07 am #1141
cosmocanuckMemberOh, dear. I just switched from my previous theme (a child of twentythirteen) to a new one (child of a Woo theme) which I plan to develop into the actual, final theme for my client’s site. But despite everything being ‘in place’, I’m having some problems:
– My code to display the meta fields on the site now produces this error on the page:
Fatal error: Call to a member function the_meta() on a non-object in /home/adama3/public_html/development/(my-site-name)/wp-content/themes/whitelight-child/resortinfo.php on line 6
(resortinfo.php is the file with my display code, added in with
<?php get_template_part( 'resortinfo' ); ?>)– The checkboxes, radio buttons, and dropdowns on the backend have lost their settings and display nothing (or “Select…”).
What might be happening?
-
September 27, 2013 at 4:02 pm #1142
SteveKeymasterWhere is
the_meta()defined? -
September 28, 2013 at 12:11 am #1146
cosmocanuckMemberSorry Steve, it was my own bonehead mistake! I was using woefully out-of-date version of that “resortinfo.php” file, from my pre-Piklist attempt to display metadata. Naturally it didn’t work, it had different variables and no get_post_meta statement.
Sorry to waste your time by not having done due diligence first. But thanks for at least giving me a nudge in the right direction!
-
September 28, 2013 at 8:13 pm #1147
SteveKeymasterAlways glad to help. 😉
-
February 3, 2016 at 2:49 am #5832
adeoyeMemberHello, i am having a problem with a wordpress template i just finished designing, “Nebraska” to be precise, it keeps giving an error message when i try to view pages even from the admin “Fatal error: Call to a member function the_meta() on a non-object in /home/landmark/public_html/wp-content/themes/nebraska135/nebraska/template-home.php on line 12”. I have no idea if this is a theme malfunction, but even the page builder that came with the theme is no more visible when i try to edit pages. On checking for line 12 in the path specified for the error, this is what it came up with
$metadata = $lambda_meta_data->the_meta();
I would really appreciate any help. Thanks -
February 3, 2016 at 11:37 am #5840
-
-
AuthorPosts
- You must be logged in to reply to this topic.