Forums Forums Search & Filter Pro Pagination not working

Viewing 10 posts - 1 through 10 (of 26 total)
  • Anonymous
    #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.

    Trevor
    #64824

    Hi Oscar. You say that this is standard Twenty Sixteen. This sort of implies that you have made no changes to it, but the site does not have the style of Twenty Sixteen?

    Anonymous
    #65321

    Hello 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-servicios

    Thanks in advance.

    Trevor
    #65361

    Have you got the General tab ‘Maintain Search form state’ checked (ON)?

    Anonymous
    #65412

    No. I have tried right now with that checked and it doesn’t work as well

    Trevor
    #65420

    I had meant (my poor use of words) to make sure that it WAS off?

    On the General tab, and in the form field, what search condition is set? AND or OR? It looks like OR is being used somewhere.

    Anonymous
    #65520

    Hehe, don’t worry, my English is confussing sometimes. I have that parameter OFF, but yesterday I tried it with it ON, just in case.
    This is my configuration:
    General tab / Field relationships: AND

    Trevor
    #65522
    This reply has been marked as private.
    Anonymous
    #65524
    This reply has been marked as private.
    Trevor
    #65536

    I 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">&hellip;</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 -->
Viewing 10 posts - 1 through 10 (of 26 total)