How to add 5 full WordPress posts on an external html page


25 of August2007

Upon popular request I’ve decided to add another tutorial, similar to the previous one, on how to add several full blog posts on an external page.

*** Update (Apr 25 2012): I’ve written a new post for how to accomplish this without accessing the WordPress database directly (so it’s less of a hack). Take a look.

Well, here it is, and I’ll try to explain everything clearly.

Say you have a homepage that is not run by WordPress, and you just have your blog in the /blog/ directory or something like that. Yet you STILL want to display an excerpt 5 (or any number) of your most recent full posts from your WordPress blog on your home page.

1) Here’s the code you will want to write in BEFORE the Doctype (so the very first of your HTML):

<?php
//db parameters
$db_username = '###';
$db_password = '###';
$db_database = '###';

$blog_url = 'http://www.jamischarles.com/blog/'; //base folder for the blog. Make SURE there is a slash at the end

//connect to the database
mysql_connect(localhost, $db_username, $db_password);
@mysql_select_db($db_database) or die("Unable to select database");

//get data from database -- !IMPORTANT, the "LIMIT 5" means how many posts will appear. Change the 5 to any whole number.
$query = "Select * FROM wp_posts WHERE post_type='post' AND post_status='publish' ORDER BY id DESC LIMIT 5"; 

$query_result = mysql_query($query);
$num_rows = mysql_numrows($query_result);

//close database connection
mysql_close();

// html page starts after ?>
?>
< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
</head>

2) Now, the text in the body will be a little bit different. Continuing where we left off…
Now, the problem here, is that we have dynamically generated content. That means we write a loop that goes through each table row in the database, gets the title, date, and text, then spits out on the html, and goes to the next row of the database and does the same thing again.

So if we use a div with same id, it’ll show that div up 5 times, each time with a different post. This is not acceptable, because it is not valid code, and could mess up the CSS. So we have to give it a class to be valid, or use tables. For this example we’ll use divs.

<body>

<?php

//start a loop that starts $i at 0, and make increase until it's at the number of rows
for($i=0; $i< $num_rows; $i++){ 

//assign data to variables, $i is the row number, which increases with each run of the loop
$blog_date = mysql_result($query_result, $i, "post_date");
$blog_title = mysql_result($query_result, $i, "post_title");
$blog_content = mysql_result($query_result, $i, "post_content");
//$blog_permalink = mysql_result($query_result, $i, "guid"); //use this line for p=11 format.

$blog_permalink = $blog_url . mysql_result($query_result, $i, "post_name"); //combine blog url, with permalink title. Use this for title format

//format date
$blog_date = strtotime($blog_date);
$blog_date = strftime("%b %e", $blog_date);

//the following HTML content will be generated on the page as many times as the loop runs. In this case 5.
?>

</body>
<div class="post"></div>

		<span class="date">  <?php echo $blog_date; ?>:</code></span><br /><hr /> 

		<a href="http://www.bluebreeze.net/blog"><?php echo $blog_title; ?></a><br /><br />

		<?php echo $blog_content; ?> <br /><br />

                <a href=”<?php echo $blog_permalink; ?>”>This Article</a> <br />
		<a href="http://www.bluebreeze.net/blog">More Articles </a>
<?php
} //end the for loop
?>

Related posts:

How to get WordPress on an external page without hacking the db
How to add recent WordPress post excerpts on an external html page

