WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] how do I strip content from blog to put on a page on my website (5 posts)

  1. tammytrent
    Member
    Posted 5 years ago #

    I have wordpress installed on my website. However, I don't want to use a whole page for the blog. I want to just use the content of the blog (ie, the posts) and place them on another page on my website among other content... I'm sure there's a way to do that, yes?

  2. maestro42
    Member
    Posted 5 years ago #

    Two ways that I can think of:

    1) - Just edit your theme's index.php file to make it look how you want. Put in the content you want to have and then move around The Loop to where you want the blog posts to be.

    2) - As long as you call the include wp-blog-header.php call - you can access The Loop from any page. There is also a good plugin that I have used extensively, Customizable Post Listings that you can take a look at to customize the output of your blog posts. Using this plugin, you don't need to use The Loop, it's a simple php function call.

  3. tammytrent
    Member
    Posted 5 years ago #

    Thank you for your input :-)

    It's a bit more complicated than what I'm able to do though. Hmmm... I don't know php so it would be a difficult thing for me to edit the theme's php page.

    If I give you the example of what I'm wanting to do...I wonder if perhaps you can talk me through the easiest way to do it?

    Go to http://www.tammytrent.com/. If you scroll down towards the bottom, you see the "Message from TT" section. Right now, that's static text...but that's where I'd want the blog to be inserted...

  4. renato_s
    Member
    Posted 5 years ago #

    Well, not sure if I understood what you want, but to have the structure you mention, all you have to do is edit your index.php and put the static content before the Loop.

    That way, you'll have the "introduction" for your site and, after that, the posts. If you only want one post, you can use query_posts('showposts=1') before the loop.

  5. tammytrent
    Member
    Posted 4 years ago #

    Hey guys - thank you so much for your thoughts! I have done the above items...but the loop calls the whole blog page. I just want the actual entries, not the whole blog page to show on my website. What do I need to do for that?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.