Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
excerpts show only "..."
#1
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
Reply
#2
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
Reply
#3
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..
Reply
#4
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) { 
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#5
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..
Reply
#6
There are excerpt plugins
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply




Users browsing this thread: 1 Guest(s)