
如何为WordPress自定义文章类型创建高级搜索表单
the_permalink_rss ( No parameters )
permink_rss是一个WordPress函数,它显示当前文章或rss提要中指定文章的固定链接。它类似于_permink,但它包含用于RSS提要的适当HTML标记。
显示该文章的固定链接,以便在feeds中使用。
function the_permalink_rss() { /** * Filters the permalink to the post for use in feeds. * * @since 2.3.0 * * @param string $post_permalink The current post permalink. */ echo esc_url( apply_filters( 'the_permalink_rss', get_permalink() ) ); }