Tirar a Opcao Read More
-
Boa noite!
Estou trabalhando com o template Clubber.
Preciso tirar a opcao “Read More”. Já mudei o termo the_excerpt para the-content no index.php e no archive.php. E mesmo assim a opcao Read More permanece.
Esse é o meu index.php, alguém poderia me ajudar, por favor?<?php get_header(); ?>
<div id=”content” <?php post_class(); ?>>
<?php
$page_layout = of_get_option(‘blog_images’);
switch ($page_layout) {
case “left-blog-sidebar”:
echo ‘
<div class=”sidebar-left”>’;
wz_setSection(‘zone-sidebar’);
if (!function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘sidebar-page’));
echo ‘
</div><!– end .sidebar-left –>’;
break;
case “right-blog-sidebar”:
echo ‘
<div class=”sidebar-right”>’;
wz_setSection(‘zone-sidebar’);
if (!function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘sidebar-page’));
echo ‘
</div><!– end .sidebar-right –>’;
break;
}
?><div class=”row fixed”>
<div class=”title-home”><h3><?php _e(‘Recent Posts’, ‘clubber’); ?></h3></div>
<div class=”col-blog-archive”>
<?php
if (have_posts())
while (have_posts()):
the_post();
$image_id = get_post_thumbnail_id($post->ID);
$cover = wp_get_attachment_image_src($image_id, ‘blog-preview’);
$num_comments = get_comments_number();
echo ‘
<div class=”blog-archive”>’;if ($image_id) {
echo ‘<div class=”blog-arc-cover”>
</div><!– end .blog-arc-cover –>’;
}
echo ‘
<h2 class=”blog-arc-heading”>‘ . get_the_title($post->ID) . ‘</h2>
<div class=”blog-arc-info”>
<p class=”blog-user”>’ . get_the_author() . ‘</p>
<p class=”blog-date”>’ . get_the_time(‘F jS, Y’) . ‘</p>
<p class=”blog-comment”>‘;
if ($num_comments == 0) {
echo ” . __(‘No comments’, ‘clubber’) . ”;
} elseif ($num_comments == 1) {
echo ” . __(‘One comment’, ‘clubber’) . ”;
} else {
echo ” .$num_comments . ‘ ‘ . __(‘comments’, ‘clubber’) . ”;
}
echo ‘</p>
</div>’;
echo
“<p>” . get_the_content() . “</p>”;
echo ‘<div class=”blog-arc-more”>‘ . __(‘Read more’, ‘clubber’) . ‘</div><!– end .blog-arc-more –>
</div><!– end .blog-archive –>
‘;endwhile;
?>
<div class=”pagination-pos”>
<?php
if (function_exists(“pagination”)) {
pagination();
}
?>
</div><!– end .pagination-pos –>
</div><!– end .col-blog-archive –></div><!– end .row fixed –>
</div><!– end #content –><?php the_tags(); ?>
<?php wp_link_pages(); ?><?php get_footer(); ?>
- O tópico ‘Tirar a Opcao Read More’ está fechado a novas respostas.