Customizer settings using “for” loop

You are missing _ in add_control paramater: settings. The settings parameter should be home_features_boxes_icon_’ . $i Full code here: for ( $i = 1; $i < 7; $i++ ) : $wp_customize->add_setting( ‘home_features_boxes_icon_’ . $i, array( ‘default’ => ”, ‘type’ => ‘theme_mod’, ‘capability’ => ‘edit_theme_options’, ‘sanitize_callback’ => ‘esc_html’, ) ); $wp_customize->add_control( ‘home_features_boxes_icon_’ . $i . ‘_c’, … Read more

WordPress + Isotope: how to give different widths to each entry?

On the div that immediately wraps each post, you can use php to randomize the values instead of hardcoding the col-12 and col-sm-6 classes. For example, you could change <div class=”col-12 col-sm-6 <?php echo $termsString; ?> grid-item wow fadeInUp”> to reflect the randomizer and then its result: <?php $randomColClasses=”col-” . rand(8,12); //random value between 8-12 … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)