OneKoreanGuy
Member
Posted 2 years ago #
Hi, as you can see on my site, the theme I am using did not provide shortening the reviews on the main page to allow previews and whatnot. It shows the WHOLE article!
What is the code to show previews? (or rather, to cut out the whole post).
As you can see, it's a blog, so I would need a code to show the preview of the POST.
Thanks in advance.
Also, how can I add a counter to show how many posts I have for the month by the "Archives" side bar?
1. Replace the_content() on the index.php file in your current theme with the_excerpt().
2. '<?php wp_get_archives('show_post_count=1'); ?> '
OneKoreanGuy
Member
Posted 2 years ago #
1. I got a Fatal Error:
Fatal error: Call to undefined function the_exerpt()
2. It worked, thanks.
here's the full code for the_content
<?php the_content(''.__('Read More <span class="meta-nav">»</span>', 'sandbox').''); ?>
<?php wp_link_pages('before=<div class="page-link">' .__('Pages:', 'sandbox') . '&after=</div>') ?>
<?php edit_post_link(__('Edit', 'sandbox'), "\t\t\t\t\t<span class=\"edit-link\">", "</span>"); ?>
</div>
</div><!-- .post -->
fusionpowered
Member
Posted 2 years ago #
did you put a 'more' tag in your post?
1.
watch the spelling!
the_excerpt()
mspatel724
Member
Posted 2 years ago #
had same exact problem with http://fudgecake.org