forcount+++ in customizer
-
I use the below php statement to generate 6 item at my customize but my main challenge now is how to echo this at my loop section. The one have below is just repeating only one item. What should i do to display each of the listed item at the customizer?
<?php for ( $count = 1; $count <= 5; $count++ ) {?> <article class="col-lg-4 col-md-6 col-sm-6 mb-3"> <div class="card border-0"> <i class="fa fa-refresh fa-spin fa-2x"></i> <h6><?php echo esc_html( $ize_theme_hero_title ); ?> </h6> <p class="text-muted"> Complete installation and configuration guide to enable you to use our WordPress theme to its fullest. </p> </div> </article> <?php } ?> for ( $count = 1; $count <= 6; $count++ ) { $wp_customize->add_setting('ize_theme_why_choose_us_item_icon-' . $count, array( 'default' => 'fa fa-user', 'sanitize_callback' => 'sanitize_text_field', )); $wp_customize->add_control('ize_theme_why_choose_us_item_icon-' . $count, array( 'label' => __('Font Awesome icon', 'ize-theme' ), 'description' => __( 'Select font awesome icons <a target="_blank" href="https://astronautweb.co/snippet/font-awesome/" rel="noopener">Click Here</a> for select icon', 'ize-theme' ), 'section' => 'ize_theme_why_choose_us_section', 'type'=> 'text', 'input_attrs' => array( // Optional. 'placeholder' => __( 'Enter Fontawesome icon ...', 'ize-theme' ), ), ) ); }
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘forcount+++ in customizer’ is closed to new replies.