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

  1. pklaus
    Posted 4 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


  2. Mikko Saari
    Posted 4 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
    Posted 4 years ago #

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

    This is how it looks by the way:

  4. Mikko Saari
    Posted 4 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
    Posted 4 years ago #

    Same problem here.

    I zonked the output I didnt want to see with

    body.search-results div.post-teaser-block {

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

  6. pklaus
    Posted 4 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:


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Post Teaser
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic