Home › Forums › Fashionic WordPress Theme › How to increase the number of slides on page to more than 10
This topic contains 7 replies, has 2 voices, and was last updated by frankpijnenburg 3 years, 5 months ago.
-
AuthorPosts
-
June 11, 2013 at 3:24 am #166
1. Change front end template:
1) Change slider.php
Copy the code in line 94
<?php if($img10url) { ?>,{image : '<?php echo $img10url; ?>', title : '<a href="<?php echo $img10link; ?>" title="<?php echo $img10title; ?>"><?php echo $img10title; ?></a>', thumb : '', url : '<?php echo $img10link; ?>'}<?php } ?>
Paste after the line 94, change 10 as 11
2) Do same thing for line44-46 page.php
$img10url = get_post_meta(get_the_ID(), "meta_box_image10_url", true); $img10title = get_post_meta(get_the_ID(), "meta_box_image10_title", true); $img10link = get_post_meta(get_the_ID(), "meta_box_image10_link", true);
2. Change admin end template:
Do same thing for metabox.php in functions folderline 53-54
$img10Url = isset( $values['meta_box_image10_url'] ) ? esc_attr( $values['meta_box_image10_url'][0] ) : ''; $img10Title = isset( $values['meta_box_image10_title'] ) ? esc_attr( $values['meta_box_image10_title'][0] ) : ''; $img10Link = isset( $values['meta_box_image10_link'] ) ? esc_attr( $values['meta_box_image10_link'][0] ) : '';
line 183-192
<div class="option_section_title"><?php _e('Image 10','ux'); ?></div><br /> <p class="option_item imageunit"><br /> <label for="meta_box_image10_url"><?php _e('Image URL','ux'); ?></label> <br /> <input id="meta_box_image10_url" class="meta_box_image_url" type="text" size="36" name="meta_box_image10_url" value="<?php if ( $img10Url ) { echo $img10Url; } ?>" /><br /> <input id="meta_box_image10_url_button" class="img_upload_btn" type="button" value="Upload Image" /><br /> <label for="meta_box_image10_title"><?php _e('Image Title','ux'); ?></label><br /> <input type="text" name="meta_box_image10_title" id="meta_box_image10_title" class="meta_box_image_url" value="<?php echo $img10Title; ?>" /><br /> <label for="meta_box_image10_link"><?php _e('Link','ux'); ?></label><br /> <input type="text" name="meta_box_image10_link" id="meta_box_image10_link" class="meta_box_image_url" value="<?php echo $img10Link; ?>" />
line 479-484
if( isset( $_POST['meta_box_image10_url'] ) ) update_post_meta( $post_id, 'meta_box_image10_url', wp_kses( $_POST['meta_box_image10_url'], $allowed ) ); if( isset( $_POST['meta_box_image10_title'] ) ) update_post_meta( $post_id, 'meta_box_image10_title', wp_kses( $_POST['meta_box_image10_title'], $allowed ) ); if( isset( $_POST['meta_box_image10_link'] ) ) update_post_meta( $post_id, 'meta_box_image10_link', wp_kses( $_POST['meta_box_image10_link'], $allowed ) );
November 5, 2014 at 11:57 am #5276Hello, I tried this because my client wants to show all 19 slides on the home page. I followed these intructions but it doesn’t work. Did I miss something?
Thanks and kind regards, FrankNovember 5, 2014 at 12:23 pm #5277November 7, 2014 at 3:04 pm #5308This reply has been marked as private.November 8, 2014 at 3:17 am #5318Hi Frank,
I can’t login your ftp. I have changed the 3 php templates(add the slide number to 20), please download it, unzip it.
Replace the 3 files by ftp:
– slider.php
– page.php
– /functions/metabox.phpBest,Bwsm
November 10, 2014 at 11:44 am #5330This reply has been marked as private.November 10, 2014 at 1:21 pm #5331HI, did you mean the number of posts shown per page? The post is talk about slider. You need change the Page Options / Number of Posts in page editing.
November 10, 2014 at 5:49 pm #5334Hi,
That was it!!! Great, thank you!!! -
AuthorPosts
You must be logged in to reply to this topic.