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