No, you don’t have to escape the data. And it doesn’t need to be escaped. Please take a look at the_post_thumbnail() function, it didn’t do any escaping. So no worries.
Related Posts:
- Worthwhile to restrict direct access of theme files?
- Should `get_template_directory_uri()` be escaped?
- Is it good to rename theme folder downloaded from WordPress.org?
- How to sanitize select box values in post meta?
- When to use esc_url, esc_html, esc_attr, and friends?
- Worthwhile to restrict direct access of theme files?
- Where i should not use if (!defined(‘ABSPATH’)) { exit; }?
- Whats the safest way to output custom JavaScript and Css code entered by the admin in the Theme Settings?
- Is it safe to enqueue a font style without putting http or https?
- Using esc_url with a hard coded url
- What is the safe way to print tracking code / pixel code before tag or tag
- Underscore Based Theme File Permissions in Git
- correct tags for validating input types
- How to escape multiple attribute at once in WordPress?
- Contact Form Security
- Strict Folder and File Permissions for WordPress Themes Folder
- hide theme files for admin beneath root
- Should we escape the values of constants?
- If necessary, how should wp_get_attachment_image() and its parameters be escaped?
- What is the preferred way to add custom javascript files to the site?
- How to add posts to custom menus?
- How to add custom css file in theme?
- CSS not updating in browser when I change it
- How to remove search bar from a wordpress theme? [closed]
- Change admin bar to default:off
- Should I use set_transient or update_option?
- How to: Update live sites theme from version control repo via plugin or library? [closed]
- Template for individual post designs
- Custom Taxonomy Tree view
- Best practice way to implement custom sections into a WordPress theme
- Adding items to page template dropdown on Page Edit Screen
- How to customize wordpress login/register pages?
- What would happen if the admin installs a plugin when the plugin is included in the theme?
- What is the difference between strip_tags and wp_filter_nohtml_kses?
- Add a preview to a WordPress Control Panel
- Change text of twentyseventeen_edit_link()
- How do I get my child-theme to work with my theme’s includes folder?
- wp_insert_post breaks rewrite rules
- Where can I find a good reviewed collection of Twenty Ten child themes?
- How do I remove RSS feeds from themes?
- Template Hierarchy for get_header()
- How to add (css) classes to only one wp_nav_menu()?
- Advantages of using instead of wp_enqueue_style()?
- Style.css redirects to 404 Page not found
- Page attribute template dropdown not displayed even the syntax is correct
- How to add a text widget during theme activation
- WordPress Theme customisation CSS
- How to add suggest plugin to theme?
- When developing a distributable Theme, does it HAVE to be “inheritable”?
- Why does this loop only work on the homepage?
- Nesting Functions within Functions
- how do I get a sidebar’s id or number for use with is_active_sidebar()
- Looking for the code in twentyten that allows users to select images for the header/banner
- Relative Time On Posts
- Prevent update check for specific theme
- De-registering parent style sheet css recommended?
- inserting custom li class to wp_list_pages
- Theme check: Missing a text-domain
- Can I customize any WordPress parent block-based theme template files by child theme like a parent classic theme?
- How to determine if post has widget content?
- using wordpress without javascript
- Custom Script Section Only Echoes Text
- Theme Check: Could not find post_class
- Unhook jQuery from WooCommerce via `functions.php`? [closed]
- Free starter theme to make mobile websites? [closed]
- Set a static front-page as a landing page programmatically
- WP Customize refresh problem
- Set multiple templates per post
- Place the page title into the short code
- WP 3.1 upgrade breaks AutoFocus+ theme
- Comment entry screen shows even though “Allow Comments” is unchecked
- How can I display/hide certain content based on a Theme Option field?
- Custom WordPress Theme – Search not working on posts
- How can I make that when I clic on one of the menu items, that page shows only posts with the same category?
- Hide header texts (Title & Tagline) in custom-header.php
- Why an arugment is missing in wp_get_attachment_image_attributes?
- Archive page doesn’t work
- My javascript jquery won’t work?
- Displaying recent post excerpts on static front page
- Where to hook settings api init
- How to add “Template” option in page attributes panel?
- How to obtain a reference to the_excerpt() from custom loop
- defining a folder location in order to recall it
- How can I detect hierarchal relationships beyond children (grandchild, great-grandchild, etc)?
- How to enable thumbnails in RSS dashboard widget
- How to check if a WordPress core block is active in sidebar
- approach to pass additional parameter in post URL
- Which html elements should be styled in wordpress theme
- How can i attach the attachment-ID to the user profile image?
- JavaScript stops working on selectively refreshed sections one inside the other
- How can I fetch the WordPress cart errors normally displayed in woocommerce-error?
- wp_remote_get times out on api request but jquery GET and postman work?
- Folder name for a pro version of a WordPress.org theme?
- WordPress Media Uploader in page template (On Front-end)
- Why doesn’t my css work when I check my theme on mobile devices? [closed]
- Remove settings if theme is deleted?
- Using WordPress’ Theme Customizer to select page templates that update layout in the preview
- How to set up a development/staging site to make major changes to the theme then update on the live site?
- What is the point of using the front-page.php template? [closed]
- My theme is full of error messages in the “Customize” screen, but nowhere else