用WordPress短代码在侧栏小工具中调用不同分类的文章
本文介绍如何简单的在Wordpress主题中用短代码(shortcode)在侧栏的小工具里调用不同分类的若干最新文章。
在Wordpress主题functions.php中添加短代码
add_shortcode('slnet', 'slnet_shortcode');
在Wordpress主题functions.php中添加函数
function slnet_shortcode($
转载
2015-12-26 00:26:41 ·
1273 阅读 ·
0 评论