wp_link_pages…

September 23rd, 2010 at 02:47pm Jason 138 views

Displays page-links for paginated posts. This works in much the same way as link_pages(), the difference being that arguments are given in query string format. This tag must be within The_Loop.

more… http://codex.wordpress.org/Template_Tags/wp_link_pages

<?php wp_link_pages(array('before' => '<p class="link_pages"><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/****** wp_link_pages ******/
.link_pages {
font: 12px Verdana, Arial, Helvetica, sans-serif;
padding-top: 20px;
padding-bottom: 20px;
margin: 0px;
}
.link_pages a {
padding: 2px 6px;
border: solid 1px #ddd;
background: #fff;
text-decoration: none;
}
.link_pages a:hover {
color: #ffffff;
background: #D1CAAF;
border-color: #D1CAAF;
text-decoration: none;
}

Entry Filed under: WordPress Tagged with:

Share This Post Share This Post SubscribePrint This Post Print This PostSave As PDF Save As PDF

Related Posts Hot Posts Hot Comments Hot Tags

      Leave a Comment

      Required

      Required, hidden

      Some HTML allowed:
      <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

      Trackback this post  |  Subscribe to the comments via RSS Feed


      Calendar

      September 2010
      MTWTFSS
      « Aug Oct »
       12345
      6789101112
      13141516171819
      20212223242526
      27282930 

      Sponsors

      Most Recent Posts