How to store the third party script with HTML code in the wordpress custom input field?

You are using esc_textarea() to output the content – so it’s doing exactly that. This is of course the correct thing to do with user input, so you have a few options here. Only ask for the embed id – then reconstruct it in php. Something like: <!– Meta box input example –> <input name=”thirdpartyvideoscript” … Read more

Custom post category name showing empty

Note that the get_the_category() documentation stated that: Note: This function only returns results from the default “category” taxonomy. For custom taxonomies use get_the_terms(). So if I guessed it correctly that you’re trying to display the blogs_cats terms for the current post, then you should use get_the_terms() instead. There’s also get_the_term_list() if you just want to … Read more