Web Design and Development Forums

Using wordpress posts in a static page

This is a discussion on "Using wordpress posts in a static page" within the Design & Development Software section. This forum, and the thread "Using wordpress posts in a static page are both part of the Plan Your Website category.


Go Back   Webforumz.com > Plan Your Website > Design & Development Software

Welcome to Webforumz.com.
Register Now Register now!

Reply
 
LinkBack Thread Tools Rate Thread
Old Jan 21st, 2008, 00:39   #1 (permalink)
Moderator
 
marSoul's Avatar
 
Join Date: Sep 2007
Location: Tehran - Iran
Age: 28
Posts: 367
Blog Entries: 2
Send a message via MSN to marSoul Send a message via Yahoo to marSoul
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

Datis Design Website
Datis Design Weblog
marSoul is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jan 21st, 2008, 23:50   #2 (permalink)
Reputable Member
 
Join Date: Jan 2008
Location: Pasig
Posts: 106
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...
sekuchi is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jan 21st, 2008, 23:52   #3 (permalink)
Administrator
 
alexgeek's Avatar
 
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
Blog Entries: 9
Send a message via MSN to alexgeek
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.
__________________
Languages: PHP, mySQL (queries), C#, (X)html, CSS, JS.


alexgeek is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jan 21st, 2008, 23:55   #4 (permalink)
Moderator
 
marSoul's Avatar
 
Join Date: Sep 2007
Location: Tehran - Iran
Age: 28
Posts: 367
Blog Entries: 2
Send a message via MSN to marSoul Send a message via Yahoo to marSoul
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

Datis Design Website
Datis Design Weblog
marSoul is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jan 22nd, 2008, 00:00   #5 (permalink)
Administrator
 
alexgeek's Avatar
 
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
Blog Entries: 9
Send a message via MSN to alexgeek
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.
__________________
Languages: PHP, mySQL (queries), C#, (X)html, CSS, JS.


alexgeek is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jan 22nd, 2008, 00:04   #6 (permalink)
Moderator
 
marSoul's Avatar
 
Join Date: Sep 2007
Location: Tehran - Iran
Age: 28
Posts: 367
Blog Entries: 2
Send a message via MSN to marSoul Send a message via Yahoo to marSoul
Re: Using wordpress posts in a static page

Thanks
__________________
Designing for Communicating

Datis Design Website
Datis Design Weblog
marSoul is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jan 22nd, 2008, 07:38   #7 (permalink)
Section Manager -
Website Critique
 
welshstew's Avatar
 
Join Date: May 2007
Location: inside the outside
Posts: 1,095
Blog Entries: 10
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
Section Manager

tierney rides tboard - uk site : xtreme wales - extreme clothing
welshstew is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jan 22nd, 2008, 11:09   #8 (permalink)
Moderator
 
marSoul's Avatar
 
Join Date: Sep 2007
Location: Tehran - Iran
Age: 28
Posts: 367
Blog Entries: 2
Send a message via MSN to marSoul Send a message via Yahoo to marSoul
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

Datis Design Website
Datis Design Weblog
marSoul is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jan 22nd, 2008, 20:18   #9 (permalink)
Administrator
 
alexgeek's Avatar
 
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
Blog Entries: 9
Send a message via MSN to alexgeek
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?
__________________
Languages: PHP, mySQL (queries), C#, (X)html, CSS, JS.


alexgeek is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jan 22nd, 2008, 20:21   #10 (permalink)
Moderator
 
marSoul's Avatar
 
Join Date: Sep 2007
Location: Tehran - Iran
Age: 28
Posts: 367
Blog Entries: 2
Send a message via MSN to marSoul Send a message via Yahoo to marSoul
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

Datis Design Website
Datis Design Weblog
marSoul is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jan 25th, 2008, 14:12   #11 (permalink)
Reputable Member
 
Join Date: Sep 2007
Location: Manchester
Age: 25
Posts: 131
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
__________________
Web Design Manchester - Enjoy Online Ltd. Emz Design - Web Design Blog
Emzi is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jan 25th, 2008, 15:42   #12 (permalink)
Moderator
 
marSoul's Avatar
 
Join Date: Sep 2007
Location: Tehran - Iran
Age: 28
Posts: 367
Blog Entries: 2
Send a message via MSN to marSoul Send a message via Yahoo to marSoul
Re: Using wordpress posts in a static page

Thanks man, I will try that but now the feedburner is working fine...
__________________
Designing for Communicating

Datis Design Website
Datis Design Weblog
marSoul is offline  
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
Rate This Thread
Rate This Thread:

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
Rollovers in static text? ClrWtrDsgnr Flash & Multimedia Forum 1 Nov 12th, 2007 22:57
Static Timestamp savery2151 New to Web Design 3 Sep 15th, 2007 20:17
Dynamic vs Static Markb Website Planning Discussion 4 Jul 27th, 2007 17:10
How to put your menu/static info. on every page lmc148 Beginner Resources 18 Jun 29th, 2007 09:53
Static menu Jimartist JavaScript Forum 2 Sep 8th, 2005 20:44



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 21:43.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59