Skip to content

Commit

Permalink
主页二维码不显示
Browse files Browse the repository at this point in the history
回滚一下
  • Loading branch information
jeeinn authored Dec 16, 2019
1 parent 766c923 commit fbd3c6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/site-card.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?php if ( ! defined( 'ABSPATH' ) ) { exit; } ?>

<?php
$qrurl = $link_url ?: get_permalink($post->ID);
if($link_url=="") $link_url = get_permalink($post->ID);
$qrurl = $link_url;
$is_html = '';
if(get_post_meta($post->ID, '_wechat_qr', true)){
$qrurl="<img src='" . get_post_meta(get_the_ID(), '_wechat_qr', true) . "' width='128'>";
Expand Down

0 comments on commit fbd3c6d

Please sign in to comment.