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 | |
function index_EDD_FES_multiselect( $params, $class ) { | |
if ( 'product_style' == $params['facet_name'] ) { | |
$choices = explode( '| ', $params['facet_display_value'] ); | |
foreach ( $choices as $choice ) { | |
$params['facet_value'] = $choice; | |
$params['facet_display_value'] = $choice; | |
$class->insert( $params ); | |
} |
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
<script> | |
(function($) { | |
$(document).on('facetwp-loaded', function() { | |
var cookie_data = JSON.stringify(FWP.settings.post_ids); | |
setCookie("fwp_posts", cookie_data, 7); | |
}); | |
})(jQuery); | |
function setCookie(cname, cvalue, exdays) { | |
var d = new Date(); |
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
<div class="nav-wrapper"><!-- placeholder --></div> | |
<script> | |
(function($) { | |
$(function() { | |
var post_id = <?php echo $post->ID; ?>; // grab the current post ID | |
var data = getCookie('fwp_posts'); // get the cookie | |
if ('' != data) { | |
data = JSON.parse(data); | |
var pos = data.indexOf(post_id); |
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
<script> | |
(function($) { | |
$(document).on('facetwp-loaded', function() { | |
$('.product_boxes .box').addClass('fadeIn animated'); | |
}); | |
})(jQuery); | |
</script> |
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 | |
function custom_slider_logic( $response, $params ) { | |
$facet = $params['facet']; | |
// Change the facet name | |
if ( 'YOUR_FACET_NAME' == $facet['name'] ) { | |
global $wpdb; | |
$values = $params['selected_values']; |
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 | |
function my_facetwp_is_main_query( $is_main_query, $query ) { | |
if ( isset( $query->query_vars['post_type'] ) ) { | |
if ( 'edd_wish_list' == $query->query_vars['post_type'] ) { | |
$is_main_query = false; | |
} | |
} | |
return $is_main_query; | |
} |
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 while ( have_posts() ): the_post(); ?> | |
<?php get_template_part('template_sections-dress_grid'); ?> | |
<?php endwhile; ?> |
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
^[-]?([1-8]?\d(\.\d+)?|90(\.0+)?),[-]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)$ |
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 | |
function fwp_get_post_coords( output, $class ) { | |
$coords = array(); | |
$post_ids = (array) $class->query_args['post__in']; | |
foreach ( $post_ids as $post_id ) { | |
$coords[ $post_id ] = array( | |
'title' => get_the_title( $post_id ), | |
'lat' => GET_THE_LATITUDE( $post_id ), |
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 | |
return array( | |
'post_type' => 'job_listing', | |
'posts_per_page' => 18, | |
'post_status' => 'publish', | |
'orderby' => 'post__in', | |
'order' => 'ASC' | |
); |
OlderNewer