Syntax do_echo error

Simple fix I’m sure.

the code is in place on the website http://thegreenroommeds.com homepage, just not working. Why?

Trying to put relavanssi search shortcode on line 4`

<div class="row" style="margin: 0">
	<!-- Right Sidebar -->
	<div class="col-md-3">
		<?php echo do_shortcode('[searchform]');   ?]>
	</div>
	<div class="col-md-6">
		<?php the_content(); ?>
	</div>
	<!-- right sidebar -->
	<div class="col-md-3" center>
		<div class="row">
			<div class="col-sm-12">
				<div class="row center">
					<a href="https://thegreenroommeds.com/form" class="btn btn-lg center btn-success become-member-btn" style="color: #fff;margin-top: 22px"><?php _e( "BECOME A MEMBER", ""); ?></a>
				</div>
				<hr>
				<div class="shedule-box">
					<div class="row">
						<div class="col-sm-12 center"><?php _e("SCHEDULE", ""); ?></div>
					</div>
					<div class="row">
						<div class="col-sm-4 center"><?php _e("Mon", ""); ?></div>
						<div class="col-sm-8 center">10:00AM-10:00PM</div>
					</div>
					<div class="row">
						<div class="col-sm-4 center"><?php _e("Tues", ""); ?></div>
						<div class="col-sm-8 center">10:00AM-10:00PM</div>
					</div>
					<div class="row">
						<div class="col-sm-4 center"><?php _e("Wed", ""); ?></div>
						<div class="col-sm-8 center">10:00AM-10:00PM</div>
					</div>
					<div class="row">
						<div class="col-sm-4 center"><?php _e("Thurs", ""); ?></div>
						<div class="col-sm-8 center">1000AM-10:00PM</div>
					</div>
					<div class="row">
						<div class="col-sm-4 center"><?php _e("Fri", ""); ?></div>
						<div class="col-sm-8 center">10:00AM-10:00PM</div>
					</div>
					<div class="row">
						<div class="col-sm-4 center"><?php _e("Sat", ""); ?></div>
						<div class="col-sm-8 center">1000AM-10:00PM</div>
					</div>
					<div class="row">
						<div class="col-sm-4 center"><?php _e("Sun", ""); ?></div>
						<div class="col-sm-8 center">1000AM-10:00PM</div>
					</div>
					<div class="row">
						<div class="col-sm-12 center"><?php _e("Last call 09:45PM", ""); ?></div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<style type="text/css">
#home-page, #post-906 {
	padding: 10px 0;
}
.shedule-box {
	border: 1px solid #e3e3e3;
	padding: 10px 0;

}
.shedule-box .row {
	margin-bottom: 10px;
}
</style>

You’re passing an array into the function and it looks like it wants a string.

do_shortcode('searchform'); 

https://developer.wordpress.org/reference/functions/do_shortcode/

Sponsor our Newsletter | Privacy Policy | Terms of Service