• Follow us on Twitter
  • Join me on Google Plus
  • Add me on Linkedin
  • RSS
I'm a front-end, web developer and WordPress lover, since 2009. Actually working in Altran-ais as a front-end and web developer with Ruby on Rails . I also have skills with Ruby on Rails, PHP, JSP and jQuery. My hobbies is photography , playing games and dancing. close

  • Blog
  • Contact
  • About

Tag Archive for: paginação

Using the native pagination function in wordpress

0 Comments/ in Blog, WordPress / by admin
May 15, 2012

For long time I used some plugins like wp-pagenavi to make pagination for WordPress b/c I just knew that function that display “older posts” and “Newer posts” wich is not very interative and I never like it. :P Browsing by the Codex I found a very simple,easy and short function that I make me feel like a stupid b/c I used a plugin to make it.

You can see the function below:

<?php wp_link_pages( $args ); ?>

Easy uh?! The parameters is also very easy to understand and change.

See below the parameters default:

<?php $args = array(
    'before'           => '<p>' . __('Pages:'),
    'after'            => '</p>',
    'link_before'      => , 'link_after' => ,
    'next_or_number'   => 'number',
    'nextpagelink'     => __('Next page'),
    'previouspagelink' => __('Previous page'),
    'pagelink'         => '%',
    'more_file'        => , 'echo' => 1 ); ?> 

Source:

http://codex.wordpress.org/Function_Reference/wp_link_pages

Recent Posts

  • Base64 images on HTML/CSS
  • Simple menu drop down with CSS3
  • CSS hack for IE8 and IE9 and rails assets:precompile
  • Get current controller name/action name from view
  • Using the native pagination function in wordpress

Archives

  • April 2013
  • March 2013
  • May 2012

Categories

  • Blog
  • CSS
  • Ruby on Rails
  • WordPress

Tag Cloud

code css3 menu navigation pagination paginação rails ruby on rails simple menu tips tutorial tutorial wordpress wordpress

Latest Tweets

  • No more curly hair!!
    May 18, 2013 - 3:42 pm
  • Arduino para mac dando bufferoverflow, tela branca 2x ja ¬¬
    May 18, 2013 - 11:53 am
  • Great CSS triangle generator http://t.co/GwfUAmWwXw via @ekykwan
    May 17, 2013 - 10:16 am

Categories

  • Blog
  • CSS
  • Ruby on Rails
  • WordPress

Recent Posts

  • Base64 images on HTML/CSS
  • Simple menu drop down with CSS3
  • CSS hack for IE8 and IE9 and rails assets:precompile
  • Get current controller name/action name from view
  • Using the native pagination function in wordpress
© Copyright - Gabriel Del Fiaco - Wordpress Theme by Kriesi.at