Forums › Forums › Search & Filter Pro › Pagination not working
- This topic has 25 replies, 2 voices, and was last updated 8 years ago by Trevor.
-
Anonymous(Private) October 18, 2016 at 12:46 pm #64779
Hello,
I have two issues that I have searched for in the support forum but I couldn’t resolve. I think both of them are easy to fix, but I don’t know how to do it.
First, my pagination is not working. My form is working in an archive page of and standard theme of WordPress (Twenty Sixteen). When I search something the pagination doesn’t update. Always shows 5 available pages.
Apart from that, when I search for something that has no results, e.g. “cooperar”, the page doesn’t show “No results found” or something like that. It stays in the before results page.
Trevor fixed another problem last week. The same login details are available if you need to get in to the WordPress panel (https://support.searchandfilter.com/forums/topic/search-field-not-working-in-cpt/).
Thanks in advance.
Anonymous(Private) October 20, 2016 at 12:56 pm #65321Hello Trevor,
sorry for the late reply. Yesterday we were working in other project.We work with a child of Twenty Sixteen theme where we have set new CSS to change all the styles. Also, we have rewritten some templates but we haven’t added or changed too many things. They are more or less the defaults with maybe a new div or something like that.
We have solved one of the two issues we had: Now the pagination is working properly. The problem was that we had defined a div for the search results and we had left out the pagination part. We didn’t know it was necessary to put the pagination inside that div.
So now, we are focused in solve the other question: when something with no results is searched, the results don’t change. They stay as they were after the last query.
If you have anything to help us, just let me know, please.
The page with the filters is here: http://www.gizatea.net.mialias.net/productos-y-serviciosThanks in advance.
Trevor(Private) October 21, 2016 at 10:11 am #65536I think I can see a problem, but not where it is. You have edited the 2016 theme and made mistakes with the html. In each article I can see a broken
</ul>
ending, e.g.<article id="post-331" class="post-331 empresa type-empresa status-publish hentry promotora-penascal-s-coop-i-s ambito-autonomico provincia-bizkaia sector-alimentacion"> <header class="entry-header"> <h2 class="entry-title"><a href="http://www.gizatea.net.mialias.net/productos-y-servicios/ekoizan-s-l/" rel="bookmark">EKOIZAN, S.L.</a></h2> </ul> </header> <!-- .entry-header --> <ul class="contact-info"> <li class="tel"><i class="icon-phone" aria-hidden="true" title="Teléfono"></i><span class="screen-reader-text">Teléfono: </span>944 700 704</li> <li class="url"><i class="icon-globe" aria-hidden="true" title="Página web"></i><span class="screen-reader-text">Página web: </span><a href="http://http://www.ekoizan.com" target="_blank">http://www.ekoizan.com</a> </li> </ul> <div class="servicios_short">Comercio productos ecológicos: alimentos frescos, alimentos no perecederos, comida preparada.</div> <footer class="entry-footer"> </footer> <!-- .entry-footer --> </article>
Look in the article header, after the closing h2.
Then, after the nav section (after the articles, there is a closing
</main>
, which shows as an error. I think there SHOULD be a closing</div>
before it, which closes the search-results div (between the closing nav and closing main)?<nav class="navigation pagination" role="navigation"> <h2 class="screen-reader-text">Navegación de entradas</h2> <div class="nav-links"><span class='page-numbers current'><span class="meta-nav screen-reader-text">Página </span>1</span> <a class='page-numbers' href='http://www.gizatea.net.mialias.net/productos-y-servicios/?sf_paged=2'><span class="meta-nav screen-reader-text">Página </span>2</a> <span class="page-numbers dots">…</span> <a class='page-numbers' href='http://www.gizatea.net.mialias.net/productos-y-servicios/?sf_paged=5'><span class="meta-nav screen-reader-text">Página </span>5</a> <a class="next page-numbers" href="http://www.gizatea.net.mialias.net/productos-y-servicios/?sf_paged=2">Próxima página</a> </div> </nav> </main> <!-- .site-main --> </div> <!-- .content-area --> </div> <!-- .site-content -->
-
AuthorPosts