Przeglądaj źródła

added link pages

Eddie Machado 12 lat temu
rodzic
commit
ce5e2a941b
1 zmienionych plików z 23 dodań i 3 usunięć
  1. 23 3
      single-custom_type.php

+ 23 - 3
single-custom_type.php

@@ -34,9 +34,29 @@
 								</header> <!-- end article header -->
 
 								<section class="entry-content cf">
-
-									<?php the_content(); ?>
-
+									<?php
+										// the content (pretty self explanatory huh)
+										the_content();
+
+										/*
+										 * Link Pages is used in case you have posts that are set to break into
+										 * multiple pages. You can remove this if you don't plan on doing that.
+										 *
+										 * Also, breaking content up into multiple pages is a horrible experience,
+										 * so don't do it. While there are SOME edge cases where this is useful, it's
+										 * mostly used for people to get more ad views. It's up to you but if you want
+										 * to do it, you're wrong and I hate you. (Ok, I still love you but just not as much)
+										 *
+										 * http://gizmodo.com/5841121/google-wants-to-help-you-avoid-stupid-annoying-multiple-page-articles
+										 *
+										*/
+										wp_link_pages( array(
+											'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'bonestheme' ) . '</span>',
+											'after'       => '</div>',
+											'link_before' => '<span>',
+											'link_after'  => '</span>',
+										) );
+									?>
 								</section> <!-- end article section -->
 
 								<footer class="article-header">