Forums Forums Search & Filter Pro "Download File" text in results page, can't remove it.

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Anonymous
    #196014

    Have the plugin working, but get some strange behavior in the results list I can’t figure out.

    If there is NOT an Excerpt added for the post, then in its place appears the text “Download File [1.4MB]” (file size varies), but every post will have it unless there was an excerpt saved for the post.

    Download File will disappear once an excerpt is added for the post.

    If I remove the call for the_excerpt in the results.php file then the
    Download File text goes away and obviously all the excerpts if there was one.

    Is it some kind of placeholder text?
    Any clues on what is causing this text to appear and how to get rid of it?

    Any help is appreciated,
    Ray

    Search & Filter Pro v2.4.6

    Trevor
    #196037

    If you want nothing if there is no written excerpt, the replace this:

    <?php the_excerpt(); ?>

    with this:

    <?php $my_excerpt = get_the_excerpt(); if($my_excerpt !='') the_excerpt();?>

    Anonymous
    #196092

    That did the trick.

    Thought there might be a setting to tweak but this will work.

    Thank you.
    R

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