Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6839

    …another bug!

    If you format text into columns inside a post using the shortcode function eg [one_half first] [/one_half], the text doesn’t appear as an excerpt in the blog. Only the title appears.

    Any way to fix this?

    Thanks

    #55663

    Hey,

    open up shoutboxframeworkphpfunction-set-avia-frontend.php and replace:

    if($post->post_excerpt)
    {
    $excerpt = get_the_excerpt();
    }
    else
    {
    $excerpt = preg_replace("![.+?]!", "", get_the_excerpt());
    // $excerpt = preg_replace("![.+?]!", "", $post->post_content);
    $excerpt = avia_backend_truncate($excerpt, $length," ");
    }

    with:

    if($post->post_excerpt)
    {
    $excerpt = get_the_excerpt();
    }
    else
    {
    $excerpt = strip_shortcodes( get_the_excerpt() );
    $excerpt = preg_replace("![.+?]!", "", $excerpt);
    // $excerpt = preg_replace("![.+?]!", "", $post->post_content);
    $excerpt = avia_backend_truncate($excerpt, $length," ");
    }

    #55664

    Hey Dude,

    I tried that, but it didn’t work, sorry.

    :O/

    Incidentally, when I look at these long code fixes in Firefox I get these stupid double sliders that make it really difficult to read the code horizontally (you can’t click the bottom slider to scroll). Why is that happening?

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘And while we're about it…’ is closed to new replies.