GetSimple Support Forum
excerpts show only "..." - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: excerpts show only "..." (/showthread.php?tid=5253)



excerpts show only "..." - ssdanie - 2013-10-08

Hi,
sorry for my very bad english...
I can't use the <?php get_page_excerpt('index',60); ?> function in my site, i have read much topic on that but i don't find the solution..
if I enter the code in my template, I can see only three points where instead I was expecting the 60 characters of the specified page ..
In version 3.2.3 the plugin doesn't need to be installed and enabled, right? it is enable by default? What should I check for this problem?
thanks in advance


RE: excerpts show only "..." - ssdanie - 2013-10-08

In debug mode, i can see that..
Warning: mb_substr() expects parameter 3 to be long, string given in /membri/../../inc/theme_functions.php on line 56


RE: excerpts show only "..." - ssdanie - 2013-10-08

i have add (int) in line 56:
$content_e = trim(mb_substr($content_e, 0, $n)) . '...';
to
$content_e = trim(mb_substr($content_e, 0,(int) $n)) . '...';
the error disappear but the plugin don't display the post line..


RE: excerpts show only "..." - shawn_a - 2013-10-08

get_page_excerpt only excepts the current page.

You are sending a slug as param 1,

PHP Code:
* @param string $n Optional, default is 200.
 
* @param bool $html Optional, default is false.  
 *                 If 
this is trueit will strip out html from $content
 
* @return string Echos.
 */
function 
get_page_excerpt($n=200$html=false) { 



RE: excerpts show only "..." - ssdanie - 2013-10-08

good Sad
so i can't have a excerpts from another page?
I have read some workaround, but it isn't so easy implement it in my contest..
ex. a div with fix height and overflow hidden..

thank's for reply..


RE: excerpts show only "..." - shawn_a - 2013-10-08

There are excerpt plugins