function offer_menu( $atts, $content = null, $tag ) {
extract( shortcode_atts( array(

                'bg_image'=>'',
                'title'=>'Hotel Obaffo',
                'address'=>'London',
                'rating'=>'9',
                'price'=>'80',
                'priceroomtitle'=>'Price per room per night from',
                'client_url'=>'true',
                'montent'=>''

            ), $atts ) );

            $bg_image = wp_get_attachment_image_src( $bg_image, 'bg_image' );
            $client_url   = vc_build_link( $client_url );
            $get_bg=' '; 
            if (isset($bg_image)&&$bg_image !=0){ $output.='.$bg_image[0].';};
            $output ='';
            $output.='<article class="one-fourth">
                            <figure><a href="'.$client_url['url'].'" title="">
                                   <img src= "'.$get_bg.'" alt="" /></a></figure>
                            <div class="details">
                                <h3>'.$title.'<span class="stars">
                                        <i class="material-icons"></i>
                                        <i class="material-icons"></i>
                                        <i class="material-icons"></i>
                                        <i class="material-icons"></i>
                                        <i class="material-icons"></i>
                                    </span>
                                </h3>
                                <span class="address">'.$address.' •  <a href="#">Show on map</a></span>
                                <span class="rating">'.$rating.'/10</span>
                                <span class="price">'.$priceroomtitle.'<em>$'.$price.'</em> </span>
                                <div class="description">
                                    <p>'.$montent.'</p>
                                </div>

                                <a href="'.$client_url['url'].'" title="Book now" class="gradient-button" target="">Book now</a>
                            </div>
                        </article>   ';

            return $output;

        }

add_shortcode (‘offer’,’offer_menu’);

Read more here: How to fix the image?


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: