Inițiator fir de discuții
JimmyTheX
(@jimmythex)
Vreo idee, careva? Hello?
Copy/paste aici index.php sau home.php al temei activate.
Inițiator fir de discuții
JimmyTheX
(@jimmythex)
Asta este index-ul temei vechi pe care o foloseam ce includea acel excerpt: `<?php
/*
Template Name: Featured Page
*/
?>
<?php get_header(); ?>
<div id=”mid” class=”fix”>
<div id=”main” class=”fix”><a name=”main”></a>
<?php include (TEMPLATEPATH . ‘/featured.php’); ?>
<?php include (TEMPLATEPATH . ‘/ads/featured_bottom.php’); ?>
<div id=”content”>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class=”post” id=”post-<?php the_ID(); ?>”>
<div class=”postMeta”><span class=”date”><?php the_time(‘j.m.Y, G:i’) ?></span><span class=”comments”><?php comments_popup_link(‘0’, ‘1’, ‘%’); ?></span></div>
<h2><a href=”<?php the_permalink() ?>” title=”<?php the_title(); ?>”><?php the_title() ?></a></h2>
<h5>Categories: <?php the_category(‘, ‘); ?> | Hits : <?php ST4_hits(); ?></h5>
<div class=”entry”>
<div id=”introIMG”><?php the_excerpt(); ?></div>
<p><?php the_content_rss(”, TRUE, ”, 82); ?> <a href=”<?php the_permalink() ?>” title=”Read More”>Read More</a></p>
</div>
</div>
<?php endwhile; ?>
<?php else : ?>
<div class=”post”>
<div class=”postMeta”><span class=”date”>No Matches</span></div>
<h2>No matching results</h2>
<div class=”entry”>
<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 id=”pagination”>
<p><?php if(function_exists(‘wp_page_numbers’)) { wp_page_numbers(); } ?>
</p>
</div>
</div>
</div>
<?php include (TEMPLATEPATH . ‘/sidebar1.php’); ?>
<?php include (TEMPLATEPATH . ‘/sidebar.php’); ?>
</div>
<?php get_footer(); ?>
`
Dudă, am zis al temei curente, nu al temei vechi. Pe tema aceasta iti apare excerpt-ul in loc de continutul complet, nu?
Inițiator fir de discuții
JimmyTheX
(@jimmythex)
Da, la toate posturile vechi apare poza in loc de descrierea scurta pana in „read more”. De cand folosesc noua tema nu mai adaug nimic in campul ala „excerpt” deci e totul in regula. Cu posturile vechi e problema. Deci trebuie sa fie o modalitate sa pot sterge tot ce e scris la campurile „excerpt” fara a modifica in vreun fel structura WP. Trebuie sa fie o posibilitate din baza de date, sa poti sterge in masa toate campurile de la excerpt. Daca tot e nevoie sa-ti dau index-ul actual imi spui, dar nu vad legatura.
Multam
Inițiator fir de discuții
JimmyTheX
(@jimmythex)
Am reusit prin „update” in mysql la tabela excerpt de la baza site-ului la care aveam nevoie. Multumesc. Sper sa fie de ajutor pe viitor si altor cu aceasta dilema.
Multam Eugen.