Viewing 5 reply threads
  • Author
    Posts
    • #1141
      cosmocanuck
      Member

      Oh, 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?

    • #1142
      Steve
      Keymaster

      Where is the_meta() defined?

    • #1146
      cosmocanuck
      Member

      Sorry 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!

    • #1147
      Steve
      Keymaster

      Always glad to help. 😉

    • #5832
      adeoye
      Member

      Hello, 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

    • #5840
      Steve
      Keymaster

      @adeoye– Welcome to the Piklist community!

      This looks like a theme issue and nothing with Piklist. $lambda_meta_data->the_meta() is empty. I suggest you contact the original theme developer.

Viewing 5 reply threads
  • You must be logged in to reply to this topic.