This file contains hidden or 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 ---- | |
<?php | |
// slideshow | |
$rows = get_field('slideshow_repeater'); | |
if($rows) { | |
echo "<!-- slideshow --> | |
<div id='slideshow' class='full-width clearfix'> |
This file contains hidden or 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
// DEVELOPER | |
function dev_template_name() { | |
global $template, $post; | |
$template_array = explode('/',$template); | |
echo ' | |
<style> | |
.dev-template-name {position:fixed;bottom:200px;right:10px;background: rgba(255,0,0,0.6);color:#fff;padding:2px 4px;font-size:0.8em;z-index: 100;/*display: none;*/} | |
</style> |
This file contains hidden or 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 needed to get a specific category | |
// echo "<pre>"; | |
// var_dump($wp_query->query_vars); | |
// echo "</pre>"; | |
// echo $wp_query->query_vars['gallery-category']; | |
$args = array( | |
'post_type' => 'document', |
This file contains hidden or 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 | |
$args = array( | |
'post_type' => 'notices-mariners', | |
'post_status' => 'publish', | |
'posts_per_page' => 2, | |
'meta_key' => 'mariners_date_selected', | |
'orderby' => 'meta_value_num', | |
'order' => 'ASC' | |
); |
This file contains hidden or 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
$taxonomy = 'blog-category'; | |
$terms = get_terms( | |
$taxonomy, | |
array( | |
'hide_empty' => 1, | |
'parent' => 0 | |
) | |
); | |
// 'parent' => 0 | |
if ($terms) { |
NewerOlder