Hi. I’d like to create one paragraph of each of my new posts on my mainpage, then have the reader continue to another page by adding a “read more” link. This way I can have a number of recent posts on the main page and not have it full with one long post. How do I do this?
Change the_content to the_excerpt in index.php of your theme.
OK, I’m kinda new at this. where do I find that?
in index.php of your theme
in your ftp client with root access, then the path where do you uploaded your wp. -> root/wp-content/themes/THEMENAME/
If you don’t have FTP software or don’t know how to use it, you can do it with the theme editor in WordPress. Appearance > Editor
p.s. Always make a backup in case it gets screwy and has to be put back to the way it was. If you are using the WP theme editor you can copy the code into a .txt file and save it just in case.
hmm,ok.
I want my current functions to work as normal, but, for posts that i have posted within the past 4 days i want to echo a div on the frontpage.
For instance, all posts 3 days old i want it to echo a div saying NEW!
From the link you gave me it seems to just call the entire post.
I think you would have to add a Conditional Tag. You can combine a conditional tag with a query. Unfortunately I can’t figure out the exact code for you because it would take me some time.
i have a script, i just dont know how to call it in the index.php
If it’s in a separate file in your theme folder (let’s say it’s named yourfile.php), use
<?php include(TEMPLATEPATH.’/yourfile.php’);?>
its a php script in functions.php, is there a way to call it from the title or something?
function childtheme_post_header(){
can i call that by using
<?php postheader (); ?>
Sorry I don’t know. That’s not how I would do it.