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
Solution 1 using negative margins (doesn't break responsiveness) | |
.row{ | |
overflow: hidden; | |
} | |
[class*="col-"]{ | |
margin-bottom: -99999px; | |
padding-bottom: 99999px; | |
} |
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 | |
global $post; | |
global $property_meta_data, $property_data,$hide_property_fields; | |
$location_dropdowns = ere_get_option('location_dropdowns',1); | |
$property_location = get_post_meta( $property_data->ID, ERE_METABOX_PREFIX . 'property_location', true ); | |
$property_map_address = isset($property_location['address']) ? $property_location['address'] : ''; | |
list( $lat, $long ) = isset($property_location['location']) ? explode( ',', $property_location['location'] ) : array('', ''); | |
$property_item_status = wp_get_post_terms( $post->ID, 'property-status' ); |
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
function filter_plugin_updates( $value ) { | |
unset( $value->response['akismet/akismet.php'] ); | |
return $value; | |
} | |
add_filter( 'site_transient_update_plugins', 'filter_plugin_updates' ); |
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 if(get_field( 'repeater_name')): ; ?> | |
<?php $i=0; while(has_sub_field( 'repeater_name')):; ?> | |
<div class="row university"> | |
<div class="col-sm-12 title-block"> | |
<h2><?php the_sub_field('sub_field_one'); ?></h2> | |
<p class="date"><?php the_sub_field('sub_field_two'); ?></p> | |
</div> | |
<div class="col-sm-12"> | |
<div class="zoom-wrap"><a class="btn" data-toggle="modal" data-target="#myModal-<?php echo $i; ?>"><img class="img-responsive univ-thumb" src="<?php the_sub_field('sub_field_thumbnail'); ?>" alt=""/><br/><i class="fa fa-search-plus"></i> Enlarge image</a></div> | |
<!-- Modal --> |
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 | |
if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> | |
<?php $loop = new WP_Query( array('post_type' => 'portfolio', 'posts_per_page' => -1, 'order' => 'desc' ) ); ?> | |
<?php | |
$post_count = 0; | |
while ( $loop->have_posts() ) : $loop->the_post(); ?> | |
<?php | |
if ($post_count++ % 2 == 0): ?> | |
<section class="section section-secondary animated animated-left animated-in"> | |
<div class="shell extended"> |
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
/* Configure proxy Server: add this to wp-config.php */ | |
define('WP_PROXY_HOST', '172.17.9.112'); | |
define('WP_PROXY_PORT', '3128'); | |
define('WP_PROXY_USERNAME', ''); | |
define('WP_PROXY_PASSWORD', ''); | |
define('WP_PROXY_BYPASS_HOSTS', 'localhost'); |
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 id="book-<?php the_ID(); ?>"></div> |