Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

[SOLVED] How can I disable lines joining?


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Nov 7, 2012, 04:17 PM
arteny
 
22 posts · Nov 2012
Russia, Voronezh
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.
  #2  
Old Nov 7, 2012, 05:11 PM
juggledad's Avatar
juggledad
 
21,689 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
you will have to explain this a bit more and point to an example.
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support
  #3  
Old Nov 8, 2012, 02:47 AM
arteny
 
22 posts · Nov 2012
Russia, Voronezh
Quote:
Originally Posted by juggledad
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.
  #4  
Old Nov 8, 2012, 03:47 AM
juggledad's Avatar
juggledad
 
21,689 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
what you are seeing is an 'excerpt' vrs the full post. you should read about the_excerpt() in teh WordPress codex
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support
  #5  
Old Nov 11, 2012, 02:41 PM
arteny
 
22 posts · Nov 2012
Russia, Voronezh
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;
}

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable comments Harald Comments, trackbacks & pings 7 Nov 25, 2013 05:39 PM
[SOLVED] Disable Like windy Center area post/pages 2 Dec 13, 2011 09:41 AM
disable single post pages & disable link in post titles jen Center area post/pages 0 Jan 11, 2010 02:09 PM
If you disable the blog title...? Danielwerner Header configuration & styling 1 Nov 15, 2009 07:06 PM


All times are GMT -6. The time now is 03:38 AM.


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