我需要一个获取当前页面标题和页脚中的页面URL。php或在wp\\U页脚操作中(https://codex.wordpress.org/Plugin_API/Action_Reference/wp_footer)
获取这些值的最佳方法是什么?
我需要一个获取当前页面标题和页脚中的页面URL。php或在wp\\U页脚操作中(https://codex.wordpress.org/Plugin_API/Action_Reference/wp_footer)
获取这些值的最佳方法是什么?
你应该在get_the_title:
$page_title = esc_html( get_the_title() );
和链接get_permalink:$page_link = esc_url( get_permalink() );
。。。或许可以使用google;)