Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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.

Thanks.

share|improve this question
add comment

1 Answer

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();
share|improve this answer
    
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. –  lostInTransit Jul 30 '12 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 '12 at 11:38
add comment

Your Answer

 
discard

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.