I get this error…
Parse error: syntax error, unexpected T_STRING, expecting ‘(‘ in /home/content/12/9195112/html/asl/wp-content/plugins/exec-php/includes/runtime.php(42) : eval()’d code on line 32
Is this the correct way to use this code?
<?php
$catquery = new WP_Query( 'cat=2&posts_per_page=100&order=ASC' );
If have_posts {
while($catquery->have_posts()) : $catquery->the_post();
?>
<b><a href="https://artspacelansdowne.com/workshops/#<?php the_ID(); ?>"><?php the_title(); ?></a></b><?php the_meta(); ?>
<?php endwhile; ?>
else
echo "There are no Workshops at this time.";
}
<?php endwhile; ?>