I am using the Thesis theme and wanted a custom style for my pages. So I created a custom template while using thesis hooks and functions where applicable. I am doing this with a solution similar to the method described here so other contributors can use the themes in their pages as well.

I am getting the post's content by using the function the_content().

While this works normally and returns the contents of the pages, if I specify the SEO details (meta title, keywords, description etc), the_content() returns a blank.

Why should adding meta details to a page affect the_content like this? Would appreciate if someone can help me out with this.


1 Answer 1


could you post your template code? Maybe there is an error in your html. some unclosed tags or something.

also what result does this give you? is it also empty?

$content = get_the_content();
  • Found the problem. I had not used the_post(). For some reason it worked fine when there were no meta tags. But adding meta tags broke it. Getting data now. Thanks. Jul 30, 2012 at 9:25
  • yeah , you'll need the actual post before you can get any content :) good thing you found the problem.
    – woony
    Jul 30, 2012 at 11:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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