PHPでショートコードを作っているのですが、
returnの中に、<div class="center">などのタグを入れるとワードプレスでエラーになります。<hr>や<strong>は問題ありません。
何卒宜しくお願いいたします。
function hello_func() {
return "";
}
add_shortcode('hello', 'hello_func');
回答2件
あなたの回答
tips
プレビュー
Q&A
解決済
退会済みユーザー
総合スコア0
投稿2019/01/22 00:19
PHPでショートコードを作っているのですが、
returnの中に、<div class="center">などのタグを入れるとワードプレスでエラーになります。<hr>や<strong>は問題ありません。
何卒宜しくお願いいたします。
function hello_func() {
return "";
}
add_shortcode('hello', 'hello_func');
回答2件
あなたの回答
tips
プレビュー