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 $the_query = new WP_Query( array( 'post_type' => 'slider', 'order' => 'ASC' ) ); ?> | |
<?php if ( $the_query->have_posts() ) : ?> | |
<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?> | |
<img src="<?php the_field('slide_image'); ?>" alt="<?php the_field('slide_title'); ?>" /> | |
<?php the_field('slide_title'); ?> | |
<?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
<?php echo esc_url( get_permalink( $post ) ); ?> |
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 echo do_shortcode('['.get_field('custom_field_name').']'); ?> |
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 $the_query = new WP_Query( array( 'post_type' => 'post', 'order' => 'ASC' ) ); ?> | |
<?php if ( $the_query->have_posts() ) : ?> | |
<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?> | |
<?php get_template_part( 'template-parts/page/content', 'front-page' ); ?> | |
<?php endwhile; ?> | |
<?php wp_reset_postdata(); ?> | |
<?php 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
<?php | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php | |
*/ | |
$args = array( |
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
$('html, body').animate({ | |
scrollTop: ($('.sroll-to-element').first().offset().top) | |
},500); | |
// Scroll to Main content | |
$( '.scroll-to-content' ).click(function() { | |
$('html, body').animate({ | |
scrollTop: ($('.homepage-main').first().offset().top) | |
},800); | |
}); |
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
/** | |
* Theme Options | |
*/ | |
add_action('customize_register', function($wp_customize) { | |
/** | |
* Add Custom Logo | |
*/ | |
$wp_customize->add_setting('logo_img'); |
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
// Hide outline for all links | |
$('a').on('mousedown', function(){ | |
$(this).css('outline', 'none'); | |
}); | |
// Scroll to Main content | |
$( '.scroll-to-content' ).click(function() { | |
$('html, body').animate({ | |
scrollTop: ($('main').first().offset().top) | |
},800); |
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
/* functions.php */ | |
// Create pagination | |
function foundation_pagination( $query = '' ) { | |
if ( empty( $query ) ) { | |
global $wp_query; | |
$query = $wp_query; | |
} | |
// required for static front-page pagination | |
if ( get_query_var('paged') ) { |
OlderNewer