Your Words


  1. [...] *** Update: I wrote a new tutorial with slightly different functionality. How to display 5 full posts… [...]

  2. You are a genius!! Searched for this for days!

  3. No 3 by
    Jason

    Is there any way to get the permalink from the post so that you can link back to the original post from the external website?

  4. I’m new to php and wordpress but your tip has provided me with a good starting point for what I’m after.

  5. No 5 by
    wilhelm

    hey,

    is there a way to strip out the images from the posts that get pulled into the external page? i have an excerpt from the posts appear in a div, but i like to use a lot of images in my posts in the blog. in the external page i do not have the space for the images, so it would be great to have them stripped out. i heard of the strip tag in php – but i have no clue about php and the like – maybe an interesting idea for your project?

  6. Wilhelm: That certainly would be possible with PHP. However, the easiest way I could think of would be to just use CSS. Use CSS to target the div with the blog content and then turn the display of the images to none. Kind of like this:

    #blog_content img{display: none;}

    This should take all of the images within the blog_content div and hide them. Let me know if that works for you.

  7. No 7 by
    wilhelm

    ingenius. thank you very much – that works :)

  8. No 8 by
    Steve

    I also used that to strip the images in from my posts, but my external page blows up every time it hits an image. If I use excerpts from the similar posting (http://www.bluebreeze.net/blog/?p=11) and use a minimal number of characters I’m okay so far. If I try to increase the number of $maxchars to the point where an image is included, the following ending doesn’t seem to get recognized and the next gets dumped into the current section.

    I would’ve posted this on the similar posting, but since the last posting was about the graphic issue I’m facing, I thought this would work.

    Thanks in advanced.

  9. Steve: I’ll look into that.

  10. With some fine modifications, I have incorporated this code into my website at http://www.adonline.id.au. It works a treat… It took me days to find this, but it was exactly what I needed. Thanks so much.

    I have some code modifications I’d like to share if I were able to post code here in comments. I think others would find it as useful as I did, especially pertaining to the order that stories appear on the display page.

  11. No 11 by
    rocket

    Any luck on getting Steve’s question to work?

  12. No 12 by
    hs

    This is going to be a stupid question, and I apologize in advance, but with:

    <?php
    //db parameters
    $db_username = ‘###’;
    $db_password = ‘###’;
    $db_database = ‘###’;

    can’t anyone who clicks on ‘view source’ view your database login details?

  13. No 13 by
    hs

    Nevermind – I realised I was being a noobcake.

    For anyone else having a moment, php is processed server side and view source only shows the resulting html.

    Thanks for the code anyway. Nice work!

  14. No 14 by
    Pat

    Thanks for this code.

    I’m trying it on a site I’m designing right now, and I have a very, very noob question. Do I save the file as index.html or index.php? I have it saved as index.php and it is not displaying properly when I upload it to my server.

    Thanks in advance.

  15. No 15 by
    Pat

    I figured it out…

    But, I have another question…

    Is there a way to only display a certain category within the blog?

    Thanks!

  16. No 16 by
    maek

    can you tell me what i am doing wrong?
    http://maek.us/spaz.html
    the code is located through the iframe which would probably be at http://maek.us/blog.php
    i downloaded the code. Only changed the db_parameters.
    Doesn’t seem to be working right

  17. Hi

    Thanks for bringing me back on track.
    Can you point me in the right direction, i’m running WP as you can see.
    Is it possible to show only a category on one side (ex. home) and on another side (ex. out) from same database ?

    Thanks

    Flemming Jansen

  18. Hi,

    this works really well – I have another question though. Right now it displays the five last blog posts, but it displays them without the text decorations that i had in the main blog. For example line breaks are missing and it just displays it all in one long block of text. (Example on my website – click on blog)
    Is there a way to get the paragraphs all correct?

    Other than that – thumbs up and thanks again :)

  19. No 19 by
    jamis

    Pat: I’ve tried looking at the database structure and have so far been unable to only show one category. I’m still looking into it. I’m not sure how they do it with wordpress.

  20. No 20 by
    Jack A

    Thank you for this code. Does anyone know the value for the database ### if I have a mydomain.wordpress site?

    <?php
    //db parameters
    $db_username = ‘###’;
    $db_password = ‘###’;
    $db_database = ‘###’;

    //connect to the database

  21. does anyone knows if there is any other information about this subject in other languages?

  22. No 22 by
    Pieter

    Like Wilhelm said, there’s no formatting in the posts on the external page. Is it popssible to fix this?

  23. No 23 by
    Shawn

    I am having an issue implementing this. I think the reason is that I had to define ‘DB_HOST’ in my “config.php” file to get my wordpress blog to work. I am assuming that I would have to do the same in this code, but I can’t find where I should do this. Can anyone help?

  24. No 24 by
    jsherk

    Jack A assked: Does anyone know the value for the database ###?

    You will need to ask your webmaster (or your host) if they can provide that information… the database, the password and the username could be anything… you can’t guess… you need to find out exactly what it is!!

  25. No 25 by
    jsherk

    GETTTING THE PERMALINK

    Jason asked: October 14th, 2007 at 6:29 pm Is there any way to get the permalink from the post so that you can link back to the original post from the external website?

    To get the permalink, add this line:
    $blog_permalink = mysql_result($query_result, $i, “guid”);

    after these lines:
    $blog_date = mysql_result($query_result, $i, “post_date”);
    $blog_title = mysql_result($query_result, $i, “post_title”);
    $blog_content = mysql_result($query_result, $i, “post_content”);

    And then add this line:

    BEFORE this line:

  26. No 26 by
    jamis

    Yaz: Not that I know of.

  27. No 27 by
    jamis

    Shawn: The value you used for “DB_HOST” should be the same as the ‘localhost’ in the following statment (4th line of code up above): “mysql_connect(localhost, $db_username, $db_password)”
    Replace ‘localhost’ with the value you used for your “DB_HOST”.

    Give that a try.

  28. No 28 by
    Mchl

    Hi,

    What about displaying a single specifc post (with comments as well) on a seperate index.php?

  29. No 29 by
    Shawn

    Jamis: Thanks! that took care of my problems! I had actually already tried that, but when you mentioned that is where it should be, I discovered I had forgotten the quote marks. Thanks a lot for helping me figure this out!

    I have another (probably easy) problem that I am running into. It seems that the “post” divs are nesting in each other. However, I need them to be separate divs.

    My code is ending up looking like this:

    But I want it to look like this:

    Any idea what I could do to fix this?

  30. No 30 by
    Shawn

    Sorry for my previous post, I had empty divs in my two examples, but apparently WordPress saw them as HTML and did not display them. I am not sure how to make the code display properly so I am going to add the two examples here with quote marks instead of the usual tag syntax. I hope this make sense:

    My code is ending up looking like this:
    “div class=post” “div class=post” “div class=post” “/div” “/div” “/div”

    But I want it to look like this:
    “div class=post” “/div” “div class=post” “/div” “div class=post” “/div”

  31. No 31 by
    Shawn

    Ok, well, you can just ignore those two posts, I figured it out. Sorry for making you read that giberish, I am a PHP Noob.

    For any one else having this problem, all you need to do is add a closing div just under the “More Articles” line.

  32. No 32 by
    jamis

    Jason: I added in the permalink now. Let me know if it doesn’t work.

  33. No 33 by
    Krista

    Thank you SO much!!!! I’ve been trying to figure this out for days!

  34. No 34 by
    Krista

    I have a question, I used this code on my site katelyntarverfans.com and it worked great, but how do I get the add comment part at the bottom of each entry to show up so people can post comments? Thanks for any help you can give.

  35. No 35 by
    Adam

    Right i’ve edited this excellent script and shrunk it down for my needs, which i am using to display a wordpress page on an external html page outside of my blog.

    Well its php actually not html but anyway.

    How on earth do i format the output, it just sticks all of the text together without inserting the p tags like it does in the blog

    i cant figure this out for the life of me, can someone please help

  36. No 36 by
    Fab

    Is it possible to also grab the categories or tags or author that way? I fail to see how they are linked from the wp_post table… Anyone got an idea?

  37. Hey:

    I’m put your script in may “test.php” page just like you say i should, but nothing shows up at the page. I made the test page cos in my index page i couldn’t see anything either. So, what is happening? I set de variables with database username, database name and password, but nothing shows. The strange thing is, no error message appears. ¿? just a blank page. please write to my mail so i cant send you the code with my variables… please?
    thanks.

  38. [...] to add 5 full WordPress posts on an external html pageread more | digg [...]

  39. How do you output the author’s user name?

  40. Any progress on getting it to display results from only ONE category? I’ve tried several things and can’t seem to make it work…

  41. No 41 by
    Opel

    anyone sorted out the formatting issue?

    just get one long paragraph of text, I get the bolding and underlining coming through and the the H1, H2 etc, just not the paragraphing

  42. No 42 by
    Opel

    the only way I’ve found is to go back into the post, go to the code view and enter

    before each paragraph and then

    after each paragraph, resave the post and this seems to do it, if someone figures out a another way I’d be glad to hear it

  43. No 43 by
    Opel

    sorry html must be stripped out should read,
    before:

    and

    after (no spaces)

  44. No 44 by
    Sampson

    How do you format the date to appear?

    April 15th, 2008 at 7:31 pm

  45. No 45 by
    Ollie

    In fact, you don’t need to comment out the html stripping if you don’t want to… depends on whether you want images etc to appear or not.

  46. No 46 by
    Matt

    Thank you very much for this! I’m still very much a beginner with mysql and php and I didn’t want to have to write this all out (at least, to my credit, I had the proper logic worked out in my head before I found this ha!)

    works beautifully and I do believe this is one of the very few posts out there to address this. Thanks Jamis!

  47. I am trying to get this to work with the code you posted: http://www.modacapellisalon.com/index2.php
    but no matter what, the linking is wrong – WP is in /site dir and the index is in the pub_html – it seems to hav a path issue any ideas? much appreciated!@

  48. Hello all

    I’m a newby in this kinds of things, so sorry if my question is stupid …
    I was trying to show data from my wordpress blog in my main site so I’ve used most of the code from this post to try to achieve this, with the only difference that I wanted to show only the titles and not the rest. But I’m having problems with the links when I try to display the permalink inside an tag. Hope that some of you can explain me what I’m doing wrong.

    Let me explain a little bit better. First I get the permalink:

    $blog_permalink = mysql_result($query_result, $i, “guid”);

    If I do an echo $blog_permalink; I get this as the result:

    http://www.saorbats.com.ar/news/355

    Until here, everything is fine because above URL is exactly the one that I need to show

    But then, when I try to show the variable $blog_permalink inside an tag the result is not what I want.

    <a href=””>

    If I click on the URL generated by above line of code I’m redirected to this URL

    http://www.saorbats.com.ar/news/“http://www.saorbats.com.ar/news/355″

    I don’t know why the href generates the URL like this. The result that I need is only what is inside the double quotes.

    Appreciate if someone can give me a hand with this

  49. It seems that the code was not dispayed properly in the previous post, but what I’m doing is displaying the URL via an a href tag exactly the same as it is being used in the first post of this thread. Hope it clarifies

  50. I’m a WP noob too, though been in computer hell for years. Has anyone else used the above code only to get a blank page displayed??

    http://www.goodsportsart.com/indexblogfeed.php

    Our blog is located in http://www.goodsportsart.com/blog (note: I’ve made no mods yet). and our intention is to get a number of posts on the main page of our site. And for some reason, all I get is a blank page.

    Any assistance is greatly appreciated.
    Norm M

    Here is our code: (including all user and password info.. I’ll change it later.)
    ========================================================

    ?>

    test page

    <?php //php starts again

    //start a loop that starts $i at 0, and make increase until it’s at the number of rows
    for($i=0; $i

    :

    More Articles

    :

    <a href=””>More

  51. harumph… WP didn’t take the HTML code… stripped it right out.. so…hmmm…
    IF anyone has any suggestions as to why a reference on the same level as the Main Site page comes out blank when referencing the Blog one level deeper, (/blog), please suggest away…
    with gratitude
    Norm M

  52. This works fantastic for me, now how do i get it to only query posts from a specific category?

  53. No 53 by
    jamis

    I’ll take a look at the code to make sure there are no mistakes in it. Thanks for the notice guys.

  54. I’ve been searching for a way to use this to pull posts only from a specific category (preferably using the category id) can anyone help. This is working great, but the addition of a category to teh query would be fantastic, it seems that this is the most needed addition.

  55. Thank you. It’s not quite 100 per cent for me but it’s the closest I have found—been looking for something that could echo my blog posts on a stock page. I’ll do some experimentation (though I am no computer expert).

  56. I keep getting an error and i’m not sure what i am doing wrong. Any help would be great. THanks!

    Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host ‘db46815_wp’ (1) in /nfs/c02/h04/mnt/46815/domains/www.waitedesigns.com/html/index.php on line 10
    Unable to select database

  57. Please disregard the last post, I was able to figure it out. I do have a question about the permalink not working. When you click the link it posts http://www.waitedesigns.com/”http://www.waitedesigns.com/news/?p=6” in the url rather then http://www.waitedesigns.com/news/?p=6

  58. No 58 by
    jamis

    Charlie, I’ll take a look at it.

  59. No 59 by
    Kevin

    Hi Jamis,

    I would like to use this opportunity to thank you a lot for this script! It works great on our website and 2 other websites where I implemented it.

    I however also have an issue with the permalinks.
    When I installed the script about a year ago on a website that had and still has a WordPress 2.3 blog, the permalinks work fine.
    But when I install the script (exactly the same code) on a website that has a WordPress 2.5 or 2.6 blog, the permalinks don’t seem to work anymore.

    I mean when I hover over the links, I’m getting something like “http://www.site.com/blog/?p=46″ while I would like it to be something like “http://www.site.com/blog/post-title-here/” with “post-title-here” being the title of the Post and URL that’s being used in WordPress.

    If this would work also with the newer WordPress versions, that would be great! It would be a good help for SEO-reasons.

    Since it’s working on the WordPress 2.3 blog and not in 2.5 or 2.6 I’m guessing that it must be something small that has been changed in WordPress or so?

  60. No 60 by
    Kevin

    Just a small clarification:

    The permalinks themselves are working fine, don’t get me wrong.
    What I mean is that the links are having the WordPress “default permalink structure” (for example “http://www.site.com/blog/?p=46″) while I have customized that structure in WordPress (Settings-Permalinks) to look like “http://www.site.com/blog/post-title-here/” with “post-title-here” being the title of the Post and the URL being the customized permalink that’s being used inside WordPress.

    Jamis’ script seems to provide the custom permalinks perfectly in WordPress 2.3 but in WordPress 2.5 or 2.6 it seems to provide the default permalinks (without keywords).

    I have been searching for a solution for this but can’t find any…
    Any help would be greatly appreciated!

  61. Charlie,
    just change ”
    Here are ” and should be “

  62. No 62 by
    jamis

    Kevin: Thanks for the specific feedback. That will help with my troubleshooting efforts.

  63. I have been trying to use this useful code but keep getting this error message – Warning: mysql_connect(): Can’t connect to local MySQL server through socket ‘/usr/local/mysql-5.0/data/mysql.sock’ (2)

    I know my password and hostname etc is right. I understood there might be some thing wrong with mysql socket. How can i fix that?

    my blog is http://www.huntsvillepr.com-huntsville-alabama/

    thanks
    Earnest

  64. thanks, found the problem

  65. Well i have 1 database and i am using to sections. Jokes And SMS.

    And its showing me same posts.

    I want that, it will show jokes latest 5 post and SMS latest 5 posts.

    And one more thing thing that. I done everything fine. but its making this link..

    http://www.lahorimela.com/%E2%80%9Dhttp://www.lahorimela.com/sms%E2%80%9D

    So how i can solve this probelm

  66. No 66 by
    jamis

    Kevin said:

    The permalinks themselves are working fine, don’t get me wrong.
    What I mean is that the links are having the WordPress “default permalink structure” (for example “http://www.site.com/blog/?p=46″) while I have customized that structure in WordPress (Settings-Permalinks) to look like “http://www.site.com/blog/post-title-here/” with “post-title-here” being the title of the Post and the URL being the customized permalink that’s being used inside WordPress.

    @Kevin: I’ve now fixed this issue. The title should appear properly in WP 2.7. Not sure about the other versions. Let me know if you run into problems.

  67. No 67 by
    Sesso

    Great site.

  68. No 68 by
    Kenny

    (Just added the same reply at the Previous Article mentioned at top: http://www.bluebreeze.net/blog/?p=11)

    Wow, exactly what I was looking for! Thanks.

    But like Darrel (September 8th, 2008 at 4:11 pm), I too, wanted to pull X amount of posts from the Y category.

    It seems that the new WordPress table structure is a bit different, and post_category doesn’t work any more.

    So i good buddy of mine sent me the following query which works like a charm. Just use this with the rest of Jamis’s code:

    $query = “SELECT distinct ID, post_title, post_date, guid, post_content, post_name FROM wp_posts, wp_terms, wp_term_relationships WHERE wp_posts.id = wp_term_relationships.object_id AND wp_term_relationships.term_taxonomy_id = wp_terms.term_id AND post_type=’post’ AND post_status=’publish’ AND wp_terms.slug = ‘news’ ORDER by post_date DESC LIMIT 5″;

    Just replace wp_terms.slug = ‘news’ in my example with the category slug you need.

    The category is represented by either ID, Name or Slug, so you can use which ever you like.

    For ID, use: wp_terms.term_id=’n’
    For Name, use: wp_terms.name=’Word or words’
    For Slug, Use: wp_terms.slug=’word-or-words’

  69. No 69 by
    Chab

    Thank you very much for this code. I can’t tell you how happy it made me.

    I also used a UNION SELECT thing to bring queries from multiple tables.

  70. No 70 by
    Kevin

    Hi Jamis,

    Thanks for trying to solve the permalink “issue”.
    I now indeed notice that the permalink-name is shown but it seems that the same name (from the first post) is shown for all posts.

    I don’t think I have done something wrong. Can you maybe check this?

    Thanks a lot!

  71. No 71 by
    jamis

    @Kevin: Thanks for pointing that out. I’ll take a look at it.

  72. No 72 by
    jamis

    @Kevin: That issue is fixed now. I had put a “0″ (shown here, selecting only the first result) where it should have been “$i” which would show each row’s result.

    $blog_permalink = $blog_url . mysql_result($query_result, 0, "post_name");

    My apologies. Thanks for pointing that out.

  73. No 73 by
    Nicholas

    Thank you so much for this script! I was able to use it with a previous hosting provider, but unfortunately, I changed hosts and the script does not seem to work.

    Please help!! – e-mail would be best

  74. No 74 by
    JHMac

    Did your database log in info change with hosts? If not, is the url different now?

  75. No 75 by
    jamis

    What sort of error message are you getting?

  76. is it possible to have a side bar(with previous posts) too.. and when clicked on them, the main post is changed..??!!!

  77. No 77 by
    lavsj

    How does one strip the html tags from the wordpress post before bringing it into my external site. I want it to use the external sites’ css.

  78. Oh,,, Wow thank you very much. This help me a lot.

  79. No 79 by
    MIke S

    Can this code be used to pull in the most recent posts from multiple blogs, all hosted on the same server, each in a separate subfolder, each using its own database? I am curious because you mentioned that the first code block has to go “BEFORE the Doctype (so the very first of your HTML)”. I was going to put the code for each database in a separate div but that comment has me curious.
    TIA,
    Mike

  80. No 80 by
    Emre

    Viewing the first issues. How do I show the last topics?

  81. there is no place to put my localhost information in this code and i keep getting an error Warning: mysql_connect() [function.mysql-connect]: Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) in……on line 10
    Unable to select database

    I don’t know how to resolve this the info on the page since it can’t connect to the database.

    I have a wordpress site and i’m trying to display the 5 recent posts from one wordpress site, in the template of another

  82. No 82 by
    nikki

    @Nikbanks-
    I keep getting the same error message. Were you ever able to resolve the issue?

  83. No 83 by
    Dayal

    Hi,

    Do you have any examples of also showing comments alongside any blog posts. For example: If blog post contains approved comments, show comments, comment user id, etc otherwise only show blog post

  84. No 84 by
    Carlos

    I’m having some trouble with adding an author and a time of post.
    How would I do this.

    Also it’s only outputting on post not 5.

  85. No 85 by
    Gemma

    Does the code work if the blog is hosted in a different server that the website?

  86. No 86 by
    jamis

    @Gemma,

    It should. You just need to replace “localhost” (as the location of the DB) with the IP address of the DB server. Most Cpanel admin panels have the IP address of the DB server listed there.

  87. No 87 by
    darrian

    So I have an external site with an folder that represents where wordpress is running from and I’m presented with 2 problems:

    1. the owner currently makes the blog pages as a way of updating content within pages within the external website. My problem is: the external site is not able to format the post data (coming directly out of word press’s database) the same way word press does. Should the owner switch to WYSIWYG mode from HTML editor (within wordpress)??? If so, what CSS technique might I implement to format the external site properly (given the 20 or so different options that exist within word press editor).

    2. Another problem I have is, the external site seems to substitute strange ascii characters for single quotes, double quotes and dashes. I’m working with php, but I am unsure of how to problem display these characters as they are represented within the database.

    Looking forward to any and all responses.

    thank you.

  88. No 88 by
    jamis

    @Darrian,

    This question doesn’t seem to have anything to do with this post. I’d suggest going to http://www.stackoverflow.com and posting your questions there. You’ll likely find help.

  89. No 89 by
    Ajay

    how to add the_excerpt() for showing only the first 50 characters

  90. No 90 by
    LynnB

    So after much confusion I have found this post and used it to make my website.html with a blog headline box – but now I want to make it pretty. I am using CSS for my format. What should I add/change to adjust the font size, style, etc of the headlines?

Add Your Own