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".