需要 div 中 post 的 WordPress 短代码而不是 ul
Need WordPress short code for post in div instead of ul
我希望我的 post 使用 Div 而不是 ul.My post 显示在 moment.Is 的 ul 中,有任何方法可以将 ul 更改为 Div ?
如果您正在使用此插件:https://it.wordpress.org/plugins/display-posts-shortcode/您似乎可以使用短代码的 'wrapper' 属性。
所以让它像:
[display-posts posts_per_page="1" include_excerpt="false" excerpt_length="0" offset="2" wrapper="div"]
我希望我的 post 使用 Div 而不是 ul.My post 显示在 moment.Is 的 ul 中,有任何方法可以将 ul 更改为 Div ?
如果您正在使用此插件:https://it.wordpress.org/plugins/display-posts-shortcode/您似乎可以使用短代码的 'wrapper' 属性。
所以让它像:
[display-posts posts_per_page="1" include_excerpt="false" excerpt_length="0" offset="2" wrapper="div"]