The $post
object is available outside the loop so you should be able to echo get_the_title( $post->ID );
in the body.
Related Posts:
- Why doesn’t this function work when I know that the IP Address is “true”?
- How to change dynamically page title according to variable data?
- Add PHP code after title in single post pages?
- Modify WordPress Page Title ()
- Changing title using filter not working with argument
- get_the_archive_title hook unwanted changes!
- wordpress filtering out caps in wp_title? (UpperCase is changed to Uppercase)
- The title of an attachment is not working
- How to remove a filter that is an anonymous object?
- How to add defer=”defer” tag in plugin javascripts?
- No filter of code on switch from html to visual editor, how?
- How to modify posts_where filter only for the search query
- How to wrap oEmbed-embedded video in DIV tags inside the_content?
- How to add filter with 2 args?
- WordPress Internal @ Mentions
- How to auto-translate custom user roles?
- Adding revision support to WooCommerce product content
- Changing text within the Block Editor
- Add Class to Specific Paragraph of the_content()
- apply_filters() slices away needed arguments
- Search content for shortcodes and get parameters
- Please explain me what the do_action does
- How Can I Have A URL Changed Based on the Originating URL?
- Is it possible to Hook/Filters Attachment Creation?
- Apply the_title filter to post titles AND backend auto social-sharing plugin, but not nav menu
- How to hook some Unicode texts into calendar widget safely?
- How to add attributes to tag when template cannot be directly modified
- how to remove filter from wordpress shortcode output
- Change email from and display name with a filter action
- Edit pagination text in the get_the_posts_pagination function
- How does WordPress call functions attached to a certain action hook before calling functions attached to other hooks
- Filter custom post types in archive
- WordPress tag cloud add more links
- Question about how do wordpress filters/actions work
- How to center oEmbedded content
- When adding buttons to the tinyMCE editor, how do I make them wrap to the next line and/or display in the “Kitchen Sink” area?
- Add Sortable Column For All Post Types
- How to change the order of HTML output of a core block?
- How to add ‘total’ value to custom column title on the posts list page
- When to use add_action when registering/enqueuing scripts
- Is it possible to use multiple spaces in title?
- Create Page Template by hook programatically in Functions.php in WP 5.8.1
- add_filter(allowed_block_types) -> adding core/paragraph bugs Gutenberg editor
- How to remove medium size class in gravity form for input tag?
- Filter out comments with certain meta key/s in the admin backend
- HTML and custom field variable, inside variable
- WordPress custom admin notice still displays after wp_insert_post_data validation
- Custom wp_query time filter on meta_value
- get post id within add_filter()
- Run posts_where and posts_join only on the main query
- Modify page title and subtitle with a plugin
- Media upload default title from file name
- run shortcode in excerpt of single custom post type
- Admin post list – adding an option to the date filter dropdown
- Use of comment_reply_link_args filter
- Shortcodes within the sidebar text/html widget: How to preserve the raw HTML output of the shortcode?
- Error using wp_mail inside custom function
- Add/remove CRON action depending on variable
- Stripping URLs & Email from post submissions
- comment_for() Custom fields not visible when user is logged in
- Admin: how to make a custom list filter button send GET queryvars
- Filter authors on meta value
- I’ve set up an extra field for all the available widgets. How do I show it’s value in the front-end?
- Override email_exists function
- Access post ID in “content_save_pre”
- How does wordpress add ‘style’ attribute to element
- How do I safely force get_theme_mod() to use a defined get_option(“stylesheet”) value?
- Shortcode / plugin with custom (flexible) output
- conditional search
- output custom Posts on a Page
- Filter “Your latest posts”
- Sql query does not work well
- Is it better to use a constant or apply_filter?
- Hide certain product filters from specific product categories
- Hooked into wp_get_attachment_caption to add content to the default description; not working for jetpack slideshow. Why?
- WordPress Gutenberg core/heading block (wp-block-heading)
- Add an attribute to the root from functions.php with add_filter
- Would like to use hook or filters to customize email templates
- Removing menus from users other than the administrator
- Can’t understand apply_filter logic
- Modify oembed code conditionally
- Add option to query string before get_posts() is called on archive.php
- Modify wp headers on specific page
- How can I add a prefix to titles displayed in sidebar using function.php?
- Modify Default URL for /wp-includes/js/wp-emoji.js?ver=4.6.1
- List all image sizes still getting disabled sizes
- Why this remove empty paragraphs from the_content does not works?
- Take filter from multiple functions
- wp_editor customization
- What problems could happen if I replaced add_filter and add_action with the function calling
- posts_results filter function memory errors
- Adding to an array & passing it through do_action/apply_filters
- Save something to global var in add_filter
- Loading a sidebar on an Ajax call
- the_excerpt() does not work with has_excerpt()?
- Custom excerpt_more filter not working when tag is present
- Taxonomy search filters
- How do you disable the verification process of user email changes?
- Modify the third (context) parameter in a filter?
- Limit total tags in the_content