Jon Imms
asked on
PHP Pharse error
Hi there, I'm trying to put a theme shortcode in my wordpress template file.
I'm getting the following error "Parse error: syntax error, unexpected 'echo' (T_ECHO) in /www/wp-content/themes/enf old/includ es/loop-bi g6.php on line 30"
test website here
I'm getting the following error "Parse error: syntax error, unexpected 'echo' (T_ECHO) in /www/wp-content/themes/enf
test website here
<?php
global $avia_config, $post_loop_count;
$post_loop_count= 1;
$post_class = "post-entry-".avia_get_the_id();
// check if we got posts to display:
if (have_posts()) :
while (have_posts()) : the_post();
?>
<article class='post-entry post-entry-type-page <?php echo $post_class; ?>' <?php avia_markup_helper(array('context' => 'entry')); ?>>
<div class="entry-content-wrapper clearfix">
<img class="vv" src="https://idgiyn5kp0-flywheel.netdna-ssl.com/wp-content/uploads/2018/04/CreteCarrier_OfficeBlueShirt-1500x430.jpg" alt="rr" width="100%" height="230px" />
<?php if ( $apply = get_the_job_application_method() ) :
if ( $apply->type === 'url' ) {
$application_href = $apply->url;
} elseif ( $apply->type === 'email' ) {
$application_href = sprintf( 'mailto:%1$s%2$s', $apply->email, '?subject=' . rawurlencode( $apply->subject ) );
} ?>
<?php endif; ?>
<?php echo do_shortcode('[av_one_third first margin="0px" padding="0px" radius="0px" mobile_breaking="" mobile_display="" av_uid="av-y5kp57"]
<a class="application_button button" href=" '. echo $application_href; .'" target="_blank"> Apply For Job </a> [/av_one_third] ');?>
<?php the_content(); ?>
<?php the_field('job_main_content'); ?>
<br /><br />
<?php display_job_phonenumber_data(); ?>
<?php
wp_link_pages($avia_wp_link_pages_args);
if(has_tag() && is_single())
{
echo '<span class="blog-tags minor-meta">';
the_tags('<strong>'.__('Tags:','avia_framework').'</strong><span> ');
echo '</span></span>';
}
echo '</footer>';
?>
</div>
</article><!--end post-entry-->
<?php
$post_loop_count++;
endwhile;
else:
?>
<article class="entry">
<header class="entry-content-header">
<h1 class='post-title entry-title'><?php _e('Nothing Found', 'avia_framework'); ?></h1>
</header>
<?php get_template_part('includes/error404'); ?>
<footer class="entry-footer"></footer>
</article>
<?php
endif;
?>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.