Last active
August 29, 2015 14:16
-
-
Save avantegarde/ae962cba5ddee5b2aef6 to your computer and use it in GitHub Desktop.
Pass Search and Filter Queries to Ajax Load More Shortcode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$sfidsearch = get_query_var( 'sfid'); | |
$catsearch = get_query_var( '_sft_category'); | |
$sfsearch = get_query_var( 's'); | |
?> | |
<?php echo do_shortcode('[ajax_load_more post_type="post" offset="6" posts_per_page="6" max_pages="0" button_label="Load More" category="' . $catsearch .'" search="' . $sfsearch .'"]'); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment