Using wordpress posts in a static page

This is a discussion on "Using wordpress posts in a static page" within the Scripts and Online Services section. This forum, and the thread "Using wordpress posts in a static page are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > Scripts and Online Services

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jan 21st, 2008, 00:39
Reputable Member
Join Date: Sep 2007
Location: Tehran - Iran
Age: 29
Posts: 434
Blog Entries: 2
Thanks: 7
Thanked 7 Times in 7 Posts
Question Using wordpress posts in a static page

Hi

I have started using wordpress recently, I need to know that can I get new posts headlines and use them on other pages than wordpress itself ?
If yes how ?

Thanks
__________________
Designing For Communicating
Website : http://www.datisdesign.com
Weblog : http://blog.datisdesign.com

Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jan 21st, 2008, 23:50
Reputable Member
Join Date: Jan 2008
Location: Pasig
Posts: 105
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Using wordpress posts in a static page

What do you mean? you want your blog to be seen in other page beside wordpress? I don't if it is possible...but you can place your link to the pages of your site going to your posts...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jan 21st, 2008, 23:52
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: Using wordpress posts in a static page

It is possible but you need to hack WP for it.
I haven't hacked it in ages so i can't remember the functions.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jan 21st, 2008, 23:55
Reputable Member
Join Date: Sep 2007
Location: Tehran - Iran
Age: 29
Posts: 434
Blog Entries: 2
Thanks: 7
Thanked 7 Times in 7 Posts
Re: Using wordpress posts in a static page

I mean for example i have a website named : www.somedomain.com and wordpress is installed in subdomain named : blog.somedomain.com
All i need is that put links to new posts on www.somedomain.com
__________________
Designing For Communicating
Website : http://www.datisdesign.com
Weblog : http://blog.datisdesign.com

Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Jan 22nd, 2008, 00:00
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: Using wordpress posts in a static page

I'll have a look at this tomorrow, I still have a dev installation of WP on my server.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Jan 22nd, 2008, 00:04
Reputable Member
Join Date: Sep 2007
Location: Tehran - Iran
Age: 29
Posts: 434
Blog Entries: 2
Thanks: 7
Thanked 7 Times in 7 Posts
Re: Using wordpress posts in a static page

Thanks
__________________
Designing For Communicating
Website : http://www.datisdesign.com
Weblog : http://blog.datisdesign.com

Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Jan 22nd, 2008, 07:38
welshstew's Avatar
Site Admin

SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 1,709
Blog Entries: 14
Thanks: 3
Thanked 33 Times in 31 Posts
Re: Using wordpress posts in a static page

why not just subscribe to the wordpress rss feed and place these on your static pages?

http://rssfeedreader.com/
__________________
WelshStew Site Admin
If you think I've helped, click the "Thanks"
tierney rides tboard - uk site | xtreme wales - extreme clothing
WebForumz - facebook | LinkedIn
Last Blog Entry: Phorm approved for UK rollout (Sep 17th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Jan 22nd, 2008, 11:09
Reputable Member
Join Date: Sep 2007
Location: Tehran - Iran
Age: 29
Posts: 434
Blog Entries: 2
Thanks: 7
Thanked 7 Times in 7 Posts
Re: Using wordpress posts in a static page

yes thanks, i just use feedburner to create those links for my site...
But just wondering if it is possible to create these links manually or not ?
__________________
Designing For Communicating
Website : http://www.datisdesign.com
Weblog : http://blog.datisdesign.com

Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Jan 22nd, 2008, 20:18
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: Using wordpress posts in a static page

To create them manually? Then you just link to them like any of other link.
Did you mean dynamically?
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Jan 22nd, 2008, 20:21
Reputable Member
Join Date: Sep 2007
Location: Tehran - Iran
Age: 29
Posts: 434
Blog Entries: 2
Thanks: 7
Thanked 7 Times in 7 Posts
Re: Using wordpress posts in a static page

Yes I mean dynamically !
But now I am using feedburner to link to them...
__________________
Designing For Communicating
Website : http://www.datisdesign.com
Weblog : http://blog.datisdesign.com

Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Jan 25th, 2008, 14:12
Emzi's Avatar
SuperMember

SuperMember
Join Date: Sep 2007
Location: Manchester
Age: 25
Posts: 155
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Using wordpress posts in a static page

PHP: Select all

<?php
$how_many
=3//How many posts do you want to show
require_once("wp-config.php"); // Change this for your path to wp-config.php file ?>

<?
$news
=$wpdb->get_results("SELECT `ID`,`post_title`,`post_content`, `post_date` FROM $wpdb->posts
WHERE `post_type`=\"post\" AND `post_status`= \"publish\" ORDER BY 'ID' DESC LIMIT "
.$how_many);
foreach(
$news as $np){
//echo ("$np->post_date<br />");
list ($y$m$d) = split('[/.-]'substr($np->post_date010));
 echo 
"Posted on: $d-$m-$y<br />";
print (
"<a href=\"");
echo 
get_permalink($np->ID);
print (
"\">$np->post_title</a><br />");
if (
strlen($np->post_content) > 65)
{
echo (
substr("$np->post_content"065)."... ");
}
else
{
echo (
"$np->post_content<br />");
}
print (
"<a href=\"");
echo 
get_permalink($np->ID);
print (
"\">&raquo; Read More</a><br /><br />");
?>
I did this for the website of the company I work for. I think that should work. Although this particular part is in an include so if it doesn't work you may need to fiddle with it a bit, although at the moment it looks fine
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Jan 25th, 2008, 15:42
Reputable Member
Join Date: Sep 2007
Location: Tehran - Iran
Age: 29
Posts: 434
Blog Entries: 2
Thanks: 7
Thanked 7 Times in 7 Posts
Re: Using wordpress posts in a static page

Thanks man, I will try that but now the feedburner is working fine...
__________________
Designing For Communicating
Website : http://www.datisdesign.com
Weblog : http://blog.datisdesign.com

Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Static to CMS andi Web Page Design 5 Jun 6th, 2008 18:20
Creating Page wordpress!? crackafaza Webforumz Cafe 2 Apr 16th, 2008 02:15
Static Timestamp savery2151 Starting Out 3 Sep 15th, 2007 20:17
Dynamic vs Static Markb Website Planning 4 Jul 27th, 2007 17:10
How to put your menu/static info. on every page lmc148 Starting Out 18 Jun 29th, 2007 09:53


All times are GMT. The time now is 01:42.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42