0

无法让它发挥作用,一直在尝试不同的东西 - 但它只首先显示两个。最后一个(其他)没有出现在网站上。

谁能看到我做错了什么?

谢谢!:)

<?php if ( get_post_meta($post->ID, 'ends', true) ) { ?>
<?php echo get_post_meta($post->ID, 'ends', true); ?>

<?php } elseif ( shortcode_exists( 'postexpirator' ) ) { ?>
<?php echo do_shortcode('[postexpirator]'); ?>

<?php } else { ?>
Continues
<?php } ?>
4

1 回答 1

0

I think it's getting hung up on:

<?php } elseif ( shortcode_exists( 'postexpirator' ) ) { ?>

And checking if the shortcode exists in general? I'm not too sure how you have this setup because it's a shortcode but I think that is probably what it is.

于 2013-10-17T15:23:44.110 回答