• I have a code :
    // [date]
    function displaydate(){
    return date(‘F jS’);
    }
    add_shortcode(‘date’, ‘displaydate’);
    // end date

    This displays in my page like: June 13th
    But i want is like:
    June
    13th

    I tried to use
    tags and \n in the code.
    If i am useing \n than i get something like this:

    June
    n13th

    How do i get rid of the “n”?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to place enter in function.php?’ is closed to new replies.