Home
Suggestion or Comment?

See also

Post2Blog - freeware handy desktop blogging client


Subscribe to Our Bi-Monthly Newsletter (tips, new releases, specials):
 Subscribe in a reader
 PRODUCTS  |  DOWNLOAD  |  PURCHASE  |  SUPPORT  |  TESTIMONIALS   |  NEWS  | 

Tutorial
How to use WordPress powered blog for news section on your web-site
 

This page provides quick guide for using WordPress powered blog and Post2Blog software for news section. Using this tutorial you will learn how to update news section on your web-site without changing HTML files. All you will need to add news is to launch Post2Blog, type news and click button to publish news.

4 ingredients to create news section:

  • Free WordPress blog - will be used to store all news items in blog format;
  • Post2Blog - desktop blogging client - will be used to update news section directly from your desktop;
  • Free RSS2HTML script for PHP - will be used to display items from blog on the main page;
  • Index.html or Index.php page - default page on your web-site which will be used to display news section;


Installing WordPress blog on your web-site

Skip this step if you have WordPress (another blog engine) already installed on your web-site

Download WordPress code from WordPress download page and copy it into the /blog/ sub-folder on your web-site

Install WordPress blog following Famous 5-Minute Install instructions.

Connecting Post2Blog to the news blog

Download and install trial version of Post2Blog desktop blogging client: http://bytescout.com/files/Post2Blog.exe

Run Post2Blog

Go to File menu in Post2Blog and select Account | New

Create new account for blog in Post2Blog

New Account Wizard will appear. Select WordPress blog type and click Next:

Select Blog type

Enter link to folder with WordPress blog on your web-site. For example: http://YourSiteName.com/blog/ and click Next

Enter link to your blog

Next pages will ask you for different options - don't change default options and click Next until you get Finish page and click Finish on the Finish page to close wizard.

New account for your news blog will be added to the list of accounts and will be selected by default.

Type news you want to post:

Post editor window

and click Post And Publish to add news to the news blog and they will appear in the blog:

News item published in the blog

Displaying news from bews blog on the main page

Download free RSS2HTML script for PHP from this page

Unpack ZIP file with script and modify sample-template.html to the following code:

<H1>~~~FeedTitle~~~</H1>
<H2>~~~FeedDescription~~~</H2>
<BR>
<TABLE width="100%">
~~~BeginItemsRecord~~~
<TR>
<TD>
~~~ItemPubShortDate~~~ ~~~ItemPubShortTime~~~
</TD>
</TR>
<TR>
<TD>
<B><A href="~~~ItemLink~~~">~~~ItemTitle~~~</A></B>
</TD>
</TR>
<TR>
<TD>
~~~ItemDescription~~~
<BR>
</TD>
</TR>
~~~EndItemsRecord~~~
</TABLE>

Upload modified sample-template.php and rss2html.php script to the main folder of your web-site.

Now we need to modify main page of your web-site. If you have .html or .htm file then just simply change its extension to .php
On most hosting services index.php will work without problems.

Open index.php and insert this code snippet to the place where you want to display news:

<?php include("rss2html.php?XMLFILE=http://www.MySiteName.com/blog/?feed=rss2") ?>

Link highlighted with green color is the link to the RSS feed of your news blog. Usually this links is

http://www.MySiteName.com/blog/?feed=rss2

if you have installed blog into /blog/ sub-folder

Now save index.php and upload it.

Now you can see news items from your blog displayed on the main page of you web-site like you can see on our web-site:

News section with news displayed from blog

Now you can add, manage, edit news in news section on your web-site directly from desktop using Post2Blog blogging client. All news you add into the blog will be automatically displayed on the main page of your web-site.

 


HOME  |  CONTACT US

Copyright © ByteScout, 2003-2010. Privacy Statement
Microsoft®, Windows®, Windows 2000®, Windows Server®, Windows Vista®, Internet Explorer®, .NET Framework®, ActiveX®, Visual Basic®, Visual C#®, ASP®, ASP.NET®, Excel®, PowerPoint®, are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. Adobe®, Flash® and Acrobat® are registered trademarks of Adobe Systems, Incorporated. Mozilla®, Firefox® and the Mozilla and Firefox Logos are registered trademarks of the Mozilla Foundation. Other product names or brandnames used herein are for identification purposes only and might be trademarks or registered trademarks of their respective companies. We disclaim any and all rights to those marks.