Support » Fixing WordPress » Echo printing error

  • Line number 8 exho error, help me for the correct format

    <?php
    // The Query
    $the_query = new WP_Query( 'cat=13&post_type=publication&numberposts=5' );
    
    // The Loop
    while ( $the_query->have_posts() ) : $the_query->the_post();
    echo '<li>';
    echo '"<a href="the_permalink()"> the_title()"</a>"';
    echo '</li>';
    endwhile;
    
    // Reset Post Data
    wp_reset_postdata();
    ?>
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Echo printing error’ is closed to new replies.