• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP next_post函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中next_post函数的典型用法代码示例。如果您正苦于以下问题:PHP next_post函数的具体用法?PHP next_post怎么用?PHP next_post使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了next_post函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: edit_post_link

        edit_post_link(__('Edit', 'andreas04'), '<span class="editlink"> | ', '</span>');
        ?>
                  
             		</p>
              
              </div>
                
              <?php 
        comments_template();
        ?>
              
              <p class="pagenav"><?php 
        previous_post('%', __('&laquo; Previous', 'andreas04'), 'no');
        ?>
 | <?php 
        next_post('%', __('Next &raquo;', 'andreas04'), 'no');
        ?>
</p> 
						
          <?php 
    }
    ?>
      
        <?php 
} else {
    ?>
      
        <?php 
}
?>
  
开发者ID:rmccue,项目名称:wordpress-unit-tests,代码行数:30,代码来源:single.php


示例2: comments_template

        ?>
            </div>
            <div class="clear"></div>
          </div><!-- (class="post") -->

        <?php 
        comments_template();
        ?>

        <div class="navigation">
          <div class="alignleft"><?php 
        previous_post('&laquo; Previous Post: %', '', 'yes');
        ?>
</div>
          <div class="alignright"><?php 
        next_post('Next Post: % &raquo;', '', 'yes');
        ?>
</div>
        </div><!-- (class="navigation") -->

      <?php 
    }
} else {
    ?>

        <h2>Error 404 - Not Found</h2>
        <p>Sorry, but you are looking for something that isn't here.</p>

      <?php 
}
?>
开发者ID:jnsnkrllive,项目名称:wordpress-theme-hhcyouth,代码行数:31,代码来源:single.php


示例3: get_next_post

        </div><?php 
        $Image = get_next_post();
        $attr = wp_get_attachment_image_src(get_post_thumbnail_id($Image->ID), 'single-post-thumbnail');
        ?>
<div class="postFooterNext"  style="background:url(<?php 
        echo $attr[0];
        ?>
); ">
            <div class="postControlsOpaque">
            </div>
            <h2 class="nextHeader"><?php 
        echo next_post('%', 'NEXT', 'no');
        ?>
</h2>
            <?php 
        echo '<div class="nextJournalPost">' . next_post('%', '', 'yes') . '</div>';
        ?>
        </div>
        <div class="postFooterBack">
            <a href="<?php 
        bloginfo('url');
        ?>
/work"><h2>Back to featured works</h2></a>
        </div>
    </div>
</div>

<?php 
    }
}
?>
开发者ID:Chris-indigoRiver,项目名称:indigoRiver,代码行数:31,代码来源:single-Journals.php


示例4: the_author

<p>Posted by <?php 
                the_author();
                ?>
<br /><?php 
                the_time('F jS, Y @ g:i A');
                ?>
</p>

