How to display latest post on Home Page?
-
Hi
I’m very new to WordPress and hopefully someone can help me with my issue.
I am using http://evergreenpa.org/themes/evergreen-sports/galleries/ this theme and what I would like to do it to always have LATEST POST displayed on this place under top slider.
Currently it’s set so there can be only custom entry on Home and I don’t know how I could change this?
If I need to post any part of the code, please let me know which part.
Thanks
-
-
Hey
I can’t publicly post it but I’m using exactly same theme and layout as this:
http://evergreenpa.org/themes/evergreen-sports/
I would like to have latest article displayed under gray announcement tab, with image, text preview and read more button (instead of current static post).
-
`<ul>
<?php $the_query = new WP_Query( ‘showposts=1’ ); ?>
<?php while ($the_query -> have_posts()) : $the_query -> the_post(); ?>
<li><a href=”<?php the_permalink() ?>”><?php the_title(); ?></a></li>
<li><?php the_content(__(‘(more…)’)); ?></li>
<?php endwhile;?>
</ul>I have tried this but this show the full post. How can I limit this to featured image, title, text preview and read more?
-
I am not going to help you until you post the URL. 90% of the time the blog is NOT using Wp.com software but WP.org software. And yours is, obviously. Go to WordPress.org for assistance with that.
-
We do not provide support for that site here at WordPress.COM because it is not hosted here. We do NOT provide support for local installs of WordPress.ORG software.
If you don’t have a username account at WordPress.ORG click http://wordpress.org/support/ and register one on the top right hand corner of the page that opens, so you can post to the support forums there and receive advice from WordPress.ORG bloggers.
- The topic ‘How to display latest post on Home Page?’ is closed to new replies.