有没有办法获取页面模板的名称? 我的意思是在页面模板中,我们在开头写Template Name: template name I Want " template name" by page-id
Template Name: template name
template name
我已经尝试过get_post_meta(get_the_ID(), '_wp_page_template', true) and get_page_template_slug($post_id),但没有任何功能有帮助
get_post_meta(get_the_ID(), '_wp_page_template', true) and get_page_template_slug($post_id)
php wordpress
php ×1
wordpress ×1