Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试在这个 php 字符串中使用双引号和单引号。然而,没有成功。如何在 php 中调用 php?
<?php echo wpws_get_content('<?php the_field('rate_my_professor_link''); ?>','.comment','html','user_agent=Bot+at+mysite.com&on_error=error_show&')?>
你只需要这样做:
<?php echo wpws_get_content(the_field('rate_my_professor_link'), '.comment', 'html', ''user_agent=Bot+at+mysite.com&on_error=error_show&'); ?>
您可以将函数直接放入其他函数中。