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 | |
/** | |
* Partial template for ACF flexible content | |
* | |
* @package Understrap | |
*/ | |
// Exit if accessed directly. | |
defined( 'ABSPATH' ) || exit; |
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 | |
/** | |
* Flickity-based carousel for returning posts from the loop. I find it far more versatile and simple than a Bootstrap | |
* carousel. Get the required scripts and styles from here: https://flickity.metafizzy.co/ | |
*/ | |
<div class="blog-carousel"> | |
<?php | |
if ( have_posts() ) : 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
<?php | |
// I'm using both Bootstrap 4.0 and MD Bootstrap, so you may want to tweak some of this yourself | |
// Also remmeber to link up some styles, or the div with your background image won't display | |
$args = array( | |
'post_type' => 'portfolio', // my own custom post type | |
'meta_query' => array( // pull in featured posts from metadata connected to a custom featured post plugin | |
array( | |
'key' => 'featured-checkbox', | |
'value' => 'yes' | |
) |