• Resolved raveleak

    (@raveleak)


    Hello Support,
    if I try to put a custom shortcode on my page, it only shows the month but not the day or year itself. Basically no numbers are shown.

    I want the date to look like this:

    5th March

    or even better

    05. March

    Could you please help me with this issue? Would it be maybe possible to add these options (without year) when edited in the WordPress Gutenberg Site Editor?

    Thank you very much in advance!

    Best,
    Florian

    The page I need help with: [log in to see the link]

Viewing 4 replies - 16 through 19 (of 19 total)
  • Thread Starter raveleak

    (@raveleak)

    Hello Noruzzaman,

    thank you for your response! I just added the shortcode, but cannot manage to make a space between the number and the month.

    If I use this shortcode [current-date format=jS‎F] the date and the month are glued together as seen in this picture: https://prnt.sc/hQUCs9Xfel27

    If I use the shortcode with a space between the js and the F like this [current-date format=jS‎ F] the month does not appear anymore. Here is the picture where the shortcode contains some space: https://prnt.sc/PRlnvFGJFrE9

    If I use something like [current-date format=jS’F] it displays the ’ as well. If I use this shortcode [current-date format=jS’ F] the month disappears again. I also used an “invisible character” (https://www.editpad.org/tool/invisible-character) but then the moth disappeared again.

    This was the reason, why I was not using the shortcode in the first place. Could you maybe provide me with the correct shortcode to fix this problem?

    Thank you very much for your response in advance!

    Best Regards,
    Florian

    Plugin Author Noruzzaman

    (@noruzzaman)

    Hello Florian,


    Thank you for the detailed explanation and the screenshots! I can see where the confusion is coming from, and I apologize for any frustration this has caused. It seems there was a slight mistake in how the shortcode format was interpreted. The correct shortcode to display the date with a space between the day (e.g., “26th”) and the month (e.g., “March”) is [current-date format=”jS F”].
    Here’s why your attempts didn’t work:
    [current-date format=jSF] (no space) glues the day and month together because there’s no separator.
    [current-date format=jS F] (with a space) didn’t work because the format needs to be enclosed in quotes when there’s a space involved, otherwise the system doesn’t recognize it properly.
    [current-date format=jS’F] or [current-date format=jS’ F] introduced unwanted characters (like the apostrophe) or broke the format entirely.
    The invisible character likely caused a parsing issue, which is why the month disappeared again.
    The correct format, [current-date format=”jS F”], uses double quotes around the jS F to ensure the space is respected and both the day and month display properly. For example, today (March 26, 2025), it should output “26th March”.
    Could you please try this shortcode and let me know if it works as expected? If you’re still facing any issues, feel free to share another screenshot, and I’ll be happy to assist further. Thank you for your patience, and I’m here to help!


    Best regards,
    Noruzzaman

    Thread Starter raveleak

    (@raveleak)

    Hello Noruzzaman,

    thank you a lot for your help! This fixed the problem and everything works now as expected!

    Best Regards,
    Florian

    Plugin Author Noruzzaman

    (@noruzzaman)

    Hello Florian,
    I’m delighted to hear that the solution worked for you and that everything is running smoothly now. If you have any more questions or need further assistance, feel free to let me know. I’m always happy to help!
    Best regards,
    Nouruzzaman

Viewing 4 replies - 16 through 19 (of 19 total)

The topic ‘Cannot add custom date’ is closed to new replies.