Esempio n. 1
0
<?php

echo '<article><h3>Featured Projects</h3>';
echo '<ul id="home-featured-slider">';
$args = array('post_type' => 'projects', 'project_type' => 'featured');
$loop = new WP_Query($args);
while ($loop->have_posts()) {
    $loop->the_post();
    echo '<li class="slide">';
    echo '<a href="' . get_permalink($post->ID) . '" style="' . bg_image(search_image()) . '">';
    the_title('<span><p class="item_title">', '</p></span>');
    echo '</a></li>';
}
echo '</ul></article>';
Esempio n. 2
0
<?php

$i = 0;
while ($loop->have_posts()) {
    $loop->the_post();
    $position = three_in_row($i);
    echo '<a class="project" ' . $position . ' href="' . get_permalink($post->ID) . '" style="' . bg_image(search_image()) . '">';
    the_title('<p>', '</p></a>');
}
Esempio n. 3
0
<?php

echo '<article><h3>Featured Maps</h3>';
echo '<ul id="ines">';
$args = array('post_type' => 'featured-maps');
$loop = new WP_Query($args);
while ($loop->have_posts()) {
    $loop->the_post();
    $image_url = get_field('map');
    echo '<li class="slide">';
    echo '<a class="fancybox" rel="featured" href="' . $image_url . '" style="' . bg_image($image_url) . '">';
    the_title('<span><p class="item_title">', '</p></span>');
    echo '</a></li>';
}
echo '</ul></article>';