Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Montezuma Theme (http://forum.bytesforall.com/forumdisplay.php?f=53)
-   -   [SOLVED] How can I disable lines joining? (http://forum.bytesforall.com/showthread.php?t=18858)

arteny Nov 7, 2012 04:17 PM

[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.

juggledad Nov 7, 2012 05:11 PM

you will have to explain this a bit more and point to an example.

arteny Nov 8, 2012 02:47 AM

Quote:

Originally Posted by juggledad (Post 92388)
you will have to explain this a bit more and point to an example.

juggledad, examples are on each blog with this theme.
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.

juggledad Nov 8, 2012 03:47 AM

what you are seeing is an 'excerpt' vrs the full post. you should read about the_excerpt() in teh WordPress codex

arteny Nov 11, 2012 02:41 PM

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 08:33 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.