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="content"> | |
<div class="loop-meta archive-info taxonomy-info"> | |
<h1 class="loop-title archive-title taxonomy-title"><?php single_term_title(); ?></h1> | |
<div class="loop-description archive-description taxonomy-description"> | |
<?php echo term_description( '', get_query_var( 'taxonomy' ) ); ?> | |
</div><!-- .loop-description --> | |
</div><!-- .loop-meta --> | |
<?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
function display_featured_post() | |
{ | |
$args = array( | |
'orderby' => 'date', | |
'order' => DESC, | |
'posts_per_page' => 1, | |
'post_type' => 'off_press', | |
'meta_query' => array( 'meta_key' => '_bb_feat', 'meta_value' => 'on' ) | |
); | |
$the_query = new WP_Query($args); |
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 | |
/* Create Post Type */ | |
function create_press_post_type() { | |
register_post_type( 'off_press', | |
array( | |
'labels' => array( | |
'name' => __( 'Off the Press' ), | |
'singular_name' => __( 'Off the Press' ), | |
'add_new' => __( 'Add Press Item' ), | |
'add_new_item' => __( 'Add Press Item' ), |
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 | |
/* Create Post Type */ | |
function create_press_post_type() { | |
register_post_type( 'off_press', | |
array( | |
'labels' => array( | |
'name' => __( 'Off the Press' ), | |
'singular_name' => __( 'Off the Press' ), | |
'add_new' => __( 'Add Press Item' ), | |
'add_new_item' => __( 'Add Press Item' ), |
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 | |
/* Create Post Type */ | |
function create_press_post_type() { | |
register_post_type( 'off_press', | |
array( | |
'labels' => array( | |
'name' => __( 'Off the Press' ), | |
'singular_name' => __( 'Off the Press' ), | |
'add_new' => __( 'Add Press Item' ), | |
'add_new_item' => __( 'Add Press Item' ), |
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 | |
/* | |
Template Name: Portfolio | |
*/ | |
?> | |
<?php get_header(); | |
if (is_tax('portfolio-category')) { $_SESSION['original'] = 'portfolio-category'; } | |
else if (is_tax('portfolio-client')) { $_SESSION['original'] = 'portfolio-client'; } |
NewerOlder