<?php 
            }
            comments_template();
            if (!is_page()) {
                ?>
<p>&laquo; <?php 
                next_post('%', 'Next: ', 'yes');
                ?>
 | <?php 
                previous_post('%', 'Previous: ', 'yes');
                ?>
 &raquo;</p>				
<?php 
            }
        } else {
            if ($i == 0) {
                if (is_category()) {
                    ?>
	<h1><?php 
                    _e('Posts in: ');
                    single_cat_title('');
                    ?>
开发者ID:SymbiSoft,项目名称:litprojects,代码行数:30,代码来源:index.php


示例5: the_time

        the_time(get_option('date_format'));
        ?>
</h3>
			<?php 
        the_content();
        ?>

		<?php 
    }
} else {
    ?>
			<p><?php 
    _e('Sorry, no posts matched your criteria.');
    ?>
</p>
		<?php 
}
?>

		<div class="timeNav">
			<?php 
previous_post('&laquo; %', 'Previous', 'no');
?>
			|
			<?php 
next_post('% &raquo;', 'Next', 'no');
?>
		</div>
	</div>
<?php 
get_footer();
开发者ID:brianbrennan,项目名称:sandDune,代码行数:31,代码来源:single.php


示例6: previous_post

*/
?>

	

	<?php 
if (is_single()) {
    ?>

	<!-- <div class="navigation">
		<div class="left"><?php 
    previous_post('<span>&laquo;</span> %', '', 'yes');
    ?>
</div>
		<div class="right"><?php 
    next_post(' % <span>&raquo;</span>', '', 'yes');
    ?>
</div>
		<div class="clear"></div>
	</div> -->

	<?php 
} else {
    ?>
		
	<div class="navigation">
		<div class="left"><?php 
    next_posts_link('<span>&laquo;</span> Previous Entries');
    ?>
</div>
		<div class="right"><?php 
开发者ID:ratjadi,项目名称:andreaszeitler.net,代码行数:31,代码来源:navigation.php


示例7: _e

            _e('Leave a comment', 'lightword');
        }
        ?>
</a></span><div class="clear"></div>
</div>
<div class="cat_tags_close"></div>

</div>

<?php 
        comments_template();
        ?>

<div class="next_previous_links">
<span class="alignleft"><?php 
        next_post('&laquo; %', '', 'yes');
        ?>
</span>
<span class="alignright"><?php 
        previous_post('% &raquo;', '', 'yes');
        ?>
</span>
<div class="clear"></div>

</div>
<?php 
    }
} else {
    ?>

<h2><?php 
开发者ID:roblillack,项目名称:lightword,代码行数:31,代码来源:single.php


示例8: the_post_thumbnail

<div id="single_wrap" class="chat_move">
<div class="image_wrap">
<?php 
if (has_post_thumbnail()) {
    the_post_thumbnail('full');
}
?>
</div>

<div class="date"><?php 
the_time('jS F, Y');
?>
</div>

<?php 
previous_post('<div class="nav nav_prev">%</div>', '', 'no');
next_post('<div class="nav nav_next">%</div>', '', 'no');
?>
</div>
开发者ID:studioponto,项目名称:Eternal-Torche,代码行数:19,代码来源:content-old.php


示例9: next_post

						<div id="post-siguiente-fin"><?php 
next_post('% &raquo; ', 'SIGUIENTE', '', 1000);
?>
</div>
					</div>
					<div id="separador-mobile">
						<div class="separador-post-comentario"></div>
					</div>
					<div id="separador-post-b">
						<div class="separador-post-comentario"></div>
						<div id="post-anterior-desktop"><?php 
previous_post('&laquo; %', 'POST ANTERIOR', '', 1000);
?>
</div>
						<div id="post-siguiente-desktop"><?php 
next_post('% &raquo; ', 'SIGUIENTE POST', '', 1000);
?>
</div>
						<div class="separador-post-comentario"></div>
					</div>
					<div id="comentarios-titulo">
						<h3>DEJA TU COMENTARIO</h3>
						<p>Si quieres insertar código: &lt;pre&gt;&lt;code&gt; TU CÓDIGO &lt;/code&gt;&lt;/pre&gt;.</p>
					</div>
					<?php 
comments_template();
?>
				</div>
			</div>
			<!-- SIDEBAR -->
			<?php 
开发者ID:hernandemczuk,项目名称:wordpressTheme,代码行数:31,代码来源:single.php


示例10: next_post

<section class="post-nav">
	<span class="post-button previous">
		<?php 
next_post('%', 'Previous', 'no');
?>
	</span>
	<span class="post-button next">
		<?php 
previous_post('%', 'Next', 'no');
?>
	</span>
</section>
开发者ID:BennyHudson,项目名称:eaton,代码行数:12,代码来源:nav-posts.php


示例11: get_the_term_list

        echo get_the_term_list(get_the_ID(), 'custom_tag', '<span class="tags-title">' . __('Browse Related:', 'bonestheme') . '</span> ', ', ');
        ?>
</p>


								</section> <!-- end article section -->

								<footer class="article-header">
											  
									<span class="single-nav">
											<span class="prev"><?php 
        previous_post('%', '&laquo;  Last Clothing Item', 'no');
        ?>
  </span>
											<span class="next"><?php 
        next_post('% ', 'Next Clothing Item &raquo;', 'no');
        ?>
</span>
									</span>		
									
								</footer> <!-- end article footer -->

								<?php 
        comments_template();
        ?>

							</article> <!-- end article -->

							<?php 
    }
    ?>
