• I noticed an issue similar to the Fix a bug with lack of search results thread (but that post is closed to new replies). For example, using global $wp_query; echo $wp_query->found_posts; showed that 3 results were found by WP/Relevanssi but only 2 posts were being displayed by ALM.

    The code from his post didn’t work for me, but wanted to share that I realized I had sticky_posts="true" on my shortcode (likely because I copied from a different ALM shortcode) and removing it fixed the issue. Maybe this is a bug, as I don’t think there’s anything wrong with having sticky_posts=”true” in this instance, but there ya go.

    • This topic was modified 3 years, 4 months ago by jvwx. Reason: Wrong attribute
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    Hi @enfueggo
    Thanks for reporting this!

    Sounds like a bug, but also a use case I never thought about.

    thanks again.

    chrisgot

    (@chrisgot)

    Also, neither of the shortcode attributes “preloaded” nor “repeater” work. When preloaded is used, there are no search results, and the default template is always used no matter which repeater template is chosen.

    [ajax_load_more id=”relevanssi” preloaded=”true” preloaded_amount=”6″ repeater=”template_4″ search=”‘. $term .'” post_type=”post, page, attachment”]

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Lack of results’ is closed to new replies.