Custom Post type slider with thumbnail navigation

Follow this flow: Define an empty array $nav_img = array(); outside the loop. Inside the loop while you fetch the featured image, push the URL to the array too like this $nav_img[]=’your_image_here’ ; Then inside <div class=”slider-nav-thumbnails”></div> you can simply do a for each loop to set the images as thumb. UPDATE: Here I added … Read more

Disable globally “Crop thumbnail to exact dimensions (normally thumbnails are proportional)” with Multisite

To disable cropping, insert this below code in disable-automatic-image-crop.php file in your mu-plugins folder: <?php /* Plugin Name: Disable Automatic Image Crop Author: WordPress Community Description: https://gist.github.com/czenzel/0f5888cbbfa4a857e56361dd3bc19b39 */ add_action( ‘init’, ‘czc_disable_extra_image_sizes’ ); add_filter( ‘image_resize_dimensions’, ‘czc_disable_crop’, 10, 6 ); function czc_disable_crop( $enable, $orig_w, $orig_h, $dest_w, $dest_h, $crop ) { // Instantly disable this filter after the … Read more

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