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.
Go to Settings > Reading and pick a Static "Page" for your homepage.
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.
if it is going to be in wordpress this is what you need.
< ?php the_excerpt(); ?> // change excerpt to the post
< ?php endwhile; ?>
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!
You must be logged in to reply to this topic.
*May or may not contain any actual "CSS" or "Tricks".