最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Is it possible to capture the content outsidebetween shortcodes?

programmeradmin1浏览0评论

What I mean is... if I passed the following into do_shortcode() could I get access to the HTML in this?

<p>First paragraph</p>
[shortcode1][/shortcode1]
<p>Another paragraph</p>
<p>Another paragraph</p>
[shortcode2][/shortcode2]

My hope would be to have two blocks of HTML to play with:

<p>First paragraph</p>

and

<p>Another paragraph</p>
<p>Another paragraph</p>

Almost like if I could call a function called do_html() or do_content() and process these chunks.

发布评论

评论列表(0)

  1. 暂无评论