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

Forum Replies Created

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • in reply to: Display the results information box problem. #35517
    danilocubrovic05danilocubrovic05
    Participant

    Well I kind of glue this thing but still want to check if I’m missing something. Maybe there is an better solution for this.
    I have use asp_results filter to set number of results in global variable so I can use this number for number of results if ajax search is executed.

    add_shortcode( ‘cekos_elementor_php_output_search_results_info’, ‘get_output_search_results_info’ );

    function get_output_search_results_info( $atts) {
    global $archive_count_results;
    $post_count = $GLOBALS[‘wp_query’]->found_posts;
    if ($archive_count_results){
    return “Found ” . $archive_count_results.” results from “.$post_count.” posts”;
    }else{
    return “Found ” . $post_count.” results from “.$post_count.” posts”;
    }
    }

    add_filter( ‘asp_results’, ‘asp_custom_link_results’, 10, 1 );
    function asp_custom_link_results( $results ) {
    global $archive_count_results;
    $count_results = count($results);
    $archive_count_results = $count_results;
    return $results;
    }

    in reply to: Display the results information box problem. #35516
    danilocubrovic05danilocubrovic05
    Participant

    Hello one more time.
    I’m trying to fix this for now buy using shortcode with custom function to show result number.

    $post_count = $GLOBALS[‘wp_query’]->found_posts;
    return “Ukupno rezultata: ” . $post_count;

    This shows total number of results with empty search but does not reduce that number when searching.

    (I have check this function via using time() and it executes ok everytime search executed and refresh data)
    So can we use something instead $GLOBALS[‘wp_query’]->found_posts to get valid number of posts when using asp?
    If we can get some more information there like search phrase too is even better.

    in reply to: Display the results information box problem. #35473
    danilocubrovic05danilocubrovic05
    Participant

    Thanks for fast response. Hope it will be possible soon.
    If possible notify when this feature find way to production version.

    Best regards,
    Danilo Cubrovic

    in reply to: Back button problem with elementor and posts #35338
    danilocubrovic05danilocubrovic05
    Participant

    My bad. This is some additional widget that have nothing with asp and will be replaced.
    Sorry about that and thanks four your help.
    Everything looks great now.

    in reply to: Back button problem with elementor and posts #35329
    danilocubrovic05danilocubrovic05
    Participant

    Hello Ernesto,

    thanks for fast response.
    You have great plugin but large number of options in it make it harder to resolve stuff like this without your help. I really appreciate it,

    But even so this tweak resolve problem for page you have tested (and few more search engines)
    it does not resolve issue for all of ours search engines.

    On main page
    https://proba.cekos.rs/
    we have search engine below “Knjige iz svih oblasti” select.
    On that search after going to post listed in results and using back button
    user gets that page with repopulated search field but results are not filtered (all results shown there)
    Furthermore even if we click on search button and search text is valid nothing happens.
    Only workaround there is to add delete some letter to make search takes effect and filter results.
    Can you resolve this situation? I assume this is somewhat more complex / different usage (I’m not editor so not familiar with all use cases)

    (I send you screenshots for this process)

    in reply to: Taxonomy filter not working #33317
    danilocubrovic05danilocubrovic05
    Participant

    Thank’s. That’s it.
    Once again WPML related problem 🙁
    And I have activated WPML just because it’s the only way to fix some other WPML issue with duplicated resources…
    Thanks for clearing this issue fast and you can close this ticket as resolved.

    Best regards, Danilo.

    in reply to: Reset button not working #29521
    danilocubrovic05danilocubrovic05
    Participant

    You cannot access this content.

    in reply to: Reset button not working #29511
    danilocubrovic05danilocubrovic05
    Participant

    I have installed this update. Everything is working fine now. Thanks for fixing this issue.

    in reply to: Reset button not working #29288
    danilocubrovic05danilocubrovic05
    Participant

    When we can expect update with fix for this issues? We have to roll out our site to public in next few weeks and we can’t use this, otherwise great, plugin for search on our pages.
    Best regards, Danilo.

    in reply to: Reset button not working #29231
    danilocubrovic05danilocubrovic05
    Participant

    Thanks for fast reply and update.
    It;s much better now but still have one issue left as I can see so far.
    When I just changed categories and reset everything works as expected. Categories set to default and search results reloaded and it’s all good.
    But when I have entered search keyword (e.g., 1.09.2020.) and get good search results for this
    and I hit reset button. Search box is reset to empty but I still have that search results shown from last search. I have to hit enter or search button to get valid search results for current search form.
    I need to get valid search results instant on reset button (just like this form works when only categories have been changed.)

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