开发者ID:brycefrees,项目名称:dunia,代码行数:31,代码来源:single-custom_type.php


示例12: get_header

<?php get_header(); ?>

	<div id="content" class="widecolumn">
				
  <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
	
		<div class="navigation">
			<div class="alignleft"><?php previous_post('&laquo; %','','yes') ?></div>
			<div class="alignright"><?php next_post(' % &raquo;','','yes') ?></div>
		</div>
	
		<div class="post">
			<h2 id="post-<?php the_ID(); ?>"><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
	
			<div class="entrytext">
				<?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
	
				<?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
	
				<p class="postmetadata alt">
					<small>
						This entry was posted
						<?php /* This is commented, because it requires a little adjusting sometimes.
							You'll need to download this plugin, and follow the instructions:
							http://binarybonsai.com/archives/2004/08/17/time-since-plugin/ */
							/* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); echo time_since($entry_datetime); echo ' ago'; */ ?> 
						on <?php the_time('l, F jS, Y') ?> at <?php the_time() ?>
						and is filed under <?php the_category(', ') ?>.
						You can follow any responses to this entry through the <?php comments_rss_link('RSS 2.0'); ?> feed. 
						
						<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:31,代码来源:single.php


示例13: the_title

        the_title();
        ?>
 - Le blog du projet #EnigmaTIC - 'st_url='<?php 
        the_permalink();
        ?>
'></span>
				</div>
			</div>
		</article>
		<div class="nextPrevPost">
			<div class="prev"><?php 
        previous_post('<i class="fa fa-angle-left"></i>&nbsp;&nbsp;<strong>Article précédent</strong> : %', '', 'yes');
        ?>
</div>
			<div class="next"><?php 
        next_post('<strong>Article suivant</strong> : % &nbsp;<i class="fa fa-angle-right"></i>', '', 'yes');
        ?>
