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
<a href="<?php the_permalink(); ?>"> | |
<?php | |
if ( has_post_thumbnail() ) { | |
echo the_post_thumbnail();// the current post has a thumbnail | |
} else { ?> | |
<img class="attachment-post-thumbnail" src="<?php bloginfo('template_url'); ?>/images/place_247.jpg" alt="Post"> | |
<?php } | |
?> </a> |
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 | |
global $wp_query; | |
$postid = $wp_query->post->ID; | |
echo get_post_meta($postid, 'sidebar_gallery', true); | |
?> |
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_search_query(); ?> |
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 //Echo Queried Term Name | |
$term = $wp_query->queried_object; | |
$termname = $term->name; ?> | |
<h3><?php echo $termname; ?></h3> |
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 | |
$terms = wp_get_post_terms($post->ID, 'request_statuses'); | |
$count = count($terms); | |
if ( $count > 0 ){ | |
foreach ( $terms as $term ) { | |
echo $term->name; | |
} | |
} | |
?> |
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 echo get_the_term_list( $post->ID, 'shop_artists'); ?> |
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 | |
if($post->post_parent) | |
$children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0"); | |
else | |
$children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0"); | |
if ($children) { ?> | |
<ul class="sectionlist"> | |
<?php | |
$parent_title = get_the_title($post->post_parent);?> | |
<li class="page_item <?php |
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 $url = get_post_meta($post->ID, 'snippet-reference-URL', true); | |
if ($url) { | |
echo "<p><a href='$url'>Reference URL</a></p>"; | |
} ?> |