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
<button class="btn btn-warning btn-offer btn-buy" data-toggle="modal" data-target="#modal1">Wykup udział</button> | |
<div class="modal fade bs-example-modal-lg" id="modal1" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel"> | |
<div class="modal-dialog modal-lg"> | |
<div class="modal-content offer-form offer-form-modal"> | |
<h3>Poproś o wycene:</h3><?php echo do_shortcode('[contact-form-7 id="375" title="Poproś o wycene"]'); ?> | |
</div> | |
</div> | |
</div> |
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 | |
$q = new WP_Query( array( 'post_type' => 'page', 'post_parent' => $page_ID, 'depth' => 1, 'posts_per_page' => 4, 'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1) ) ); | |
if ( $q->have_posts() ) : while ( $q->have_posts() ) : $q->the_post(); | |
?> | |
<?php endwhile; | |
if ( get_option('permalink_structure') ) { | |
$format = 'page/%#%'; | |
} else { | |
$format = '&paged=%#%'; | |
} |
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 | |
$page_ID = $post->ID; | |
$lightbox_id = 1; // important to set lightbox id outside the loop | |
$q = new WP_Query( array( 'post_type' => 'page', 'post_parent' => $page_ID, 'depth' => 1, 'posts_per_page' => -1 ) ); | |
if ( $q->have_posts() ) : while ( $q->have_posts() ) : $q->the_post(); | |
$slider_array = array(get_field('slider_1') , get_field('slider_2') , get_field('slider_3') , get_field('slider_4')); | |
?> |
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
/////////////// IN FUNCTION.PHP /////////////// | |
function wpb_set_post_views($postID) { | |
$count_key = 'wpb_post_views_count'; | |
$count = get_post_meta($postID, $count_key, true); | |
if($count==''){ | |
$count = 0; | |
delete_post_meta($postID, $count_key); | |
add_post_meta($postID, $count_key, '0'); | |
}else{ |
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
$page_ID = $post->ID; | |
$args = array( | |
'child_of' => $page_ID, | |
// 'authors' => '', | |
// 'date_format' => '', | |
'depth' => 1 | |
// 'echo' => '', | |
// 'exclude' => '', | |
// 'include' => '', |
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
<img src="<?php echo get_template_directory_uri(); ?>/img/our_guests.jpg" alt="" class="img-responsive" /> |
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
.absolute-center { | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
-webkit-transform: translate(-50%, -50%); | |
-ms-transform: translate(-50%, -50%); | |
transform: translate(-50%, -50%); | |
} |
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 $q = new WP_Query( array( 'post_type' => 'page', 'post_parent' => 97, 'depth' => 1 ) ); | |
if ( $q->have_posts() ) : while ( $q->have_posts() ) : $q->the_post(); | |
?> | |
<?php endwhile; endif;?> |
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 new_excerpt_length($length) { | |
return 20; | |
} | |
add_filter('excerpt_length', 'new_excerpt_length'); |