我怎样才能拥有一个可用作链接的php echo。 我在这个主题上看到了其他答案,但我无法找到可行的解决方案。
我的脚本是:
<?php if(get_post_meta($post->ID,'website',true)):?>
<div class="info-inner">
<label><?php _e('Web:','colabsthemes');?></label>
<span><?php echo get_post_meta($post->ID,'website',true);?></span>
</div>
答案 0 :(得分:1)
format.setTimeZone(TimeZone.getTimeZone("GMT"));
date = format.parse(strDate);
System.out.println("Result: " + format.format(date));
你添加其余部分。
指定您要实现的目标 - 链接到具有特定ID或什么的帖子?
答案 1 :(得分:1)
感谢大家帮助我的意图。
最后,我付了专业人员帮助我提供了一个非常简单的解决方案,即:
<label><?php _e('Web:','colabsthemes');?></label>
<span><a href="<?php echo get_post_meta($post->ID,'website',true);?>"><?php echo get_post_meta($post->ID,'website',true);?></a></span>