• Resolved wplearner

    (@wordpresslearner)


    Hi so I have the following code in a custom template, but keep getting an error:

    <?php
    /*
    TEMPLATE NAME: TRIAL TEMPLATE
    */
     get_header() ?>
    
    	<div id="container">
    		<div id="content">
    <?php
    $myPosts = new WP_Query();
    $myPosts->query('posts_ per_ page=5');
    while ($myPosts->have_ posts()) : $myPosts->the_ post();
    ?><?php the_content(); ?>
    <?php endwhile; ?>
    
    <?php if ( get_post_custom_values('comments') ) comments_template() // Add a key+value of "comments" to enable comments on this page ?>
    
    		</div><!-- #content -->
    	</div><!-- #container -->
    
    <?php get_sidebar() ?>
    <?php get_footer() ?>

Viewing 1 replies (of 1 total)
  • Thread Starter wplearner

    (@wordpresslearner)

    phew thank god, anybody see it? there are extra spaces in the quary parameters..thought I was going crazy..

Viewing 1 replies (of 1 total)
  • The topic ‘please help-unexpected t string on line 12 error with custom template’ is closed to new replies.