File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 12
12
if ( 'sidebar-left ' == $ layout_class ) :
13
13
get_sidebar ();
14
14
endif ;
15
+
16
+
15
17
?>
16
18
<div id="primary" class="content-area col-md-8 mb-xs-24 <?php echo esc_attr ( $ layout_class ); ?> ">
17
19
<main id="main" class="site-main" role="main">
49
51
<div class="image-tile inner-title hover-reveal text-center" style="<?php echo $ item_style ; ?> ">
50
52
<?php
51
53
if ( has_post_thumbnail () ) {
54
+
55
+ $ portfolio_custom_URL = get_post_meta ( get_the_ID (), 'shapely_companion_portfolio_link ' , true );
56
+
57
+ if ( ! $ portfolio_custom_URL ) {
58
+ $ portfolio_custom_URL = get_the_permalink ();
59
+ }
60
+
52
61
?>
53
- <a href="<?php the_permalink () ; ?> " title="<?php the_title_attribute (); ?> ">
62
+ <a href="<?php echo $ portfolio_custom_URL ; ?> " title="<?php the_title_attribute (); ?> ">
54
63
<?php
55
64
if ( 'mansonry ' == $ layout ) {
56
65
the_post_thumbnail ( 'medium ' );
70
79
?>
71
80
</div>
72
81
</article><!-- #post-## -->
73
- <?php
82
+ <?php
74
83
75
84
endwhile ;
76
85
You can’t perform that action at this time.
0 commit comments