如何在短码中调用短代码?
我想在WordPress页面编辑器中调用以下快捷代码:
[pdfjs-viewer url=/wp-content/uploads/pdfs/[wpcf7_session_id]/vertrag.pdf viewer_width=100% viewer_height=1500px fullscreen=true fullscreen_text='Im Vollbildmodus anschauen' download=true print=true]
问题是短代码[WPCF7_SESSION_ID]
。
是否有机会在页面编辑器中以某种方式调用该电话?
还是我需要在PHP文件中的后端中调用它?我该怎么做?
I wanted to call the following shortcode in the wordpress page editor:
[pdfjs-viewer url=/wp-content/uploads/pdfs/[wpcf7_session_id]/vertrag.pdf viewer_width=100% viewer_height=1500px fullscreen=true fullscreen_text='Im Vollbildmodus anschauen' download=true print=true]
problem is the shortcode [wpcf7_session_id]
.
Any chance to call that somehow in the page editor?
Or do I need to call it in the backend in the php files? How can I do that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
短代码不会自动嵌套 - 您必须自己调用do_shortcode($ content)。请参阅
Shortcodes do not automatically nest -- you have to call do_shortcode($content) yourself. See the caption_shortcode() example on http://codex.wordpress.org/Shortcode_API.