我使用了列表类帖子插件,我非常满意,但如果我想在另一个页面中打开帖子(列表帖子),则不在同一个页面中。谢谢,对不起,我的英语不好
是否可以在新的页面窗口中打开链接?
这是针对版本0.36实现的link_target
属性:
link_target - 选择target
链接到帖子的属性(target=\\u blank、\\u self、\\u parent、\\u top、framename)。
示例:[catlink id=3 link_target=_blank]
将创建:
<a href="http://localhost/wordpress/?p=45" title="Test post" target="_blank">Test post</a>
我假设这就是插件:http://wordpress.org/plugins/list-category-posts/?
您可以使用jquery来生成所有。lcp\\U catlist链接在新窗口中打开-将此代码添加到页脚:
<script type="text/javascript">
jQuery(function(){
jQuery(\'.lcp_catlist li a\').prop(\'target\', \'_blank\');
});
</script>