Forums Forums Search & Filter Pro Empty spaces on page for non-displayed posts

Tagged: 

Viewing 10 posts - 1 through 10 (of 17 total)
  • Anonymous
    #50645

    I have a problem that I noticed in the past but don’t seem to have dealt with or resolved. I will explain:

    If I go to the archive page for one of my custom posts, all is well. Pagination now seems to work okay and so on. The page is set to show 24 posts (both in the theme and S&F), and then paginate.

    The problem starts when I use the filters. If I choose option abc (which is showing 7 posts) in the filter bar, I get shown a page which has the 7 resuts (as expected) and the empty space where the rest of the 24 would be if they were being displayed. Miles of white space.

    Similarly, if I use the search filter and choose option xyx which has 37 posts, the first page shows 24, as expected. If I click on page 2, I get a page with 13 posts (as expected) and an empty space where the rest of the 24 posts might be if they were being displayed.

    Plainly, I can’t blame this on the theme as it doesn’t have a search filter of this type and without a search filter the theme obediently shows me the expected 24 results, but I know that on an archive page with only one post, the theme (without search filters) shows me just the one post and no white space.

    How do I solve this and remove spaces for posts that are not being displayed?

    Anonymous
    #50646
    This reply has been marked as private.
    Trevor
    #50652

    Is the theme using a masonry grid? If so, it looks like the masonry script isn’t be re-run.

    Anonymous
    #50656

    Yes, well, it’s using what avada call a grid layout, but it’s masonry by any other name.
    How would I do that?

    Trevor
    #50658

    Did you follow the hints about Avada on this page:

    http://www.designsandcode.com/wordpress-plugins/search-filter-pro/faqs/

    Anonymous
    #50659

    Hi,

    Well, no because the references to avada mentioned code that is different than that on the archive templates I adapted. The loop, which includes all sorts of clever stuff relating to images and god knows what else, starts with .. while ( have_posts() ): the_post();

    And then a load more…

    I suppose I could try and build a different template using the search.php but would that make any difference anyway?

    Trevor
    #50660

    mmm

    Then I guess that Ross is going to have to have a look over the template you made to see how you made it and if it can be better integrated.

    Before that, I think we need to have a chat, by voice and maybe screen share on Skype?

    Anonymous
    #50661

    Hi,

    I don’t use Skype, I’m afraid. I seem to be the only person who doesn’t, but I only get asked to use it twice a year, so I’ve never seen the need.

    Maybe I should attach a copy of the template – I had a look and the search.php and blog.php templates share the same code – a different outer template that then calls blog-layout.php which contains the loop (and in my case added bits and bobs) so it looks like it wouldn’t make any difference whether I use search or blog pages for my templates.

    I was going to attach the php file to this, but I see there isn’t an attachment button.
    Anyway, I have to stop now so I’ll catch up on this later this evening.

    Trevor
    #50664
    This reply has been marked as private.
    Anonymous
    #50692

    I live in Italy and I don’t get international calls free on my mobile, and I doubt you do!
    I prefer email anyway. What was it you wanted to ask or find out?

Viewing 10 posts - 1 through 10 (of 17 total)