I'm currently developing a site in Wordpress and on the frontpage I need to pull the content from a specific page, it is just one line because the client is likely to change it.
My question - How can you tell wordpress to get the_content from a specific page? I have my permalink structure set to %postname%, if this is any help.
if it is going to be in wordpress this is what you need.
<!-- mini loop for the excerpts --> <?php while (have_posts()): the_post(); ?> <h2><?php the_title(); ?></h2> <?php the_excerpt(); ?> // change excerpt to the post <p><a href=\"<?php the_permalink(); ?>\">Read more...</a></p> <?php endwhile; ?> <!-- end the mini loop -->
also if you picking from different categories, you will need to say which category.
the above code is just what I use to get wordpress conteent out of wordpress on to a static page, this just shows the last post.
I'm currently developing a site in Wordpress and on the frontpage I need to pull the content from a specific page, it is just one line because the client is likely to change it.
My question - How can you tell wordpress to get the_content from a specific page? I have my permalink structure set to %postname%, if this is any help.
Thanks in advance.
Sorry, thats not what I meen.
I need to pull the page in to fit with other content. What i'm doing is taking the line of content and adding it to a carousel.
I therefore need to know how to pull the line of code in.
Any ideas?
also if you picking from different categories, you will need to say which category.
the above code is just what I use to get wordpress conteent out of wordpress on to a static page, this just shows the last post.
try this link for more options http://tinyurl.com/c8k5ll
I've actually just found a wordpress plugin called 'get a post' (http://guff.szub.net/2005/01/27/get-a-post/) on another forum.
Thanks for the help anyway!