[SOLVED] How can I disable lines joining?
I don't like that posts are shown with cut line breaks (\r\n) on main page. How can I show them as is with line breaks?
Thanks for help. |
you will have to explain this a bit more and point to an example.
|
Quote:
For example my post consist from following 2 lines: Line 1. Line 2. As result this post on main page will be shown as: Line 1. Line 2. |
what you are seeing is an 'excerpt' vrs the full post. you should read about the_excerpt() in teh WordPress codex
|
So, I found solution.
It is necessary to replace //$content = get_the_content(''); $content = get_the_content_with_formatting(''); in bfa_excerpt, where function get_the_content_with_formatting ($more_link_text = '') { $content = get_the_content($more_link_text); $content = apply_filters('the_content', $content); // add your modifications from here echo $content; } |
All times are GMT -6. The time now is 06:04 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.