This topic has 8 replies, 3 voices, and was last updated 8 years by carlostinca.
-
Author
-
August 11, 2016 at 21:07 #132114carlostincaParticipant
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 Loopif ( $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!
August 13, 2016 at 00:07 #132242LauraModeratorHello, 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 solutionLaura 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 🙂
August 15, 2016 at 17:22 #132493RaduModeratorHi,
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 solutionAugust 16, 2016 at 20:00 #132693carlostincaParticipantHi 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,
CarlosAugust 17, 2016 at 17:54 #132851RaduModeratorJust 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 solutionAugust 17, 2016 at 18:41 #132873carlostincaParticipantHi 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,
CarlosAugust 17, 2016 at 18:57 #132878RaduModeratorHi,
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 solutionAugust 23, 2016 at 20:59 #133558carlostincaParticipantHi Radu,
I contacted two times to the mail you said but i got no answer yet.
Thanks,
Carlos -
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.