Here's what I got so far:
<?php
//some other code
<a title="Get updates from 'echo get_the_author();'" href="' . esc_url($facebook_profile) . '"><i class="fa fa-facebook"></i></a>
I'm trying to echo get_the_author(); in the a title=, but get nothing, what do I need to do to get it going? Thanks,
答案 0 :(得分:3)
你错了。不要那样混合,而是做类似的事情:
1.0 / 2
如果您使用PHP生成它,那么您需要<a title="Get updates from <?php echo get_the_author(); ?>" href="<?php esc_url($facebook_profile); ?>"><i class="fa fa-facebook"></i></a>
出来:
echo