0
여러 쇼트 코드를 만들고 싶습니다. Wordpress Shortcode
[tabs]
[tab title="1"]
//content goes here
[/tab]
[tab title="2"]
//content2 goes here
[/tab]
[tab title="3"]
//content4 goes here
[/tab]
[/tabs]
예상 출력 :
<ul>
<li id="tab1">[tab title="1" goes here]</li>
<li id="tab2">[tab title="2" goes here]</li>
<li id="tab3">[tab title="3" goes here]</li>
</ul>
<ul id="tab1">
<li>Content1</li>
</ul>
<ul id="tab2">
<li>Content2</li>
</ul>
<ul id="tab3">
<li>Content3</li>
</ul>
어떻게 워드 프레스에 그렇게?
처럼 사용하여 더 나은 아무것도를 읽지도 없다 [공식 문서] (http : //codex.wordpress. org/Shortcode_API) – balexandre
[ID 속성은 고유해야 함을 깨닫습니다] (http://www.w3.org/TR/html4/struct/global.html#h-7.5.2) 또한 [WordPress]가 있습니다 (http://wordpress.stackexchange.com/) stack exchange site .. 문제에 대한 구체적인 도움을 찾고 있지 않지만 wordpress plugin을 개발하는 방법에 대한 지침을 찾고있을 때이 게시물을 게시해야합니다. – rlemon