WordPress.org

Ready to get started?Download WordPress

Forums

Post Teaser
Displaced teaser links when searching (Post Teaser and Relevanssi plugins) (6 posts)

  1. pklaus
    Member
    Posted 3 years ago #

    Hello! I encounter a problem with the two plugins Relevanssi and Post Teaser. I don't know, which is causing the problem, but here are the facts:

    When I search my blog using the search box (the search being provided by the Relevanssi plugin), I get not only the result posts (including their teaser) but just on top of the page (directly following the <body> tag) there are a number of strange "teasers":

    Permanent link to this post (2 words, estimated 0 secs reading time)
    [...]
    Permanent link to this post (2 words, estimated 0 secs reading time)

    The number of these links is proportional to the number of posts found.

    Do you know how to resolve the issue or how I should further investigate the issue?

    Thx a lot! Philipp

    http://wordpress.org/extend/plugins/post-teaser/

  2. Mikko Saari
    Member
    Posted 3 years ago #

    Is it one extra teaser per post found or what? Something Relevanssi does is triggering Post Teaser and/or Post Teaser is being overly sensitive.

  3. pklaus
    Member
    Posted 3 years ago #

    Yes, exactly. For each post found there one more of the links.

    This is how it looks by the way:
    http://blog.philippklaus.de/?s=piwik&searchsubmit=.

  4. Mikko Saari
    Member
    Posted 3 years ago #

    Looks like Post Teaser is attached to the_content hook. Relevanssi does apply the_content filters at some point in the process and I suppose Post Teaser is run then, causing the unnecessary teasers. Don't know how to fix it, sorry.

  5. TWD
    Member
    Posted 3 years ago #

    Same problem here.

    I zonked the output I didnt want to see with
    CSS

    body.search-results div.post-teaser-block {
      display:none;
    }

    Not ideal and I still get a FOUC but its usable i think.

  6. pklaus
    Member
    Posted 2 years ago #

    Hi! Yeah, thanks for your answer. I was disabling relevanssi for the time being but now with the CSS hiding the elements, I reactivated it. Not perfect, but it does the job for me. Thx again!

    For everyone who want's to know what the problem is, here is a screenshot of the problem:

    http://cl.ly/3f2n2c0n1u1w33043c07

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic