WordPress Italy Forum » Plugin e temi di WP

errore visualizzazine temi

(3 articoli)

Tag:

  • Avviato 3 anni fa da beppecontatto
  • Ultima replica da parte di beppecontatto

  1. buongiorno/buonasera a voi

    Parse error: parse error, unexpected T_ENDWHILE in C:\Program Files\EasyPHP 2.0b1\www\sito2\wp-content\themes\FREEmium\index.php on line 44 questo è ciò che appare quando io imposto un nuovo tema per wordpress....il mio blog non è online io lo faccio girare con easyphp con altri temi non ci sono problemi solo con questo ho controllato il codice

    eccolo

    <div class="text">
    <?php the_content('continue reading »'); ?>
    </div>
    </div>
    <?php endwhile;?>

    io non sò xkè dice quella frase non avendo nozioni di php per correggere , la scritta mi appare sia quando vedo l'anteprima in wordpress sia quando lo vedo nel browser

    where is the problem?

    grazie

    Posted: 3 anni # -
  2. mancherà qualche marcatore tipo un ";" oppure un apice o cmq un qualsiasi codice di php devi per forza cercarlo tu nei file del tema.

    Posted: 3 anni # -
  3. mancherà qualche marcatore tipo un ";" oppure un apice o cmq un qualsiasi codice di php devi per forza cercarlo tu nei file del tema.

    <?php get_header(); ?>

    <div id="content">
    <?php if ( is_category() ) { ?>
    <h2 class="special">
    <span>Category</span>
    <?php single_cat_title() ?>
    </h2>
    <?php } elseif ( is_tag() ) { ?>
    <h2 class="special">
    <span>Tag</span>
    <?php single_cat_title() ?>
    </h2>
    <?php } elseif ( is_day() || is_month() || is_year() ) { ?>
    <h2 class="special">
    <span>Archive</span>
    <?php single_month_title(" ") ?>
    </h2>
    <?php } else { ?>
    <h2><span>recently featured posts</span> <small>we've got <?php $count_posts = wp_count_posts(); echo $count_posts->publish; ?> articles so far</small></h2>
    <?php } ?>

    <?php while (have_posts()) : the_post(); ?>
    <div class="post" id="post-<?php the_ID(); ?>">
    <h3>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><span><?php the_title(); ?></span> <small><?php comments_number('0','1','%'); ?></small></h3>

    <?php if ( $img = get_post_meta($post->ID, "image", true) ) { ?>
    <div class="headline">
    ">
    " alt="" />
    <span><?php the_time("M<b\i\g>j</b\i\g>") ?></span>

    </div>
    <? } else { ?>
    <div class="date">
    <span><?php the_time("M<b\i\g>j</b\i\g>") ?></span>
    </div>
    <? } ?>

    <div class="text">
    <?php the_content('continue reading »'); ?>
    </div>
    </div>
    <?php endwhile;?>

    <ul class="nav">
    <li class="prev"><?php next_posts_link('Previous Entries') ?>
    <li class="next"><?php previous_posts_link('Next Entries »') ?>

    </div>

    <?php get_sidebar(); ?>

    <?php include ('sidebar2.php'); ?>

    <?php get_footer(); ?>

    questo è il codeice completo io purtroppo l'ho controllato e non sono in grado di stabilire cosa c'è che non va dato che come ho già detto non è semplice xhtml , al massimo posso dire che nella convalida ho torvato questo

    line 30 il tag "img" ha una sintassi di chiusura di tipo xml per un elemento vuoto anche se per la versione "html" non corrisponde al linguaggio di xml (html 4.0)

    aiuto

    Posted: 3 anni # -

RSS feed for this topic

Replica

Devi aver fatto il login per poter pubblicare articoli.