In the comments, @vancoder points out that it appears day names are not capitalized in Norwegian. If you require that they be capitalized, you could do something like this:
ucfirst( get_the_date( 'l', $post ) ) .
get_the_date( ' d.m.Y', $post ) .
get_the_time( ' H:i', $post );
…using PHP’s ucfirst()
to force the first character to be uppercased.
(I’ve also split the date and time to use get_the_date()
and get_the_time()
, since it seemed semantically cleaner to me that way.)
Related Posts:
- Display future posts?
- How to structure a plugin
- how to create child WordPress plugin
- dealing with large HTML output via plugin code
- Getting Path To Uploaded Attachment Image After Upload
- Is There a WordPress Hook to Filter the Edit Posts View?
- Plugin stability | Using a plugin VS Developing functionalities yourself
- How to Loop Plugin Option Field Set?
- Building a scalable WordPress favouriting plugin – one serialised meta value array or many meta records
- How to test a WordPress plugin through the upgrade automatically feature
- How to Create a Directory in a Plugin Folder?
- Declaring script dependencies between scripts enqueued with different action hooks
- Failed to invoke other hook from the init hook
- Does flush_rewrite_rules() remove all rules added by other plugins as well as mine?
- Is there an equivalent to Drupal’s Batch API in WordPress?
- Create plugin that works in background
- Checking for user role in a custom plugin
- Extend Elementor Archive Posts widget with a custom skin in order to show multiple badges
- HELP: Integrating WP with raw PHP code once published button is hit
- Custom preview_post_link not working for draft post
- wp_enqueue_script fails to include in footer
- jQuery function didn’t work in my plugin
- Is there any way to get all the name or slug of template parts used in a page?
- How to make Http Request to a php file present in plugin directory of wordpress
- First WordPress Plugin – Stat Issues
- How to use get_theme_mod in gutenberg editor wordpress?
- All Users > User List > Update User Meta Field Inline
- Correct way to perform non-cacheable DB query
- Updating the Drag-To-Share eXtended share URLs?
- WordPress.org Plugin Directory doesn’t recognise screenshots [closed]
- How to check current user before all actions and filters?
- Plugin: register_deactivation_hook works perfectly well, while register_activation_hook suddenly stopped working
- How to Add Custom New Published Post Counter Icon on Top of the WordPress Site [closed]
- Adding CSS to custom post type admin page causes error
- Create shortcode to echo javascript
- Namespaced shortcode?
- How to pass variables to a function argument using add_action [duplicate]
- Activate my plugins via FTP
- How to add apply_filter for a class property in plugin
- wp_list_table class is not safe to use
- update_option_{$option} not showing old value
- creating a plug in that would tap into save/update action of posts [closed]
- What is the easiest way to rename a plugin (and also avoid plugin updates)
- WooCommerce – set session with new cart item meta when updating cart item quantity [closed]
- Using WordPress to build membership Page
- Set WordPress Transient Expiration via Variable Value
- Sanitizing file & directory form input
- Override plugin class which has namespace
- Correct Plugin File Path
- strange shortcode error: does shortcodes requires any dependency?
- Plugin create pages and use templates
- Custom CSS not being added by plugin
- Create “new pages” within the admin section of plugin
- Quick press publish post hook
- How to display results from a data table with an encrypted user id?
- Creating a plugin that will display text on every page
- I cannot include a file in my plugin settings page
- WordPress cron job running more than once
- How to Add text value in Automatically in this conditions?
- Translation for a text that is not printed on the screen
- Two plugins using the same CSS id
- Activation flow of a plugin in a multisite environment
- Checkbox show / hide output result
- force logged in user to stay in the dashboard
- How to access a wordpress plugin page or add posts without doing it from the WordPress dashboard?
- Critical Error message of WordPress adming
- Clicking custom plugin admin menu redirects to “No Update Required” on live site
- Update wordpress user roles not working as excepted
- Create new page in wordpress plugin which doesn’t exist
- Use WordPress Plugin without WP head
- The plugin generated 227 characters of unexpected output during activation. If you notice “headers already sent” messages
- How to call a function from class in wp table list button form
- 500 Internal server error wp_handle_upload_prefilter
- Can’t access 3rd party API, code works on local server but not on wordpress
- Installation failed, trying to install ANY plugin
- WordPress the_content Filter and GET Parameter
- Overwrite js code using WP_Footer
- Fatal error when activating my custom wordpress plugin
- How to access classes in theme of a plugin?
- Front End Page Not Loading Header Footer
- Media Upload to custom database and Custom Directory
- Help Code Review – I need to write on .htaccess file from theme’s function.php
- TinyMCE how to add css when inputing a text
- How to limit each front-end user to view just his own uploaded files on Amazon S3?
- How do i get all author posts on custom post type list
- Need to hide an element depending on date and post category
- How to add a handler for a button in plugin?
- Submit form stored in one plugin from another plugin?
- Many Field in Front End User Registration form insert as post
- How to show an image popup when one clicks on an image thumbnail?
- Using Taxonomies with Vote It Up plugin chart [closed]
- wordpress last all added get meta value by post id
- wp doesn’t recognize my plugin if I don’t login as WP user (or as WP Admin)
- Possible to add “Template” selector to pages? Is Any Plugins are There..?
- How do I set register_meta for a specific CPT?
- How to Enfroce Domain Licensing Limits? [closed]
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- Update Content for a Custom Block Toolbar Button
- Submitting form to admin-post.php WordPress
- WordPress Throwing Deprecated Errors on its own Files