Is it possible to capture the content outsidebetween shortcodes?

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

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744714991a4589563.html

相关推荐

  • Is it possible to capture the content outsidebetween shortcodes?

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

    1天前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信