This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

AUTOPOPULATE + CUSTOM POST

Home Forums Product Support Forums Ajax Search Pro for WordPress Support AUTOPOPULATE + CUSTOM POST

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #20468
    parada1280parada1280
    Participant

    Hello this is what im trying to do:
    I want to autopopulate a page, the page has settings with a preselected list item selected (thing is countries and the preselected custom is Rusia) so it shows the states of rusia, it works, using autopopulate with no phrase and 999, the problem is i want it to load the countries in alphabetical order according to tittle. It dont work, load all the states but with no order, only when i change any setting it order the results.

    #20484
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    Make sure that the ordering is set correctly under the general options panel. If so, then can I take a look at this somewhere? I might also need back-end and temporary FTP details to check the query. Thank you!

    #20489
    parada1280parada1280
    Participant

    You cannot access this content.

    #20511
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    #20515
    parada1280parada1280
    Participant

    You cannot access this content.

    #20528
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    Thank you very much!

    I have checked the configuration on search instance number 9, I guess that was the one. Okay, so changing the auto populate options from latest results to empty search phrase will do the trick: https://i.imgur.com/d2ByVLZ.png
    Currently it is set to ‘Latest results’, which will return them by date.

    #21810
    parada1280parada1280
    Participant

    You cannot access this content.

    #21832
    Ernest MarcinkoErnest Marcinko
    Keymaster

    I am not sure why. Maybe try this variation:

    add_action('wp_footer', 'asp_scroll_to_nav_top');
    function asp_scroll_to_nav_top() {
      ?>
      <script>
      jQuery(function($){
        $('.asp_r').on('click touchstart touchend', '.asp_navigation *', function(e){
          var stop = $(this).closest('.asp_r').offset().top - 20; 
          if ( $('html').scrollTop() > stop ) { 
            $('html').animate({
                "scrollTop": stop
            }, {
                duration: 500
            });
          }
        });  
      });
      </script>
      <?php
    }
Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘AUTOPOPULATE + CUSTOM POST’ is closed to new replies.