Results 1 to 3 of 3

Thread: categoy.php wordpress

  1. #1
    Join Date
    Apr 2010
    Posts
    58
    Thanks
    5
    Thanked 1 Time in 1 Post

    Default categoy.php wordpress

    So this is probably something very simple that I just don't see.

    PHP Code:
    <?php get_header(); ?>    

        <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
            <br />
            
            <div class="content">
            
                <div id="sidebar-left">
                    <ul class="sidebar-left_inner">
                        <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar-left') ) : ?>
                    </ul>
                        <?php endif; ?>
                </div><!-- end sidebar-left -->
                
                <div class="content-sub">         
                    <?php
                        $category_description 
    category_description();
                        if ( ! empty( 
    $category_description ) )
                            echo 
    '<div class="archive-meta">' $category_description '</div>';

                    
    /* Run the loop for the category page to output the posts.
                     * If you want to overload this in a child theme then include a file
                     * called loop-category.php and that will be used instead.
                     */
                    
    get_template_part'loop''category' );
                    
    ?>
                
                </div><!-- end content-sub -->
               
    <?php get_sidebar(); ?>
    <?php get_footer
    (); ?>
    but I am getting "Parse error: syntax error, unexpected $end in" on the last line, when I call the footer.

    I don't know if this is something in my functions.php or in the category.php but if more info is needed, just let me know.

    Thanks

  2. #2
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    check your footer.php for an improperly closed string, comment, etc.

    this error means that php can't find the end of the script (e.g., an unclosed string is causing the end of a function to not be evaluated, etc.).

  3. #3
    Join Date
    Apr 2010
    Posts
    58
    Thanks
    5
    Thanked 1 Time in 1 Post

    Default

    Thanks traq,

    but for some reason the "have_post" line was too high.

    I moved it down into the content-sub div and it worked.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •