WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So, this is my problem... Everything in my wordpress website is up and running, except when I get into a post and the content simply doesn't load. Everything else does, except for the post content.

This happened when I was trying to install a content locker from incent.ly and I came up into a problem: I didn't know how to install different lockers into different posts, as the code had to be pasted before the tag.

So.. I downloaded and installed a plugin called: "custom field template", apparently very known around the community, and what I did was:

  • Insert the content locker code into a "template content" area and in the "Post-id" I put the id of the post I wanted to lock.

And bam, every post stopped working. Now, I've uninstalled the plugin and the problem remains. And I just don't know where to look for the problem.

I have ran the debug test on a post and, in the area where the content should be, this appeared:

"Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'add_post_content' not found or invalid function name in /var/www/vhosts/gentlefantasies.com/httpdocs/wp-includes/plugin.php on line 173"

share|improve this question

The error message you get means that a function has been hooked without a valid callback.

In other words it means that somewhere in your theme or in a plugin a function has been set but it's not "hooked" properly. See the example :

function add_post_content()  //<- the callback
// blabla
add_action( 'hook_name', 'wrong_name_function' );//<- hooked in WP

So 'wrong_name_function' has to be replaced with 'add_post_content'.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.