Ensure that your theme’s single post & page templates are using <?php the_content();?>.
Thread Starter
rdart
(@rdart)
Thank you! So far it looks like it is working, now I just have to rearrange some of the shortcodes and clean it up! Thanks! For some reason, my pages were using <?php echo $post->post_content; ?> so it wasn’t calling correctly. Thanks again!
Thread Starter
rdart
(@rdart)
So after organizing it a little bit, it made each post call on the same text, and now the only thing that is working is one pages shortcode. It worked, but now all posts have the same text!
For each page to have the original text, it works using this: <?php echo $post->post_content; ?>
For the shortcode to work, I used <?php the_content();?>
Is there a way to get both of them to work? The shortcode seems to only working on subpages.
Thank you so much, sorry to bug you again!
now all posts have the same text!
In that case, there is something seriously wrong with your theme. You can confirm this by switching to Twenty Ten to see if that resolves the issue.
Thread Starter
rdart
(@rdart)
It works in Twenty Ten. I wish I knew where the problem was coming from, I will go look through the php again… I don’t know if you would mind taking a look or not, but I really need this problem to go away! On the bright side, everything else works. Thanks again!
You really shouldn’t be using $post->post_content to display unfiltered content. Added to which, many other plugins will depend upon the_content filter.
Thread Starter
rdart
(@rdart)
I agree, but it was what I was told to use originally. Now that I have done more research, the <?php the_content();?> is the way to go, but for some reason it is blocking out my content in my posts. Would you mind if I emailed you my log in so you could take a look?
it was what I was told to use originally
Then someone gave you bad advice. General rule of thumb: always use the_content() or the_excerpt() unless you’re getting into advanced coding for a plugin or similar.
If the_content() isn’t working for you, then something is wrong with your Loops. Try reviewing http://codex.wordpress.org/The_Loop
Thread Starter
rdart
(@rdart)
I totally agree, all of the research is revealing that. I will look into the loop a little more then, and see what I can do to fix everything. Hopefully it all comes together before tomorrow!
Thread Starter
rdart
(@rdart)
Just as an update – I changed over my page/post format to look more like the loop-page.php setup that is in the twenty-ten theme, and after some arranging it looks like everything works now. Thank you so much for your help! Without your suggestion I would not have been able to fix this.
I am having the same problem. Shortcodes do not work (they display the actual shortcode). If I replace <?php echo $ps->post_content;/*the_content();*/ ?> with <?php the_content();?> then the same content displays for every post!
Any ideas? The following is my single.php file
[Code moderated as per the Forum Rules. Please use the pastebin]