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 template for displaying the Event Archive page. | |
*/ | |
get_header(); | |
?> | |
<section id="primary" class="content-area"> | |
<main id="main" class="site-main"> | |
<div id="post-wrap"> |
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
function odd_even_post_class ( $classes ) { | |
global $current_class; | |
$classes[] = $current_class; | |
$current_class = ($current_class == 'odd') ? 'even' : 'odd'; | |
return $classes; | |
} | |
add_filter ( 'post_class' , 'odd_even_post_class' ); | |
global $current_class; | |
$current_class = 'odd'; |
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 id="tv-miniwidget-b01ee" class="widget col span_6_of_12"> | |
<h3>Market Data</h3> | |
<script type="text/javascript" src="https://d33t3vvu2t2yu5.cloudfront.net/tv.js"></script> | |
<script type="text/javascript"> | |
new TradingView.MiniWidget({ | |
"container_id": "tv-miniwidget-b01ee", |
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
<!-- Identify CURRENT exhibitions --> | |
<?php | |
$today = date( 'Ymd' ); | |
$starting_date = get_field( 'exhibition_starting_date' ); | |
$ending_date = get_field( 'exhibition_ending_date' ); | |
$args = array( | |
'post_type' => 'exhibition', | |
'meta_query' => 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
<?php | |
// Add this to your theme's functions.php | |
function custom_archive_order( $query ) { | |
if ( $query->is_archive() ) { | |
$query->set( 'orderby', 'date' ); | |
$query->set( 'order', 'DESC' ); | |
} | |
} | |
add_action( 'pre_get_posts', 'custom_archive_order' ); |
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
.cover { | |
background-repeat: no-repeat; | |
background-size: cover; | |
background-attachment: fixed; | |
background-position: center center; | |
height: 550px; | |
width: 100%; | |
position: relative; | |
overflow: hidden; | |
} |
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 get_header(); ?> | |
<div id="container"> | |
<a name="top"></a> | |
<?php | |
$args = array( | |
'sort_order' => 'ASC', | |
'sort_column' => 'menu_order', //post_title | |
'hierarchical' => 1, | |
'exclude' => '', |
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 | |
<div id="content"> | |
$args = array( | |
'post_type' => 'post', | |
'posts_per_page' => 5, | |
'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1) | |
); |
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
<!-- Thanks to http://www.dagondesign.com/articles/wordpress-search-form-without-search-button/ --> | |
<?php $search_text = "Search"; ?> | |
<form method="get" id="searchform" | |
action="<?php bloginfo('home'); ?>/"> | |
<input type="text" value="<?php echo $search_text; ?>" | |
name="s" id="s" | |
onblur="if (this.value == '') | |
{this.value = '<?php echo $search_text; ?>';}" | |
onfocus="if (this.value == '<?php echo $search_text; ?>') | |
{this.value = '';}" /> |
NewerOlder