General WordPress rule:
when a function starts with get
, it will return the value. If it starts with the
, it echoes the value.
Here, you need get_the_date('d-m-Y')
instead of the_date('d-m-Y')
.
Related Posts:
- How to allow html5 tag in WordPress
- Using HTML 5 Details/Summary Tag
- Why is Heading tag Auto applied to Post data? [closed]
- Remove H1 site-tittle tag from product page with a function SEO
- Unwanted word behind my title in SERP
- How can i get tag without />?
- how do I get the tag name from tag id?
- Do tags have dates?
- Display tags in list without link
- How can you tie into the tag metabox?
- How to display the_tags() as plain text
- Date, Time, and Timezones
- Display tags for current post in sidebar
- How important are WordPress tags for SEO purposes?
- Is it safe to use ‘date_default_timezone_set’ in plugin file?
- Allow visitors to search by multiple tags (specific IDs)
- Massive Tags Remove Using MySQL
- Quicktags on all textarea.. Not working on plugin?
- how to change # of tag posts on /tag page?
- How can I remove certain HTML tags from the RSS feed?
- Stop WordPress removing tags when switching from HTML to Visual (TinyMCE)
- Link directly to the first post in an archive
- Set homepage to only display posts from one tag
- Individual css class for each tag in wp_tag_cloud
- Strict tag list – user should choose only existing tags for posts
- Special characters in tag get removed for comparison on save
- Display custom list of tags in post/page editor with hooks
- Query by custom dates in UNIX Time
- How to remove ‘noindex, follow, max-image-preview:large’ in search page WordPress 5.7 up
- Displaying Posts by tag dynamically in WordPress
- How to rename ‘TAG’ to ‘TOPIC’
- How to not show tags if the post doesn’t have any?
- Don’t show a tag on a post if it is the only post with that tag
- Remove the last character from tag name in tag archive page
- How to Override “Blog pages show at most” in tag.php [duplicate]
- WordPress editor: “pick from existing tags” is gone?
- display month in french in wordpress/php?
- Return post tags with description
- How to display tag cloud without links
- Get tags for post_type
- Line of Tag information Is Formatted Strange
- How can I make an auto-fill search box auto-completing with the tags?
- How to get the Tags on Publish post hook?
- woocommerce product tags display
- Please help me to figure out how to display my tags
- Cross Site Related Posts?
- TinyMCE – how to select tags node from the place where the caret is?
- List tags by certain letter issue with special chars like å, ä and ö
- Strip and tags from a specific div
- Require tags for bbPress topics [closed]
- How to enable all Tag Descriptions in loop?
- WordPress Tag Page Hook?
- Tags not working with custom post type
- How can i order get_the_tags?
- Add text to Title dynamically using tags
- “ Language notation in the post content
- How to show different timestamp
- How to make tag pages look as /tags/%tagname%/ in the URL?
- WordPress tags as twitter sharer URL hastags
- Get Tag Slugs that start with a word
- Add post tag without post id
- Show all videos by tag name
- admin end post published time display not working correctly
- Changing H1 to Normal Links
- Problem using the word “RSS” as a tag
- Autolinking keywords in text with tags
- Print_r displaying two different post->ID if placed in sidebar or single.php
- How to set thumbnail for each tag?
- Missing tags, unexisting tags in search form within products, please help
- Detect tag page and include an Image for that specific tag
- Automatically add tag (first 4 characters) to uploaded media
- How can I automatically hyperlink tag names that are in my post body to the tag page
- wp-cli error: “Term is missing a parent”
- Random tag in the post
- Get the publish date of the older post inside a tag
- How to test if the tag list is empty for the current page?
- Update existing post times to random times?
- Insert text BEFORE the “tag” title
- Can’t add to time? [closed]
- Timezone for Plugin
- tag based subscription
- How to Group While Loop “Results” of wp_query?
- Remove parentheses from tag cloud count
- Calculate how much time passed comparing WordPress comment and current time
- Only display posts with a specific tag
- Prevent tag creation on the post edition page
- showing tag beside catagory
- Auto-Tagging a Custom Post Type
- Conditional tag for attachment posts
- Get multiple tags by slug
- Feedburner closing error
- Display posts containing at least 1 from a list of say 10 tags but not containing other tags
- Post order by selected tags
- WordPress editor, change code wrap (bbpress?)
- Tags as autocomplete values
- Need to return all tags – including empty ones – in list
- Get system timestamp in wordpress
- Show tags in post? Function not working
- Show all tags but exclude a certain tag
- Adding support for Post Tags to a CPT added by a plugin