[Resolved] [Plugin: AutoNav Graphical Navigation and Gallery Plugin] Only displaying a single row
I’m working with Autonav to build an attractive gallery section for my portfolio site, and it seems to do everything perfectly… except that it will only display the first row of the grid. I want 5 columns, and for the first row it looks perfect… but as the number of posts in the category grows, the old ones just disappear instead of getting bumped down to a second and third row. Here’s the shortcode I’m using:
[autonav display=”posts” postid=”category:work” pics_only=0]
and it’s generating this page:
There’s a 6th post that should be appearing in the first position on the second row (http://dougstanford.com/petharmony/), but it’s just disappeared. I tried sorting by random just to be sure the page itself wasn’t the culprit, and as I suspected, the post eventually made its way into the first row again, bumping out one of the other posts. I’ve since put it back to the default descending sort, as the shortcode here shows. Any help would be greatly appreciated, if I can get past this small hump the plugin will solve all of my problems! Thanks!
When displaying posts, AutoNav uses the WordPress function get_posts, which by default limits to five posts. Try using count=10 to increase the maximum limit.
One other question, not a particularly big deal, but any idea why when there’s fewer than 5 items in one of my portfolio sections, such as: http://dougstanford.com/portfolio/audio/ , they seem to place in cells 1 and 4 instead of filling out 1, 2, 3, etc?
The table on that page gets one row containing two columns… how those columns get displayed are determined by your stylesheet. Right now, each gets 50% of the width, and the images are left-aligned, which is why you see a large empty space between them. You could force the column width to be a certain number of pixels or percentage; you could change the alignment values; or resolve that in any number of other ways in your css.
WLindley —- I think I have the same issue – only 5 post items are visible.
Could you tell me which file to adjust the
GET_POSTSin? Is it the autonav/autonav-wl.php file?
And can you explain exactly where I need to add the
COUNT=10code in that file.
(apologies for these basic questions — I’m a wordpress and .php noob)
I ended up changing my shortcode to:
[autonav display=”posts” postid=”category:work” pics_only=0 count=25 paged=25]
Fixed my problem, and should limit the grid to 25 posts before paging to a second, third and so on index of pages.
Spartaneye – thanks, that worked perfectly.
(and it felt a bit safer adjusting it there, rather than making changes inside the AutoNav.php files.)
Thanks for the help!
Thanks, spartaneye, I will update the FAQ in the next release with your example.
- The topic ‘[Resolved] [Plugin: AutoNav Graphical Navigation and Gallery Plugin] Only displaying a single row’ is closed to new replies.