pagination for groups
-
hello.
I’ve created a group fields. how can I add pagination for it?
I want to show 1 item per request.
output code:
$ozellikler = get_post_meta( get_the_ID(), 'gallery_gallery_group', true ); foreach ( (array) $ozellikler as $key => $entry ) { $img_title = $img_image = $img_text = ''; if ( isset( $entry['img_title'] ) ) $img_title = esc_html( $entry['img_title'] ); if ( isset( $entry['img_text'] ) ) $img_text = wpautop( $entry['img_text'] ); if ( isset( $entry['img_image'] ) ) { $img_image = wp_get_attachment_image( $entry['img_image_id'], 'full', null, array( 'class' => 'img-responsive', ) ); } echo " <li>"; echo $img_image; echo '<h5 style="font-weight:bold;">'.$img_title.'</h5>'; echo $img_text; echo "</li> "; }
[Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘pagination for groups’ is closed to new replies.