All Good Things Must Come To An End

As you all know, I have been doing WordPress plugins and supporting it for the past 6 years. These 6 years of my life, I have been through my polytechnic education, my national service as well as my university education.

I just graduated from university in December 2009 and have been looking for full-time jobs. I am offered a full-time job and will be starting work on 1st February 2010.

I regret to say that I am NOT ABLE to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

However, I WILL still update my plugins whenever I can and you still can report bugs to me via email and I will try to fix it.

Author Topic: List all Pages  (Read 5040 times)

0 Members and 1 Guest are viewing this topic.

Offline yock

  • Newbie
  • *
  • Posts: 5
    • View Profile
List all Pages
« on: 27 February 2007, 23:59 »
Hi gamerz, I've been using this plugin for a while. Just upgraded to 2.1 and thus added this new version of the plugin. I wanted to be able to list all the pages my site has instead of just a few. Do you have a quick work around for this? Thanks for the help.
-Yock

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,692
    • View Profile
  • WordPress Version: WordPress 3.0.x
  • Theme Name: lesterchan.net v3.4
Re: List all Pages
« Reply #1 on: 28 February 2007, 02:17 »
there is a core function on this, check the sidebar.php, it shld have a code to list all pages

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline yock

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: List all Pages
« Reply #2 on: 28 February 2007, 03:32 »
well on an older version of pagenavi all i had to do was add some minor changes to your code and it listed the pages in this fashion <<12345678910 >> instead of 12345...Last>>

it was something like this:
Quote
if ($paged >= 100) {
            echo '<a href="'.get_pagenum_link().'">&laquo; First</a> ... ';
         }
         previous_posts_link($prelabel);
         for($i = $paged - 100 ; $i  <= $paged +100; $i++) {
I had to change the areas where it says 100 from something else. But when i make those changes on your new script it throws and error at me. Any ideas?

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,692
    • View Profile
  • WordPress Version: WordPress 3.0.x
  • Theme Name: lesterchan.net v3.4
Re: List all Pages
« Reply #3 on: 28 February 2007, 03:58 »
you mean list all pages of post? I think didnt get your question right

Just Use:
Code: [Select]
wp_pagenavi('','','','', 100)

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline yock

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: List all Pages
« Reply #4 on: 28 February 2007, 04:07 »
ah yes, thats what I was asking. Guess I didnt phrase it correctly. But in any case your fix there did the job. When you put in 100 in your example it only shows the first 50 pages. Not sure if its supposed to do that, but its no big deal. I just changed it to 200, and it works fine for me. Thanks for the help Gamerz.

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,692
    • View Profile
  • WordPress Version: WordPress 3.0.x
  • Theme Name: lesterchan.net v3.4
Re: List all Pages
« Reply #5 on: 28 February 2007, 04:40 »
no problem =)

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.