Forums › Forums › Search & Filter Pro › Empty spaces on page for non-displayed posts
Tagged: Formatting
- This topic has 16 replies, 2 voices, and was last updated 8 years, 5 months ago by Anonymous.
-
Anonymous(Private) July 9, 2016 at 7:18 am #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?
Trevor(Private) July 9, 2016 at 1:24 pm #50658Did you follow the hints about Avada on this page:
http://www.designsandcode.com/wordpress-plugins/search-filter-pro/faqs/
Anonymous(Private) July 9, 2016 at 2:31 pm #50659Hi,
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?
Anonymous(Private) July 9, 2016 at 3:01 pm #50661Hi,
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. -
AuthorPosts