짧은 코드를 통해 탭을 만들 수있는 플러그인을 사용하고 있습니다. 양식에 짧은 코드를 만들었지 만 짧은 코드를 탭을 생성하는 짧은 코드 사이에 넣으면 양식이 탭에서 빠져 나옵니다.shortcode 내부의 Wordpress 단축 코드가 작동하지 않습니다.
Shorcode 양식 :
<?php
function test()
{
?>
<h1>Datos de Usiario</h1>
<form id="" action="" method="" >
<fieldset >
<legend>User Data</legend>
<input type='hidden' name='id_wp' value="<?php echo $user_id ?>" value='1'/>
<label for='nombre' >First Name*: </label>
<input type='text' name='nombre' id='' maxlength="50" />
<label for='apellido' >Last Name*: </label>
<input type='text' name='apellido' id='' maxlength="50" />
<label for='email' >Email Address*:</label>
<input type='text' name='emaild' id='' maxlength="50" />
<label for='ciudad' >City*: </label>
<input type='text' name='ciudad' id='' maxlength="50" />
<input type='submit' name='Submit' value='Submit' />
</fieldset>
</form>
<?php
}
?>
및 shorcode 페이지
function _test_() {
return test();
}
add_shortcode('test', '_test_');
나는이
[fusion_tabs design="classic" layout="horizontal" justified="yes" backgroundcolor="" inactivecolor="" bordercolor="" class="" id=""]
[fusion_tab title="Datos Usuario" icon="fa-user"]
Hello!!
[/fusion_tab]
[fusion_tab title="Registrar Pedido" icon="fa-plus-circle"]
[test]
[/fusion_tab]
[fusion_tab title="Estatus Pedidos" icon="fa-question-circle"]
any!!
[/fusion_tab]
[/fusion_tabs]
를 넣고이 결과
입니다 당신은 반환 콜백 함수의 HTML에 필요 0
은 정말 당신의 단축 코드 코드인가? 'return rest();'? 'rest()'란 무엇입니까? – rnevius
죄송합니다. 시험을 쉬지 마십시오 – metalbox
그냥'test()'를 없애고'_test _()'안에 html을 넣는 것이 어떻습니까? 그렇지 않다면, 당신은'test()'return'을 그 html의 모든 것으로 가질 필요가 있습니다 ... – rnevius