Try to use the_excerpt() instead.
I know, but I want to keep styled post (break lines, bold text…)
Does it works on homepage the way you expect? I mean formatting in excerpts.
Yes, I use more tag /*<!–more–>*/ while publishing post,
so, on homepage has /…/ at end with more link.
But on my custom page, it shows full post 🙁
What have you changed in main loop in your template?
Can you post template code here?
My custom page
[Code moderated as per the Forum Rules. Please use the pastebin]
Thanks for support!
I think I need add some parameters to wp_query to get post like homepage, but I don’t know what parameters 🙁
My custom code was pasted here http://pastebin.com/XNbAw59J
Thanks
I can’t see code…
Try next:
Create sample post with 2 short parts divided by –more–.
use next code in the loop.
the_content();
the_content(‘blah_blah’);
echo get_the_content();
global $post;
echo $post->post_content;
echo apply_filters(‘the_content’, $post->post_content);
And post what it shows.
My code was pasted here, please 🙂
http://pastebin.com/XNbAw59J
Ok, I’ll try!
Hello there again,
All of above codes show the same result: full post 🙁
does shortcodes work in post content for this template?
Try replacing <?php the_content(' …'); ?>
with <?php the_excerpt(); ?>
near the bottom of the file.
@oleg Dudkin: I just tried some shortcodes, it works fine.
@esmi: I want to keep post formatting 🙂 so, I can’t use the_excerpt 🙂
try
echo array_shift(explode('<!--more-->', $post->post_content));
instead of the_content();