arefin2k
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Shortcode ConditionHi belalkhan2292,
You can try with this code.
/*-----Query post in shortcode for testimonial content----*/ function testimonial_content_shortcode($atts){ extract( shortcode_atts( array( 'category' => '', 'count' => '', 'type' => 'post', ), $atts ) ); $q = new WP_Query( array('posts_per_page' => $count, 'post_type' => 'testimonial-items', 'order', 'ASC' ) ); $list = '<div class="col-md-6 wow fadeIn belal_all_testimonial" data-wow-duration="0.6s" data-wow-delay="0.3s">'; while($q->have_posts()) : $q->the_post(); $idd = get_the_ID(); $client_name = get_post_meta($idd, 'client_name', true); $company_name = get_post_meta($idd, 'company_name', true); $list .= ' <div id="testimonial-'.$idd.'" class="testimonail-detail"> <p> '.get_the_content().' </p> <div class="testimonial-info">'; if( !empty($client_name) ) { $list .= '<span class="company"> Client Name: </span><span class="name"> '.$client_name.' </span>'; } if( !empty($company_name) ) { $list .= '<span class="company"> Company Name: </span> <span class="name"> '.$company_name.' </span>'; } $list .= '</div> </div>'; endwhile; $list.= '</div>'; wp_reset_query(); return $list; } add_shortcode('tcontent', 'testimonial_content_shortcode');
Thanks!
Forum: Fixing WordPress
In reply to: Fetaured imageHi belalkhan2292, If you do not want to use WordPress’s crop functionality, then why are you seeking any method to resize image? If you want to show an image in exact size without cropping then just fix the image’s height and width in css. Then your image will be shown directly on your front end.
Forum: Plugins
In reply to: [CHBD CSS3 Accordion] MehYou can not do this now. But in my next update you will get that probably. I will consider your thinking.
Forum: Plugins
In reply to: [CHBD CSS3 Accordion] Making two different accordions with one plugin?You can not do this now. But in my next update you will get that probably. I will consider your thinking.
Forum: Plugins
In reply to: [CHBD CSS3 Accordion] Custom colorI will think about your suggestion. That is a very good idea. I will follow this in next update must.
Forum: Plugins
In reply to: [CHBD Simple jQuery Modal] Using an image as the triggerHi DavidGMiles,
In order to make the CLOSE button hidden, you can just add this line into your css file:
.popModal .popModal_footer {display:none;}
This will override the plugin css and make the button hidden.
You can add HTML code to popup. That should not be broken. Can you show me how you used that?
Thanks!
Forum: Reviews
In reply to: [CHBD CSS3 Accordion] thanks to developerThanks aslampatwarybd. I am happy hearing that you got this plugin necessary for you. I will make more plugins within short time.