タグ: ショートコード
- 
		投稿者投稿
 - 
		
			
				
2018/02/06 2:27 PM #134344
Ishida
参加者一部のカテゴリーページをオリジナル化したかったため、
category-(id).php というオリジナルのphpを作成したのですが、
「ショートコード」が変換されず、そのまま表示され困っています。設置手順や記述方法を教えて頂けますでしょうか。
ここでいうショートコードとは、dipipressさんの有料ショートコードプラグインのことで、
以下のような、囲い込みタイプの[table]、[tag]、[ptable]などを使用しています。[table width=”100%” class=””]
[tablerow align=”center” width=”160px” class=”” bgcolor=””]
[tablecell align=”center” class=”” bgcolor=””]
1-1番目のセル
[/tablecell]
[tablecell align=”center” class=”” bgcolor=””]
1-2番目のセル
[/tablecell]
[tablecell align=”center” class=”” bgcolor=””]
1-3番目のセル
[/tablecell]
[tablecell align=”center” class=”” bgcolor=””]
1-4番目のセル
[/tablecell]
[/tablerow]
[tablerow align=”center” class=”” bgcolor=””]
[tablecell align=”center” class=”” bgcolor=””]
2-1番目のセル
[/tablecell]
[tablecell class=”blue icon-crown” bgcolor=”#F4FEC9″]
2-2番目のセル
[/tablecell]
[tablecell align=”center” class=”” bgcolor=””]
2-3番目のセル
[/tablecell]
[tablecell align=”center” class=”” bgcolor=””]
2-4番目のセル
[/tablecell]
[/tablerow]
[tablerow align=”center” class=”” bgcolor=””]
[tablecell align=”center” class=”” bgcolor=””]
3-1番目のセル
[/tablecell]
[tablecell align=”center” class=”” bgcolor=””]
3-2番目のセル
[/tablecell]
[tablecell align=”center” class=”” bgcolor=””]
3-3番目のセル
[/tablecell]
[tablecell align=”center” class=”” bgcolor=””]
3-4番目のセル
[/tablecell]
[/tablerow]
[/table]
DigiPressさんの操作マニュアルより引用使用テーマは「el plano」です。
「ショートコード」プラグインは購入済みで、固定ページなどでは正常に動いています。どうぞ、よろしくお願い致します。
2018/02/10 2:14 PM #134744DigiPress サポート
キーマスターカテゴリーテンプレートのどの部分にショートコードを表示しているのでしょうか。
ショートコードはそもそも記事本文かテキストウィジェットにてWordPressが変換するものであり、PHPのコードに直接埋め込んで表示されるようなものではありません。2018/02/14 1:45 PM #135056Ishida
参加者do_shortcode を使用する形で解決しました。
回答ありがとう御座います。 - 
		投稿者投稿
 
- このトピックに返信するにはログインが必要です。
 
