Fatal Error Call To Undefined Function Get_field Wordpress
Contents |
error: Call to undefined function the_field_return() Tagged:error, function, the_field_return uberspeck November 22, 2013 at 1:37 pm I've inherited a WP project that uses v2.0.5 of ACF. I'm attempting to bring it up fatal error call to undefined function wordpress to date. After updating the plugin I've started to get the following
Fatal Error: Call To Undefined Function Php
error… Fatal error: Call to undefined function the_field_return() Googling for it returns no results and this forum doesn't seem call to undefined function wp_removable_query_args() to return any either. Anyone have any suggestions? I'm new to ACF so I'm starting from scratch… Elliot November 22, 2013 at 5:00 pm Hi @uberspeck the_field_return is not a function
Fatal Error: Call To Undefined Function Wp_removable_query_args() In
known to ACF. Please use get_field instead. Visit the docs to see all available functions. Thanks E uberspeck November 23, 2013 at 2:59 am Hi Elliot, thanks for the quick response! I dug through the archive of the site (before I updated ACF) and I came across the method in api.php. Maybe the previous developer added it? Maybe if I add it wordpress call to undefined function wp_removable_query_args() to functions.php that will take care of it? // the field return function the_field_return($field_name, $post_id = false) { //echo 'field name: '.$field_name.', post id: '.$post_id; $value = get_field($field_name, $post_id); if(is_array($value)) { $value = @implode(', ',$value); } return $value; } Elliot November 24, 2013 at 2:56 pm Hi @uberspeck Yes, this looks like a custom function added to the plugin. I would move this to your theme functions.php file, or just use the standard get_field instead. Thanks E Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Welcome Welcome to the Advanced Custom Fields community forum. Browse through ideas, snippets of code, questions and answers between fellow ACF users Open a new forum thread Forums General Issues Front-end Issues Backend Issues (wp-admin) ACF PRO Add-ons Bug Reports Feature Requests Feedback Helping Others Helping others is a great way to earn karma, gain badges and help ACF development! Help solve topics Stay up to date with ACF news The Advanced custom fields plugin is proudly created and maintained by Elliot Condon Copyright 2016 Elliot Condon
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss
Wp_convert_hr_to_bytes()
the workings and policies of this site About Us Learn more about
Fatal Error Call To Undefined Function Drupal
Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow manually update wordpress Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each https://support.advancedcustomfields.com/forums/topic/fatal-error-call-to-undefined-function-the_field_return/ other. Join them; it only takes a minute: Sign up Fatal error: Call to undefined function get_post() up vote 1 down vote favorite I'm new on wordpress and I'm trying to create my first website, I have an index.php page with about link, which will get about author content from created page (post) inside wordpress dashboard with name about. http://stackoverflow.com/questions/29265231/fatal-error-call-to-undefined-function-get-post I'm using magnific popup plugin for poups.. I have about.php which includes content of about page like this about.php
post_title; ?>
on Jun 01, 2008 by Leland Fiegel 0 Shares Share on Facebook Share on Twitter Share on Google Share on Pinterest If you get an error http://www.themelab.com/fix-wordpress-fatal-error-call-to-undefined-function/ like this, there is a plugin or other function called in your theme which you don't have. How do you fix this? There are a few ways: remove the code, error proof it, get the necessary plugin, or upgrade WordPress if necessary. In this quick WordPress tip post we'll go over how to error proof these with a conditional tag call to and PHP function known as: function_exists. If you get an error such as Fatal error: Call to undefined function the_title_attribute() you can simply replace any instance of the_title_attribute with the following: In this case, you could also take it one step further by adding an else statement. Before trying a new theme on a production site, make sure to preview your theme first, and then work out all the errors (if any). About Leland Fiegel Leland Fiegel was the original founder of ThemeLab. He is a web developer who loves WordPress and blogging. Popular Articles on ThemeLab How To (Efficiently) Load Social Sharing Buttons with WordPress How to Tweak Your WordPress Website Colors New Beginning - Say Hello to the New ThemeLab Why You Need an Email List to Build Your Personal Brand Get Updates (It's FREE) Join our newsletter to receive exclusive WordPress tutorials, tips, tricks and other ThemeLab updates. Blog Topics News Resources WordPress Community WordPress Plugins WordPress Tutorials Useful WordPress Guides Which is the Best WordPress Hosting For You? How to Start a Blog - Step by Step About ThemeLab ThemeLab creates the best Premium WordPress Themes to help you create your website as unique as you are. We give you everything you need to create a stunning website. Read More... Site Links Themes Bl