Pagination doesn't work

40 views
Skip to first unread message

psi...@gmail.com

unread,
Aug 3, 2012, 11:44:26 AM8/3/12
to pwapl...@googlegroups.com
Wordpress 3.4.1
theme : TwentyEleven

I'm using the free version of the plugin but the pagination  didn't work.
I put this code in the page [pwaplusphp album="myAlbumName" images_per_page="20"] but i see all the 220 images not only 20
I've try also to set the amount of image per page to 20 in the settings but also in that way I see all the images.

I've try also to put the whole coda as in the plugin help
 [pwaplusphp album="myAlbumName" images_per_page="20" images_per_page="20" image_size="800" thumbnail_size="32"]

but also in this way nothing the images are resized thumbnails and image but still no pagination and all 220 images.
I've nade some search on the forum but no solution works.
Any clue about this?
Thanks in advance
Michele

Scott M

unread,
Aug 3, 2012, 11:48:15 AM8/3/12
to psi...@gmail.com, pwapl...@googlegroups.com

What version? Can you shoot me a link to the site where you're having the issue?

Scott

--
You received this message because you are subscribed to the Google Groups "PWA + PHP" group.
To view this discussion on the web visit https://groups.google.com/d/msg/pwaplusphp/-/Fz-sXHHiTEUJ.
To post to this group, send email to pwapl...@googlegroups.com.
To unsubscribe from this group, send email to pwaplusphp+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pwaplusphp?hl=en.

psi...@gmail.com

unread,
Aug 3, 2012, 12:07:29 PM8/3/12
to pwapl...@googlegroups.com, psi...@gmail.com
Plugin version is 0.9.6

it's not online but on my machine

Il giorno venerdì 3 agosto 2012 17:44:26 UTC+2, psi...@gmail.com ha scritto:
Wordpress 3.4.1
theme : TwentyEleven

I'm using the free version of the plugin but the pagination  didn't work.
I put this code in the page [pwaplusphp album="myAlbumName" images_per_page="20"] but i see all the 220 images not only 20
I've try also to set the amount of image per page to 20 in the settings but also in that way I see all the images.

I've try also to put the whole coda as in the plugin help
 [pwaplusphp album="myAlbumName" images_per_page="20"  image_size="800" thumbnail_size="32"]

psi...@gmail.com

unread,
Aug 3, 2012, 7:15:05 PM8/3/12
to pwapl...@googlegroups.com, psi...@gmail.com
Hi Scott

I've got the last one downloaded from wordpress repository it's 0.9.6
Unfortunately I don't have an online version just on my machine locally .
Anyway as I said I've got the last version of wordpress, and no other plugin activated.

Thanks
Michele 

Scott M

unread,
Aug 3, 2012, 9:16:54 PM8/3/12
to psi...@gmail.com, pwapl...@googlegroups.com
Ok, now I remember.  If you specify an album name, the code assumes you don't want to paginate so it turns that off.  You can modify the behavior by commenting out the if/else block starting on line 106 of showAlbumContents.php:

#----------------------------------------------------------------------------
# VARIABLES FOR PAGINATION
#----------------------------------------------------------------------------
#if ($IN_POST == "TRUE") {
#        $IMAGES_PER_PAGE = 0;
#} else if ($IN_POST == "SLIDESHOW") {
#       $IMGMAX = "d";
#       $SHOW_IMG_CAPTION = "SLIDESHOW";
#}

Scott

--
You received this message because you are subscribed to the Google Groups "PWA + PHP" group.
To view this discussion on the web visit https://groups.google.com/d/msg/pwaplusphp/-/ziKXh4gEbYAJ.
Reply all
Reply to author
Forward
0 new messages