ThemeShaper Forums » Thematic


Page Excerpts in search results using The Excerpt Reloaded plugin

(1 post)
  • Started 11 years ago by cannobbio
  • This topic is not resolved
  1. cannobbio

    I'm using the excerpt reloaded plugin to have autommatic excerpts with post thumbnail and a read more button. I ca't get it to make excerpts for pages on search results.
    Does anyone know how to use force pages in search results to use the excerpt reloaded?
    I think I'm supposed to use this bit of code:

    $post->post_type == 'page'

    My current code in functions.php is:

    // Excerpts in archives, home and search results
    function mytheme_post($post) {
    if(is_archive() || is_home() || is_search()) {
    $post = the_excerpt_reloaded(
    100, //excerpt_length
    '', //allowedtags
    'excerpt', //filter_type
    TRUE, //use_more_link
    'Continuar leyendo', //more_link_text
    1, //force_more
    1, //fakeit
    1, //fix_tags
    0, //no_more
    'span', //more_tag
    'Continuar leyendo este artículo', //more_link_title
    1 //showdots
    return $post;
    add_filter('thematic_post', 'mytheme_post');

    Thanks in advance!

    Posted 11 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.