如何在短码中调用短代码?

发布于 2025-02-12 11:40:31 字数 372 浏览 2 评论 0原文

我想在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

早茶月光 2025-02-19 11:40:31

短代码不会自动嵌套 - 您必须自己调用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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文