</div>
		</div>
		<!-- END OF ARTICLE -->
		<?php 
        if (comments_open()) {
            comments_template();
        }
        ?>
		<?php 
    }
    ?>
		<?php 
} else {
    ?>
开发者ID:hardouinyann,项目名称:EnigmaTIC,代码行数:31,代码来源:single.php


示例14: previous_post

	It has been placed in its own file so it's easier to change across all of K2
*/
?>

	<hr />

	<?php 
if (is_single()) {
    ?>

	<div class="navigation">
		<?php 
    previous_post('<div class="left"><span>&laquo;</span> %</div>', '', 'yes');
    ?>
		<?php 
    next_post('<div class="right">% <span>&raquo;</span></div>', '', 'yes');
    ?>
		<div class="clear"></div>
	</div>

	<?php 
} else {
    ?>
		
	<?php 
    //global $pagenow; echo $pagenow;
    ?>
		
	<div class="navigation">
	<?php 
    $_SERVER['REQUEST_URI'] = preg_replace("/(.*?).php(.*?)&(.*?)&(.*?)&_=/", "\$2\$3", $_SERVER['REQUEST_URI']);
开发者ID:rmccue,项目名称:wordpress-unit-tests,代码行数:31,代码来源:navigation.php


示例15: the_author

    the_author();
    ?>
</a> <?php 
    edit_post_link(__('Edit', '_s'), '<span class="edit-link">', '</span>');
    ?>
	
		</div>		
	</div>
	
	<div class="single-pagi"> 
		<div class="prev-nav"> <?php 
    previous_post("%", esc_attr__('&laquo; PREVIOUS ', 'mm'), "<br />", "yes", "mm");
    ?>
</div> | 
		<div class="next-nav"> <?php 
    next_post("%", esc_attr__('NEXT &raquo;', 'mm'), "<br />", "yes", "mm");
    ?>
</div> 
		<div class="cb"></div>
	</div>
	<div class="cb"></div>
</div>
</header><!-- .entry-header -->

<section>
	
	
	

<?php 
    get_template_part('content', 'single');
开发者ID:m-godefroid76,项目名称:devrestofactory,代码行数:31,代码来源:single.php


示例16: get_next_post

      <?php 
        $next_post = get_next_post($in_same_cat = 'true');
        if (!empty($next_post)) {
            ?>
      <?php 
            if (get_adjacent_post(false, '', false)) {
                ?>
      <div class="pull-right" style="padding:10px;">
        <?php 
                next_post('%', '<i class="material-icons">keyboard_arrow_right</i>', 'no');
                ?>
      </div>
      <div class="pull-right hidden-xs"> <small>Read Next</small>
        <div style="line-height:1.2;max-width:270px;margin-top:-5px;">
          <?php 
                next_post('%', '', 'yes', $in_same_cat = 'true');
                ?>
        </div>
      </div>
      <?php 
            }
            ?>
      <?php 
        }
        ?>
    </div>
  </div>

  <?php 
        if (!in_category("work")) {
            include 'related.php';
开发者ID:alexkwa,项目名称:alexkwa-theme,代码行数:31,代码来源:single.php


示例17: previous_post

				</div>
			</div>
		</div>
	</div>

	<div class="wrap">
		<div class="container">
			<div class="row post-navigation">
				<div class="post-navigation-left col-md-6">
					<?php 
    previous_post('<h5>Previous Post</h5> <span>&larr;</span> %', '', 'yes');
    ?>
				</div>
				<div class="post-navigation-right col-md-6">
					<?php 
    next_post('<h5>Next Post</h5> % <span>&rarr;</span>', '', 'yes');
    ?>
				</div>
			</div>
		</div>
	</div>

	<?php 
    // If comments are open or we have at least one comment, load up the comment template.
    if (comments_open() || get_comments_number()) {
        // comments_template();
    }
    ?>

<?php 
}
开发者ID:grgaortiz,项目名称:udacity-wp,代码行数:31,代码来源:single.php


示例18: next_post

</p>
								</div>
								<div class="col-md-6 text-center">
									<p class="capitalized text-black"><strong>Share this story</strong></p>
									<br>
									<p>
										<?php 
        include TEMPLATEPATH . '/social-icons.php';
        ?>
									</p>
								</div>
								<div class="col-md-3 rt text-right">
									<br>
									<br>
									<p><?php 
        next_post('%', '<span>Next</span> <i class="fa fa-angle-right"></i>', 'no');
        ?>
</p>
								</div>
							</div>

							<br>
							<br>
							<br>
							<br>

						</div>
						
						<div class="col-md-4">
							<div class="row">
								<div class="col-md-8 col-md-offset-1">
开发者ID:rosslibby,项目名称:davinahearne,代码行数:31,代码来源:single.php


示例19: posts_nav_link

<?php 
    }
}
// --------------------- END OF POSTS LOOP --------------------------
?>
 

<p class="center"><strong>
<?php 
// navigation links for multi-post pages
posts_nav_link();
// navigation links for single-post pages
previous_post('%');
// uses post title for %
next_post('%');
// uses post title for %
?>
</strong></p>

<?php 
// -------- START OF INCLUDES FOR LAST COMMENTS, MY PROFILE, ETC. --------
$current_skin_includes_path = dirname(__FILE__) . '/';
// Call the dispatcher:
require $skins_path . '_dispatch.inc.php';
// -------------- END OF INCLUDES FOR LAST COMMENTS, MY PROFILE, ETC. -------
?>

</div>

<?php 
开发者ID:b2evolution,项目名称:crystal_glass_skin,代码行数:30,代码来源:_main.php


示例20: edit_post_link

        <?php 
        edit_post_link(__('Edit'), '<li>', '</li>');
        ?>
        </ul>
    </div>
</div>
<!-- END photo meta -->

<!-- BEGIN navigate -->
<div id="navigate">
    <div id="navigate-inner" class="clearfix">
        <?php 
        $wp_query->is_single = true;
        ?>
        <span class="previous"><?php 
        next_post('%', 'Anterior', '');
        ?>
</span>
        <span class="next"><?php 
        previous_post('%', 'Siguiente', '');
        ?>
</span>
    </div>
</div>
<!-- END navigate -->
<?php 
    }
}
?>

<?php 
开发者ID:aliciente,项目名称:portfolio,代码行数:31,代码来源:index.php



注:本文中的next_post函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP next_post_link函数代码示例发布时间:2022-05-15
下一篇:
PHP next_page函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap