Parse error: en index.php

Inicio Foros WordPress Instalación / Actualización Parse error: en index.php

Etiquetado: 

Este debate contiene 0 respuestas, tiene 1 mensaje y lo actualizó  marcosfv hace 9 años, 2 meses.

  • Autor
    Publicaciones
  • #12583

    marcosfv
    Participante

    <p>Trabajando en mi sitio, en las lineas que le programas las categorias que se muestrane en el index, al terminar y volver al sitio me dio esta linea:<br />
    Parse error: syntax error, unexpected T_INCLUDE in /home/mediapro/public_html/wp-content/themes/branfordmagazine2/index.php on line 25<br />
    Esa linea no es la que edite. Esto es sorpresa porque ya hbia hecho el mismo trabajo sin problemas.<br />
    El sitio es http://www.mediaproweb.com y esta caido solo muestra esa linea.<br />
    Si el que esta leyndo es un poco experto en PHP aqui va toda la index.php</p>
    <p>&lt;?php get_header(); ?&gt;</p>
    <p>&lt;div id=&quot;content&quot;&gt;<br />
    &lt;?php<br />
    // Include tabs with the lead story<br />
    include(TEMPLATEPATH . ‘/ui.tabs.php’); ?&gt;<br />
    &lt;script type=&quot;text/javascript&quot;&gt;&lt;!–<br />
    google_ad_client = &quot;pub-3662066576553680&quot;;<br />
    /* 468×60, creado 22/01/09 */<br />
    google_ad_slot = &quot;9891543739&quot;;<br />
    google_ad_width = 468;<br />
    google_ad_height = 60;<br />
    //–&gt;<br />
    &lt;/script&gt;<br />
    &lt;script type=&quot;text/javascript&quot;<br />
    src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;<br />
    &lt;/script&gt;<br />
    &lt;div id=&quot;leftcol&quot;&gt;<br />
    &lt;?php<br />
    // &quot;Featured articles&quot; module begins<br />
    query_posts(‘showposts=4&amp;cat=7,15,63); ?&gt;<br />
    &lt;h3&gt;<br />
    &lt;?php<br />
    // name of the &quot;featured articles&quot; category gets printed<br />
    wp_list_categories(‘include=7&amp;title_li=&amp;style=none’); ?&gt;<br />
    &lt;/h3&gt;<br />
    &lt;?php while (have_posts()) : the_post(); ?&gt;<br />
    &lt;div class=&quot;feature&quot;&gt;<br />
    &lt;?php<br />
    // this grabs the image filename<br />
    $values = get_post_custom_values(&quot;featuredarticleimage&quot;);<br />
    // this checks to see if an image file exists<br />
    if (isset($values[0])) {<br />
    ?&gt;<br />
    <a href="&quot;&lt;?php">&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to &lt;?php the_title(); ?&gt;&quot;&gt;&lt;img src=&quot;&lt;?php<br />
    // this is where the custom field prints images for each Feature<br />
    $values = get_post_custom_values(&quot;featuredarticleimage&quot;); echo $values[0]; ?&gt;&quot; alt=&quot;featuredimage&quot; /&gt;</a><br />
    &lt;?php } ?&gt;<br />
    <a href="&quot;&lt;?php">&quot; rel=&quot;bookmark&quot; class=&quot;title&quot;&gt;<br />
    &lt;?php<br />
    // title of the &quot;featured articles&quot;<br />
    the_title(); ?&gt;<br />
    </a><br />
    &lt;p&gt;<br />
    &lt;?php the_content_rss(”, TRUE, ”, 20); ?&gt;<br />
    &lt;/p&gt;<br />
    &lt;/div&gt;<br />
    &lt;?php endwhile; ?&gt;<br />
    &lt;script type=&quot;text/javascript&quot;&gt;&lt;!–<br />
    google_ad_client = &quot;pub-3662066576553680&quot;;<br />
    /* 250×250, creado 22/01/09 */<br />
    google_ad_slot = &quot;2798537410&quot;;<br />
    google_ad_width = 250;<br />
    google_ad_height = 250;<br />
    //–&gt;<br />
    &lt;/script&gt;<br />
    &lt;script type=&quot;text/javascript&quot;<br />
    src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;<br />
    &lt;/script&gt;<br />
    &lt;/div&gt;<br />
    &lt;!–END LEFTCOL–&gt;<br />
    &lt;div id=&quot;rightcol&quot;&gt;<br />
    &lt;?php<br />
    // enter the IDs of which categories you want to display<br />
    $display_categories = array(3,37,20);<br />
    foreach ($display_categories as $category) { ?&gt;<br />
    &lt;div class=&quot;clearfloat&quot;&gt;<br />
    &lt;?php query_posts(&quot;showposts=1&amp;cat=$category&quot;);<br />
    $wp_query-&gt;is_category = false;<br />
    $wp_query-&gt;is_archive = false;<br />
    $wp_query-&gt;is_home = true;<br />
    ?&gt;<br />
    &lt;h3&gt;<a href="&quot;&lt;?php">&quot;&gt;<br />
    &lt;?php<br />
    // name of each category gets printed<br />
    single_cat_title(); ?&gt;<br />
    </a>&lt;/h3&gt;<br />
    &lt;?php while (have_posts()) : the_post(); ?&gt;<br />
    &lt;?php<br />
    // this grabs the image filename<br />
    $values = get_post_custom_values(&quot;rightcolimage&quot;);<br />
    // this checks to see if an image file exists<br />
    if (isset($values[0])) {<br />
    ?&gt;<br />
    <a href="&quot;&lt;?php">&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to &lt;?php the_title(); ?&gt;&quot;&gt;<img src="&quot;&lt;?php" />&quot; alt=&quot;&quot; /&gt;</a><br />
    &lt;?php } ?&gt;<br />
    <a href="&quot;&lt;?php">&quot; rel=&quot;bookmark&quot; class=&quot;title&quot;&gt;<br />
    &lt;?php<br />
    // this is where title of the article gets printed<br />
    the_title(); ?&gt;<br />
    </a><br />
    &lt;?php the_excerpt() ; ?&gt;<br />
    &lt;?php endwhile; ?&gt;<br />
    &lt;/div&gt;<br />
    &lt;?php } ?&gt;<br />
    &lt;/div&gt;<br />
    &lt;!–END RIGHTCOL–&gt;<br />
    &lt;/div&gt;<br />
    &lt;!–END CONTENT–&gt;<br />
    &lt;?php get_sidebar(); ?&gt;<br />
    &lt;?php get_footer(); ?&gt;
    </p>

El foro ‘Instalación / Actualización’ está cerrado y no se permiten nuevos debates ni respuestas.

Pin It on Pinterest