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
/* | |
* Author: http://stuffandnonsense.co.uk/blog/about/hardboiled_css3_media_queries/ | |
*/ | |
/* Smartphones (portrait and landscape) ----------- */ | |
@media only screen | |
and (min-device-width : 320px) | |
and (max-device-width : 480px) { | |
/* Styles */ | |
} |
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 query_posts('page=28'); ?> | |
<?php if (have_posts()) : ?> | |
<?php while (have_posts()) : the_post(); ?> | |
<?php echo get_field( 'sale_images_url', $page->ID ); ?> | |
<?php endwhile; ?> | |
<?php endif; ?> | |
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> | |
<img src="<?php echo get_field('book_cover_thumbnail');?>" /> | |
<?php end while; 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 if ( have_posts() ) : ?> | |
<?php while ( have_posts() ) : the_post(); ?> | |
<!-- do stuff ... --> | |
<?php endwhile; ?> | |
<?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
--------sample.php-------------- | |
<?php get_header(); ?> | |
<div class="container"> | |
<div class="row"> | |
<div class="eventBody itemBody"> | |
<?php query_posts('post_type=events&posts_per_page=3'); ?> | |
<?php if (have_posts()) : ?> | |
<?php while (have_posts()) : the_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
<a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"> | |
************* | |
<?php | |
if ( is_front_page() && is_home() ) : ?> | |
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> | |
<?php else : ?> | |
<p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p> | |
<?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
<!-- Carousel --> | |
<div id="newsCarousel" class="carousel slide" data-ride="carousel"> | |
<!-- Wrapper for slides --> | |
<div class="carousel-inner" role="listbox"> | |
<?php | |
// Item size (set here the number of posts for each group) | |
$i = 3; | |
// Set the arguments for the query | |
global $post; | |
$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
<ul class="styleUl categoryList"> | |
<?php | |
$args = array('child_of' => 31); | |
$categories = get_categories( $args ); | |
foreach($categories as $cat) { | |
echo '<li class="col-lg-4 col-md-4 col-sm-6 col-xs-12">'; | |
echo '<a class="catImg infoImg" href="' . get_category_link($cat->term_id) . '">'; | |
echo '<span class="over_view"></span>'; | |
echo '<span class="imgHover">'; | |
echo '<i class="fa fa-chevron-right" aria-hidden="true"></i>'; |
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("[example_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
<div class="info-box"> | |
<?php $krogsquery = new WP_Query( array( | |
'post_type' => 'post', | |
'posts_per_page' => 3 | |
)); ?> | |
<h3 class="info-headline">City News</h3> | |
<?php while($krogsquery->have_posts()) : $krogsquery->the_post(); ?> |