How do I write a shortcode that opens and closes?
Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
1
down vote
favorite
I want to have a shortcode like this:
[readmore]Lorem ipsum dolor sit amet, consectetur adipiscing elit...[/readmore]
plugin-development shortcode
New contributor
add a comment |Â
up vote
1
down vote
favorite
I want to have a shortcode like this:
[readmore]Lorem ipsum dolor sit amet, consectetur adipiscing elit...[/readmore]
plugin-development shortcode
New contributor
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I want to have a shortcode like this:
[readmore]Lorem ipsum dolor sit amet, consectetur adipiscing elit...[/readmore]
plugin-development shortcode
New contributor
I want to have a shortcode like this:
[readmore]Lorem ipsum dolor sit amet, consectetur adipiscing elit...[/readmore]
plugin-development shortcode
plugin-development shortcode
New contributor
New contributor
New contributor
asked 3 hours ago
Coomie
1263
1263
New contributor
New contributor
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
I found the correct way:
function readmore_link($defaults,$between_the_tags)
...
$output = 'This is between the shortcode tags:';
$output .= $between_the_tags;
return $output;
add_shortcode('readmore', 'readmore_link');
New contributor
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
I found the correct way:
function readmore_link($defaults,$between_the_tags)
...
$output = 'This is between the shortcode tags:';
$output .= $between_the_tags;
return $output;
add_shortcode('readmore', 'readmore_link');
New contributor
add a comment |Â
up vote
2
down vote
I found the correct way:
function readmore_link($defaults,$between_the_tags)
...
$output = 'This is between the shortcode tags:';
$output .= $between_the_tags;
return $output;
add_shortcode('readmore', 'readmore_link');
New contributor
add a comment |Â
up vote
2
down vote
up vote
2
down vote
I found the correct way:
function readmore_link($defaults,$between_the_tags)
...
$output = 'This is between the shortcode tags:';
$output .= $between_the_tags;
return $output;
add_shortcode('readmore', 'readmore_link');
New contributor
I found the correct way:
function readmore_link($defaults,$between_the_tags)
...
$output = 'This is between the shortcode tags:';
$output .= $between_the_tags;
return $output;
add_shortcode('readmore', 'readmore_link');
New contributor
New contributor
answered 2 hours ago
Coomie
1263
1263
New contributor
New contributor
add a comment |Â
add a comment |Â
Coomie is a new contributor. Be nice, and check out our Code of Conduct.
Â
draft saved
draft discarded
Coomie is a new contributor. Be nice, and check out our Code of Conduct.
Coomie is a new contributor. Be nice, and check out our Code of Conduct.
Coomie is a new contributor. Be nice, and check out our Code of Conduct.
Â
draft saved
draft discarded
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fwordpress.stackexchange.com%2fquestions%2f316889%2fhow-do-i-write-a-shortcode-that-opens-and-closes%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password