This topic has 8 replies, 3 voices, and was last updated 8 years by carlostinca.

  • Author
  • #132114
     carlostinca
    Participant

    Hi,

    I working with Ultimate QP Query Filter to create a custom search. And i want to show it like the search page. I tried to take some code from the search page but i cant get exactly like the results. How can it be done? Here is the code we have:

     

    <code>add_filter(‘uwpqsf_result_tempt’, ‘customize_output’, ”, 4);
    function customize_output($results , $arg, $id, $getdata ){
    // The Query
    $apiclass = new uwpqsfprocess();
    $query = new WP_Query( $arg );
    ob_start();    $result = ”;
    // The Loop

    if ( $query->have_posts() ) {

    //Specific class for post listing */
    $blog_type = sq_option(‘blog_type’,’masonry’);
    $blog_type = apply_filters( ‘kleo_blog_type’, $blog_type );

    $template_classes = $blog_type . ‘-listing’;
    if (sq_option(‘blog_archive_meta’, 1) == 1) { $template_classes .= ‘ with-meta’; } else { $template_classes .= ‘ no-meta’; }

    add_filter(‘kleo_main_template_classes’, create_function(‘$cls’,’$cls .=” posts-listing ‘.$template_classes.'”; return $cls;’));

    echo ‘<div class=”row responsive-cols kleo-masonry per-row-‘ . sq_option( ‘blog_columns’, 4 ) . ‘”>’;

    while ( $query->have_posts() ) {
    $query->the_post();
    global $post;

    if ($blog_type != ‘standard’) :
    get_template_part( ‘page-parts/post-content-‘ . $blog_type );
    else:
    get_template_part( ‘content’, get_post_format() );
    endif;

    }
    echo ‘</div>’;
    echo  $apiclass->ajax_pagination($arg[‘paged’],$query->max_num_pages, 4, $id, $getdata);
    } else {
    echo  ‘no post found’;
    }
    /* Restore original Post Data */
    wp_reset_postdata();

    $results = ob_get_clean();
    return $results;

    }</code>

     

    Also, how can we have a smooth scroll when i click in some button or menu? I see that you had in the demo page but i cant figure out how to use.

     

    Thanks!

    #132242
     Laura
    Moderator

    Hello, will assign the ticket to a higher support level who can help and advise you in your query.
    Thanks! ?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #132265
     carlostinca
    Participant

    Thank you Laura!

    #132493
     Radu
    Moderator

    Hi,

    I’ve installed that plugin and just I’ve added the shortcode for a search form and it shows by default our search page.

    For the smooth scroll you should add this class to that menu item, kleo-scroll-to

    https://drive.google.com/open?id=0Bxo5b6iHWRMwQnBXWHVFWE1HNHc

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #132693
     carlostinca
    Participant

    Hi Radu, you tried with Ajax Search? By deafult it redirect to search page. I need to add the style of the results in the ajax search result.

    Regarding the smooth scroll, thanks! And if i want to add that scroll to a button?

    Thanks,
    Carlos

    #132851
     Radu
    Moderator

    Just I’ve tested, and for this, it should be made an integration, I will add this on improvement list and maybe in future this will be done

    If you really need to achieve that functionality you can start a collaboration with a developer.

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #132873
     carlostinca
    Participant

    Hi Radu,

    You offer custom support to make this? You probably will do this more faster that other developer that dont know about the template.

    There is a mail that i can contact?

    Thanks,
    Carlos

    #132878
     Radu
    Moderator

    Hi,

    For custom development please write us to dev@seventhqueen.com

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #133558
     carlostinca
    Participant

    Hi Radu,

    I contacted two times to the mail you said but i got no answer yet.

    Thanks,
    Carlos

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

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?