如何跳过WordPress中的第一篇文章?
<?php
$recentPosts = new WP_Query();
$recentPosts->query(array('showposts' => 6,'post_type' =>array('stiri')));
?>
<?php while ($recentPosts->have_posts()) : $recentPosts->the_post(); ?>
Run Code Online (Sandbox Code Playgroud) 例如,我有标题"战舰预告片",因此它将生成像这样的"最佳,玩家,世界"的关键字,我该怎么办呢?
我希望像这样的html apear ...
First:The
Second:Battleship
Third:Trailer
<meta name="keywords" content="<FirstWord>,<second>,<third>"/>
Run Code Online (Sandbox Code Playgroud)
更确切地说,我想用文字分割标题.
我使用Wordpress