• Resolved gsmind

    (@gsmind)


    I would like to add a shortcode in my description invoice.

    I created a simple shortcode to display the current date :

    function display_current_date() {    
    return date('jS F Y');
    }
    
    add_shortcode('current_date', 'display_current_date');  

    It works on pages but not on the invoice description, when I load the page I only have the name of the shortcode who is displayed : [current_date]

    There is some way to add a date dynamically ? I want to write a sentence like this :

    “Your invoice for [October] : “

    Thanks for your help

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Add shortcode to description’ is closed to new replies.