sql help for excerpts
-
I’ve got a temp file that I’m building as my new start page. (The blog is at https://www.mountyscorner.com/blog/index.php and the temp start page is at https://www.mountyscorner.com/test.php.) On the test file, I’ve got the five most recent posts listed. I’d like to be able to get the excerpts from those posts, but there is no default excerpt for the post. I edited the hack on the wiki to display excerpts after the post name. I’m sure it works (I’ve tested out putting in a 100-character excerpt on one post, and it shows correctly). The question is, how do I get it to show the first x number of characters from the post if there isn’t an excerpt specified? (I tried using the
<?php get_the_excerpt(); ?>
command in my-hacks.php, but it gave me nothing.)
- The topic ‘sql help for excerpts’ is closed to new replies.