dynamic pagination problem
-
Hi all,
I’m developing a website with a fixed height. In a custom query I like to render my results to different sized boxes to the screen. As a result the number of boxes that fit on the screen will vary between 3 and 6. The size of a box (one or two placeholders) is defined by field in a result object.
So inside my query loop it looks like this
if ($is_vip == "on") // vip is the name of the field that defines the box size { $htmlOutput .= '<div class = "employee-box-vip">'; $box_counter += 2; } else { $htmlOutput .= '<div class = "employee-box">'; $box_counter += 1; } $htmlOutput .= $last_name . " " . $box_counter ; $htmlOutput .= '</div>'; if ($box_counter > 5) { $box_counter = 0; // NOW I WANT TO TELL WP TO ADD A "<!--nextpage-->" }
Any ideas how I can accomplish this?
Cheers
Robin
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘dynamic pagination problem’ is closed to new replies.