• Resolved Xaifu

    (@xaifu)


    Hello!

    On the archive page of a CPT, I’m using “Filter Everything” to adjust the listing of posts based on the values from Advanced Custom Fields (ACF) custom fields.

    I’m encountering an issue where, if the filter results in zero posts, the page still displays content on page.

    Why isn’t the listing completely empty when there are no results? 

    Here you can check it (filters are active to show the problem): https://rb.gy/i7n1f

    Regards,
    Daniel

    • This topic was modified 1 year, 1 month ago by Xaifu.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support fesupportteam

    (@fesupportteam)

    Hi @xaifu

    Thank you for your interest in the Filter Everything plugin.

    Here, is how it looks when there are no products found by the filter – https://netropol.es/mocar/vehiculos/?_marca=bmw Currently, you have all of the filters showing 1 product. But the implementation of the containers is still weird and show some blue line no matter what.

    Best Regards – Victor

    Thread Starter Xaifu

    (@xaifu)

    Hi @fesupportteam

    The archive page of the CPT where I’m using Filter Everything uses a content template from Generate Press.

    To address the issue of content being displayed even when the results are zero, the technical support team from Generate Press mentioned that they can fix it if the developers of Filter Everything can provide insights on:

    “How do we determine that the AJAX query has returned zero results?
    If we can identify that, then we might be able to instruct the Content Template to step aside.”

    Does Filter Everything have any method to signal when the result is zero?

    Regards
    Daniel

    Plugin Support fesupportteam

    (@fesupportteam)

    Hi @xaifu

    Not really, but we have a function where you place the id of the filter set to display amount of posts:

    /**
     * @return int|null number of posts found
     */
    flrt_posts_found_quantity( $filter_set_id )

    Best Regards – Victor

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Archive Page Displays Content Even with Filters Active That Yield Zero Results’ is closed to new replies.