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 to add ‘nofollow’ flag to all Tag archive hyperlinks?
- Order tags, but not alphabetically
- How do I display a tag cloud under my post that only shows tags from that post?
- how can I use WP_Query to exclude a specific tag.?
- Remove a particular tag name from the tagcloud
- How do I change the output of get_the_tag_list()?
- Converting Unix timestamp to wordpress date
- How to remove Tags: text from the_tags?
- When switching from html to visual editor the tag gets erased
- List ‘n’ number of posts from a Tag, each with a different class or ID
- When are tags counted? Can it be trigered manually?
- alt attributes not showing on pages
- display tag slug as class per link in tag cloud
- Change the color of post title on specific tags
- How to use meta data for each tag cloud a
- Exclude a specific tag from the get_the_tags list
- Limit tag cloud terms by date
- How to get all tags collections in woocommerce?
- In need of array of post tags
- Relative time – how to calculate difference beween post publish date and current time
- Query all posts which do not have tags assigned to them
- Tag subscription option in wordpress. How?
- How to list custom tags too, to wp-list-table table?
- Do not change the order of the tags in the editor
- Display posts and thumbnails with certain tags
- How can I prevent wordpress from creating tag pages?
- how can i add all my tags to tagcloud?
- Blog post : Remove comma between Tag names [closed]
- Why word can’t be displayed in wordpress?
- Get all terms if product of that term contains a specific category
- How can the user place a custom text string as a placeholder for a plugin
- Show post tags on attachment page?
- How can I wrap html around the output of the_time function?
- What hooks are needed to bind a tag to a reusable block?
- Trouble Formatting DateTime
- Placed on + only date (not time)
- Get Adjacent Post By Tag
- Track tags in Google Analytics? [closed]
- Remove short link tag from particular page
- tags not showing on custom post type single page
- Stop wordpress from adding html tags but not remove my own tags?
- merging terms programmatically while maintaining the count
- How to get the first tag of a post as a hyperlink?
- Echo tag name if post has one of the tags
- Display post if a specific tag is present
- How get exact time difference
- Do we have In_category like function for tags?
- Tagcloud: different color for different text size
- Can’t Find a “Most Popular Tags” Hack Anywhere [closed]
- How to get tags outside of loop for specific page I’m on?
- How to get User Time Zone in WordPress?
- How to display related posts from this code?
- How to add a class to anchor tags using the get_the_tag_list(); function? [duplicate]
- how do i put “h1” tag in css as class and call it anywhere in the website files [closed]
- category specific most used tags query
- Sort tags by first letter or included number
- Removing a taxonomy term
- Is there a way to retire old tags?
- How to change tag Title to its name?
- Setup proper 301 redirect for deleted tags
- Bumping a (tagged) post to the top of archives
- Display upcoming events in the next 30 days by querying posts with timestamp in custom meta
- how to add # before tags?
- Tags page not for post
- How can I combine WordPress default Tags and bbPress tags into one archive page?
- Hide/exclude certain tags under single post
- Remove link and Add class to get_the_tag_list()
- Tag title not being returned in page title of tag archives
- How to get tags from different blog?
- Unable to Change Title in WordPress Dashboard
- How can I show a tag description, using ‘slug’ rather than ‘id’
- Is it possible to have a Faceted Navigation/Filters on a Product Tag page?
- How to list tags
- If tag x then show y + tag name(s)
- get_the_tags function not retrieve all tags for specific category
- Conditional inside search result excerpt
- Show all tags NOT applied to post
- How to display time when page is created and edited
- Hide Tag Title When No Tags
- Is There A Way To Add Weight Or Order To Tags?
- Change CSS on tag in tagcloud, if ther current post is tagged with the tag
- Time sort with meta_key using UNIX timestamp failing due to date differences
- Tag selection while adding new post
- where to find on backend to amend and edit title tage for each page on website?
- Create a separate widget for both Tags and TagsCloud?
- How to include post count in this “get_tags” snippet
- How to make a Post Tag primary?
- How can I edit the slugs of tags?
- Listing tags with custom html output
- Show monthly or daily archives
- Exclude specific tag or tags from related posts?
- How to export tag counts to excel?
- WordPress Title Tag Not Changing
- WP_Query filter Posts by timestamp event (range start and end) and by month (next 12 month)