1
我想知道最优雅/最佳实践的方式来做到以下几点:动态内容添加到一个WordPress页面
比方说,我有一些PHP返回一个字符串(今天的天气,例如)。我希望能够在WordPress页面中包含字符串,但不能使用插件在页面中允许PHP。
因此,例如:
This is content of the page that is editable via WordPress pages.
Today's weather is THE_WEATHER. This bit is also editable, but as
an editor I can't edit the PHP that just told us what the weather
is, the developer does that.
什么是最好的实践方式做到这一点(最好不使用插件)?
它看起来像“短代码”是它!谢谢。 – 2013-03-21 14:18:44