Grow your CSS skills. Land your dream job.

Specific Content

  • # May 2, 2009 at 7:35 pm

    Hi,

    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.

    # May 2, 2009 at 7:55 pm

    Go to Settings > Reading and pick a Static "Page" for your homepage.

    # May 3, 2009 at 3:35 am

    Hi Chris,

    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?

    # May 3, 2009 at 5:54 am

    if it is going to be in wordpress this is what you need.

    Code:

    < ?php while (have_posts()): the_post(); ?>

    < ?php the_title(); ?>

    < ?php the_excerpt(); ?> // change excerpt to the post

    “>Read more…

    < ?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

    # May 3, 2009 at 5:50 pm

    Cheers.

    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!

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".