Suhan Alam Rana
Forum Replies Created
-
Forum: Plugins
In reply to: [Qi Addons For Elementor] Feature RequestHere, you can check the example: https://essential-addons.com/filterable-gallery/
Forum: Plugins
In reply to: [Qi Addons For Elementor] Feature RequestSure, here is an example of a filterable gallery. This widget allows you to create an image gallery where you can group images into categories. You can easily access these categories using clickable filters.
Oh, okay. Thank you for your time!
Do you have any idea why the metadata isn't appearing on the custom post details template? function display_custom_post_meta_shortcode( $atts ) { ? ? // Extract shortcode attributes ? ? $atts = shortcode_atts( array( ? ? ? ? 'post_id' => get_the_ID(), // Default to current post ID if not specified ? ? ? ? 'meta_key' => '', // Specify the meta key ? ? ? ? 'before' => '', // Text to display before the meta value ? ? ? ? 'after' => '', // Text to display after the meta value ? ? ), $atts ); ? ? // Check if the meta key is specified ? ? if ( empty( $atts['meta_key'] ) ) { ? ? ? ? return ''; // Return empty string if meta key is not specified ? ? } ? ? // Get the meta value for the specified meta key ? ? $meta_value = get_post_meta( $atts['post_id'], $atts['meta_key'], true ); ? ? // Output the meta value with before and after text ? ? if ( $meta_value ) { ? ? ? ? return $atts['before'] . $meta_value . $atts['after']; ? ? } else { ? ? ? ? return ''; // Return empty string if meta value is not found ? ? } } add_shortcode( 'custom_post_meta', 'display_custom_post_meta_shortcode' ); // [custom_post_meta meta_key="project_date" before="Meta Value: "]
Forum: Plugins
In reply to: [Login No Captcha reCAPTCHA] Not showing on woocommerce login pageHi Robert Peake,
Thanks for your reply. The Problem has been solved. I Delete the Google recaptcha key and Created a new sitekey and Disabled the plugin and enabled again. Thank You for the great plugin ??Forum: Plugins
In reply to: [Video Slider - Slider Carousel] Video icon on thumbnail carousel.Sound good.
Thank YouForum: Plugins
In reply to: [Video Slider - Slider Carousel] Video icon on thumbnail carousel.Hi, thanks for your reply. Okay, then I’ll wait for this. by this time is there have any feature of autoplay ?. I mean after clicking on the thumbnail, video automatically play in the popup window.
Thanks again
- This reply was modified 6 years, 8 months ago by Suhan Alam Rana.
Forum: Plugins
In reply to: [Video Slider - Slider Carousel] Video icon on thumbnail carousel.is it possible to automatically display video icon on each thumbnail images?
Forum: Plugins
In reply to: [YITH WooCommerce Compare] how to set custom compare button in headerThank you so much for your Help and this Great Plugin
Hi Iorro
I’m really glad for your help. I’m successfully dynamically add class for specific category on body tag from your example link. Thank you so much. its my first work on wordpress woocommerce. The code is:function wp_body_classes( $classes ) {
global $wp_query;// calculate the amount of products visible on the current page
$posts_on_page = min($wp_query->found_posts, $wp_query->get(‘posts_per_page’));
if($posts_on_page >= 12){
$classes[] = ‘custom-6-cols’;
return $classes;
}
}
add_filter( ‘body_class’,’wp_body_classes’ );Thanks a lots ??
Hi Iorro.
Thanks lot for you help. I already put the query function. here is the code
function my_loop_shop_columns() {
global $wp_query;
// calculate the amount of products visible on the current page
$posts_on_page = min($wp_query->found_posts, $wp_query->get(‘posts_per_page’));
if($posts_on_page >= 12) return 6;
if($posts_on_page % 4 == 0) return 4;
if($posts_on_page % 3 == 0) return 3;
return 4;
}
add_filter(‘loop_shop_columns’, ‘my_loop_shop_columns’);
this code is working good but how can I add css class according our conditions?
Sorry i’m new ??