• Welcome to Forum graficzne Burning-Brushes.pl. Please log in or sign up.
 

Błąd szukajki w wordpressie

Zaczęty przez Annoyer13, Październik 06, 2009, 00:19:15

Poprzedni wątek - Następny wątek
Przy próbie wyszukiwania na jednym theme w WP wyskakuje mi:
Parse error: syntax error, unexpected T_ENDIF in /sciezka_dostepowa/www/wp-content/themes/elements/elements_10/search.php on line 31

Natomiast plik search.php wygląda następująco:
<?php get_header(); ?>
<div id="main">
        <div id="content">
            <!-- Loop Begins -->
            <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
            <div class="intro">
                <span class="thumbnail">
                    <a href="<?php the_permalink() ?>" class="thetip" title="<?php the_title() ?> :: <?php the_content_rss(''TRUE''50); ?>"><img src="<?php $key="thumbnail"; echo get_post_meta($post->ID$keytrue); ?>" alt="thumb"/></a>
                </span>
                <div class="intropost">
                    <h3><a href="<?php the_permalink() ?>"><?php the_title() ?></a></h3>
                    <p class="introcontent"><?php the_content_rss(''TRUE''50); ?></p>
                    <div class="introinfo">
                        <a href="<?php the_permalink() ?>#comments"><span class="comments"><p><?php comments_number('0''1''%'); ?></p></span></a>
                        <span class="date"><p><?php the_time('F j, Y'); ?></p></span>
                    </div>
                </div>
            </div>
            <?php endwhile; else: ?>
            <?php endif; ?>
            <!-- Loop Ends -->
            <div class="intro">
                <span class="thumbnail">
                    <img src="<?php bloginfo('template_url'); ?>/images/404.jpg"/>
                </span>
                <div class="intropost">
                    <h3>Sorry, Nothing Here by That Name</h3>
                    <p>You seem to have found a mis-linked page or search query with no associated results. Please trying your search again. If you feel that you should be staring at something a little more concrete, feel free to email the author of this site or browse the archives.</p>
                </div>
            </div>
            <?php endif; ?>
        </div>
       
        <?php get_sidebar(); ?>
    </div>
<?php get_footer(); ?>


A 31 linia to:
<?php endif; ?>



Gdzie może leżeć problem? : s

Połączenie postów: Październik 06, 2009, 17:48:56

Problem rozwiązany - można zamknąć.


Wielokrotne powtarzanie kłamstwa nie czyni go prawdą.