I'm trying to make a page link like below but it's not working. (I'm new developer in WP).
<a href="<?= home_url() ?>/about-us">about us</a>
答案 0 :(得分:2)
试试这个:
<a href="<?php echo home_url(); ?>/about-us">about us</a>
答案 1 :(得分:2)
<a href="<?php echo get_home_url(); ?>/about-us">about us</a>
请检查上面的代码吗?
答案 2 :(得分:2)
用此
替换您的代码<a href="<?php echo home_url(); ?>/about-us">about us</a>
答案 3 :(得分:1)
在home_url()之前添加一个echi / about-us“&gt;关于我们