admin管理员组文章数量:1130349
I want to get sidebar & footer including html of current post.
Then I want to check a "string" inside sidebar & footer. If "string" exits, I want to enqueue a custom script.
If anyone knows a function to do so, please help me. thanks
Note: following functions get just content section of a post. So please suggest a function which gets full html including head, body, sidebar, footer.
the_content();
get_the_content();
$post = get_post();
$post->post_content
One thing I know, I have to use stripos() to check "string".
I want to get sidebar & footer including html of current post.
Then I want to check a "string" inside sidebar & footer. If "string" exits, I want to enqueue a custom script.
If anyone knows a function to do so, please help me. thanks
Note: following functions get just content section of a post. So please suggest a function which gets full html including head, body, sidebar, footer.
the_content();
get_the_content();
$post = get_post();
$post->post_content
One thing I know, I have to use stripos() to check "string".
版权声明:本文标题:php - How to get Post sidebar & footer including html like get_the_content() which only gets content section? 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749079832a2312875.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论