Unlike Blogspot, Wordpress gives you a nifty way to show a excerpt of you story on the home page. This is very useful when you would want to show multiple stories on the home page, trying to accommodate as many above the fold.
Here's a quick primer on how to do this.
There are two modes in the edtior viz. Visual and 'HTML Code'.
If you are in visual code, then click this button, look at illustration, to insert a 'break point'. This would ensure that wherever multiple stories are displayed, only the part which is before break-point would be shown.
Same thing can be achieved by clicking [more] button if you are in 'HTML Code'.
Hope this is useful for fellow bloggers.
Monday, February 02, 2009
How to put 'More' Tag in a Word Press Powered Blog Post
Posted by
Nandan Jha
at
2:11 PM
0
comments
Saturday, November 29, 2008
Posting in Hindi on Word Press
Its been a while I had this travel blog site called www.ghumakkar.com and for some reason or the other, I was not able to post a story in Hindi. I looked around but found no help. While hunting around, I could see numerous blogs in Hindi and a lot of them were on Word Press and that made the life more difficult. I asked around and somehow it worked for everyone except me.
Then one day, after a ghumakkar asked me this question again, I hunted again and could finally fix the issue. I found the answer here. So I thought that I would probably write a small post detailing the solution since the above forum post can be a little cryptic.
Problem - I am able to get Hindi Text and when I paste it in Word Press Post, it appears fine, but when I save the post it becomes '?????'.
Solution - The relevant property of the SQL fields which decide the encoding for the post body doesn't have the right 'collation' property.
Solution in Detail
If your problem is exactly what I have described about then you can do following. This actually means tinkering with your Word Press database so I would advise against getting adventurous.
Do Following.
1. Find a tool which gives access to your database. In my case its phpMyadmin since I am on www.hostmonster.com.
2. Once you are inside phpMyadmin, click on the relevant database of the wordpress installation. If you have just one site and only one WP then just choose the one which you see. The typical name in the default installation is something like '_wrdp1'.
3. Once you click the database, you would see a list of tables.
4. One by one, Choose the following tables
- wp_option
- wp_comments
- wp_posts
and click 'Edit'.
In Editing mode change "Collation" setting to "utf8_unicode_ci" of following
1. in wp_option -> option_value
2. in wp_comments -> comment_content
3. in wp_posts -> post_content and post_title
Hope this works for you. Happy Blogging.
Posted by
Nandan Jha
at
1:42 PM
1 comments
Sunday, October 26, 2008
Troubleshooting "Header Image Rotator plugin" for Wordpress!
For a while I was looking at a way to change the photos on my travel experience site with least effort. Not that I finally found a good answer but I did find a WP Plug-In which seemed to be doing the job. This plug-in is called "Header Image Rotator plugin for Wordpress!" and here's the website of the author.
So I quickly downloaded and set it all up but it didn't work. Then I put a post at the forum but unfortunately I didn't hear back. I searched around and I could not find any answer.
At the same time my brother-in-law and myself were thinking about it, not the plug-in but about the fact that we should write the necessary code to change header-photos on its own. So recently both of us sat together and thought that before we write a new piece of code,lets see if we can fix this wp image rotator plug-in. We were doing everything as per manual but somehow it was not working.
Let me give a brief of how this plug-in works.
1. Normally any WP template, worth its salt, would have a style-sheet.
2. Typically they would have a header-image.
3. Header-image will have its own div or its own descriptor in the .css file.
4. Normally, header.php file would be using this div to set the header-image.
5. When we use this plugin we copy certain photos at a location and then tell the plugin the div which the header.php is using.
6. Ideally, the plug-in would replace the div with its own code.
After not making any headway, we though about looking at the executed code which the browser was getting. So we loaded the home page on a browser and did 'View Source'. What we found was that the plug-in was indeed setting the right div to a random image but after that statement, the original template was again setting the same div to what it usually sets, so what was indeed happening was
1. Plugin sets a random image from your collection as header-image
2. Then, the original template sets the default or what-so-ever header-image to that div.
End result is that for a user, the world is all same.
Here's how we fixed it
1. We copied the style-sheet div section of the header-image in the .css file and created another one with a different name. In my case the header-image css was
2. In plug-in settings, I mentioned
3. In header-php, we used
And Voila it worked.
If you are having some problems here, you can try your luck by doing above.
Posted by
Nandan Jha
at
7:35 PM
5
comments
Monday, August 25, 2008
How to insert Photos in Wordpress 2.5
I have this travel website which is powered by Wordpress 2.5 and occasionally I get queries around adding a picture to a post. So I thought that I would write a small primer which may be helpful for a wider community.
1. Collect all your photos in one single folder on your local machine. This would save you time when you are uploading since you wont have to pick and choose. So if you have shot 80 photos (just 80) on your last trek, and if you want to share 10 (just 10) then identify these 10 photos and copy them in some temporary folder. Remember to copy these 10 files, and dont move them. Always keep your originals safe.
2. Once done, re-size them using some Image Editor program. Usually pictures shot from a digital camera are pretty heavy, large in size. The actual size depends upon the site design. For Ghumakkar, 500 pixels BY 350 pixels look good. This would help to have your story come up quickly. In general choose something like 1024 X 768.
2.1 In Windows XP and Windows Vista, select all these photos, do a right click of mouse and choose 'E-mail'. You would get an option to resize. Choose 1024 X 768. After a while you would notice that all the pictures have been attached to an e-mail message. Select all of them, Right click, copy, paste in the original folder.
I am attaching the screen shots for Vista. On XP, it would be similar though it might look a little different.
Select all the pictures. Right Click and choose e-mail
Choose a lower size like 1024 X 768
Attaching to an E-mail
I use Microsoft Outlook for e-mails. So here's how it looks.
2.2 Download a free s/w like Google Picasa or Adobe Photoshop Album Starter Edition and use it to resize.
Google Picasa - Click here
Adobe S/w - Click here
Even if you dont do this step, you would still be able to move ahead, its just that it would make the page heavy and readers of your story would need to wait a little extra time to view all the pictures.
3. Now lets come back to 'Compose' window under 'Write'. click the 'Add Photo' icon which is just after 'Add Media' in the top icon-toolbar.
Click this button.
You would get a new window. Click 'Choose Files to upload'. Select all the files in the folder where you have copied all the pictures in step1. The window would look like this
Now you are done with uploading all the files.
If you would notice then there are three options on the top in the above window, viz.
1. Choose Files
2. Gallery
3. Media Library
First is for adding more files. 2nd is for accessing the files associated with current post and library is for all the files which you have uploaded so far.
Now go to 'Gallery' and then click 'Show' against the file which you want to insert.
Add a relevant caption , notes. Choose a size. For Ghumakkar I would recommend that you choose 'Full Size'. Word Press Administrator can control this size. And you are done.
There is another good feature in WP which is about 'Inserting a Gallery' and I would briefly talk about that later but as of now, we are done as far as inserting a picture is concerned.
Let me know if this write-up is missing or confusing or could benefit from some more clarity. I would act on that and would try to improve it. Of course, if its works for you then leave a happy comment. So enjoy and happy photo-showing at your next WP Post.
Posted by
Nandan Jha
at
12:00 PM
3
comments
Labels: WP