• Hello

    I have a problem probably with my template (which I created with artisteer…).

    Ok, I’ve been using so far WP only with static pages (as a “traditional” website) without blogroll.

    From the first day on it’s been that ways.

    Now I want to have a “news” section (a blog page).

    So I create a new page (which is not the home page), set it up as blog in “reading”.

    When I click on my “news” page I get that error :

    Parse error: syntax error, unexpected T_DNUMBER in /homepages/9/d344874635/htdocs/wp-content/themes/pgp_template_wp/index.php on line 99

    This is the line 99 : ‘3. $args = array( ‘

    Any idea ? ??

    Thanks a lot !

    Guillaume

    my site : https://www.paulusgemeinde-pankow.de
    and the “faulty” page : https://www.paulusgemeinde-pankow.de/?page_id=387

    <?php get_header(); ?>
    <div class=”art-contentLayout”>
    <?php include (TEMPLATEPATH . ‘/sidebar1.php’); ?><div class=”art-content”>

    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <div class=”art-Post”>
    <div class=”art-Post-body”>
    <div class=”art-Post-inner art-article”>
    <h2 class=”art-PostHeader”>
    ” rel=”bookmark” title=”<?php printf(__(‘Permanent Link to %s’, ‘kubrick’), the_title_attribute(‘echo=0’)); ?>”>
    <?php the_title(); ?>
    <?php
    if (function_exists(‘ghpseo_output’))
    ghpseo_output(‘description’);
    ?>

    </h2>
    <div class=”art-PostContent”>

    <?php if (is_search()) the_excerpt(); else the_content(__(‘Read the rest of this entry ?’, ‘kubrick’)); ?>
    <?php if (is_page() or is_single()) wp_link_pages(array(‘before’ => ‘<p>Pages: ‘, ‘after’ => ‘</p>’, ‘next_or_number’ => ‘number’)); ?>

    </div>
    <div class=”cleared”></div>
    <?php ob_start(); ?>
    <?php $icons = array(); ?>
    <?php if (!is_page()): ?><?php ob_start(); ?><img src=”<?php bloginfo(‘template_url’); ?>/images/PostCategoryIcon.png” width=”18″ height=”18″ alt=”” />
    <?php printf(__(‘Posted in %s’, ‘kubrick’), get_the_category_list(‘, ‘)); ?>
    <?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (!is_page() && get_the_tags()): ?><?php ob_start(); ?><img src=”<?php bloginfo(‘template_url’); ?>/images/PostTagIcon.png” width=”18″ height=”18″ alt=”” />
    <?php the_tags(__(‘Tags:’, ‘kubrick’) . ‘ ‘, ‘, ‘, ‘ ‘); ?>
    <?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (!is_page() && !is_single()): ?><?php ob_start(); ?><img src=”<?php bloginfo(‘template_url’); ?>/images/PostCommentsIcon.png” width=”18″ height=”18″ alt=”” />
    <?php comments_popup_link(__(‘No Comments ?’, ‘kubrick’), __(‘1 Comment ?’, ‘kubrick’), __(‘% Comments ?’, ‘kubrick’), ”, __(‘Comments Closed’, ‘kubrick’) ); ?>
    <?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (0 != count($icons)): ?>
    <div class=”art-PostFooterIcons art-metadata-icons”>
    <?php echo implode(‘ | ‘, $icons); ?>

    </div>
    <?php endif; ?>
    <?php $metadataContent = ob_get_clean(); ?>
    <?php if (trim($metadataContent) != ”): ?>
    <div class=”art-PostMetadataFooter”>
    <?php echo $metadataContent; ?>

    </div>
    <?php endif; ?>

    </div>

    <div class=”cleared”></div>
    </div>
    </div>

    <?php endwhile; ?>
    <?php
    $prev_link = get_previous_posts_link(__(‘Newer Entries ?’, ‘kubrick’));
    $next_link = get_next_posts_link(__(‘? Older Entries’, ‘kubrick’));
    ?>
    <?php if ($prev_link || $next_link): ?>
    <div class=”art-Post”>
    <div class=”art-Post-body”>
    <div class=”art-Post-inner art-article”>

    <div class=”art-PostContent”>

    <div class=”navigation”>
    <div class=”alignleft”><?php echo $next_link; ?></div>
    <div class=”alignright”><?php echo $prev_link; ?></div>
    </div>

    </div>
    <div class=”cleared”></div>

    </div>

    <div class=”cleared”></div>
    </div>
    </div>

    <?php endif; ?>
    <?php else : ?>
    <h2 class=”center”><?php _e(‘Not Found’, ‘kubrick’); ?></h2>
    <p class=”center”><?php _e(‘Sorry, but you are looking for something that isn’t here.’, ‘kubrick’); ?></p>
    <?php if(function_exists(‘get_search_form’)) get_search_form(); ?>
    <?php endif; ?>

    </div>

    </div>
    <div class=”cleared”></div>

    <?php get_footer(); ?>

    1. <?php
    2. //Get images attached to the post
    3. $args = array(
    4. ‘post_type’ => ‘attachment’,
    5. ‘post_mime_type’ => ‘image’,
    6. ‘numberposts’ => -1,
    7. ‘order’ => ‘ASC’,
    8. ‘post_status’ => null,
    9. ‘post_parent’ => $post->ID
    10. );
    11. $attachments = get_posts($args);
    12. if ($attachments) {
    13. foreach ($attachments as $attachment) {
    14. $img = wp_get_attachment_thumb_url( $attachment->ID );
    15. break;
    16. }
    17. //Display image
    18. }
    19. ?>

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Blogroll Problem : Parse error: syntax error, unexpected T_DNUMBER’ is closed to new replies.