How to place enter in function.php?
-
I have a code :
// [date]
function displaydate(){
return date(‘F jS’);
}
add_shortcode(‘date’, ‘displaydate’);
// end dateThis displays in my page like: June 13th
But i want is like:
June
13thI tried to use
tags and \n in the code.
If i am useing \n than i get something like this:June
n13thHow 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.