Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.
If the asker does not get an answer then they have 10 days to request a refund.
$20
Link to the excerpt from front_page.
I have then created a blank page called "Latest News" and have set this to display one post on the default template which I believe is index.php. I have modified index.php to show the_excerpt.
From the_excerpt on index.php there are the read more links that take the user to the_content on single.php
My question is this:
How can I link from my homepage to the excerpt of the post that is displayed on index.php, considering that the page id of the excerpt of the post is updated each time I add a new post.
At the moment when I click the link on the homepage it takes me to the full post display on single.php.
Here is the code for the link:
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_post_thumbnail('300-thumb', array('class' => 'thumbnail')); ?></a>
julesphoto | 02/07/12 at 12:54pm
Edit
Tutorial: How to assign prize money
(5) Possible Answers Submitted...
See a chronological view of answers?
Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.
-

Last edited:
02/07/12
12:58pmFrancisco Javier Carazo Gil says:Jules,
If I have understood well, you can use this function: http://codex.wordpress.org/Function_Reference/the_excerpt- 02/07/12 1:00pm
Francisco Javier Carazo Gil says:Or something like this: http://wordpress.org/support/topic/custom-the_excerpt-with-read-more-link
- 02/07/12 1:00pm
-

Last edited:
02/07/12
12:59pmJohn Cotton says:Hi Jules
Your question isn't clear to me...
Where do you want to link to if not the permalink for the page?
Just a pop-up of the excerpt?
JC
-

Last edited:
02/07/12
1:04pmLuis Abarca says:For home page you should use home.php in your templates.
The info could be stored in post meta, you can store the post ID and then use get_post($post_id) to show the excerpt- 02/07/12 1:08pm
Luis Abarca says:index.php is a fallback for your templates, if category.php, archive.php, single.php, etc, are missing, then WP will use index.php to show the info.
So, you dont need to use a static page, you can create a custom home.php and show the last post or a selected post.
But if you need the static page, you can store the last post ID in page custom meta to show the excerpt of the last post. - 02/07/12 2:22pm
Luis Abarca says:But if you need the static page, you can store the last post ID in page custom meta to show the excerpt of the last post.
And you can use front-page.php to create the custom template.
- 02/07/12 1:08pm
-

Last edited:
02/07/12
1:36pmDaniel Mesteru says:Hello Jules,
Check this plugin:
http://www.dailyblogtips.com/homepage-excerpts-wordpress-plugin/
Daniel -

Last edited:
02/08/12
1:00pm
This question has expired.
Current status of this question: Community pot
Please log in to add additional discourse to this page.
Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.
If the asker does not get an answer then they have 10 days to request a refund.
