3 column post in WP

March 29, 2011 on 6:10 pm

I have been trying to search a code that would display a WordPress Post in 3 columns. But I haven't found any of it that actually works the way I want it to be.. So I decided to create my own 3 column WordPress Post. Here it is: <table border="0" cellspacing="10" cellpadding="0" align="center"> <?php // You can change the cols ...

Remove the index.php on WordPress permalink

April 23, 2010 on 8:19 pm

Using FTP go to the main directory of your website. public_html folder. Download .htaccess .. Back it up. Then delete .htaccess on your directory. Then go back to the PERMALINK setting, and change it. Then upload your .htaccess again. Everything should work. BUT If it doesn't work... Put this code on your .htaccess file <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond ...

WordPress Tips: How to query post title and excerpt using PHP

April 18, 2010 on 9:18 am

I was working on a client's website, which was running on WordPress and he was using ShopperPress on that site. And he also have one separate website for his main website. Now he wanted me to pull some data on the other site (with the ShopperPress) and put it on the home page of his main website. Now what ...

Hide Your Online Status on Facebook Chat from a Selected Contacts

April 17, 2010 on 7:15 pm

If you are connected with too many people on Facebook and need to hide your online status on Facebook Chat from certain contacts, here’s some help. Facebook has integrated friends list with Chat and you can also choose which of these list members get to see you online. So you can stay visible to ...

WordPress Tips: Shorten the title of posts

on 7:01 am

Create or open the functions.php in your wordpress templates folder. We will add a function which makes all the work for us everytime we will need it. FIND <?php ADD BENEATH function ShortenText($text) { $chars_limit = 100; $chars_text = strlen($text); $text = $text." "; $text = substr($text,0,$chars_limit); $text = substr($text,0,strrpos($text,' ')); if ($chars_text > $chars_limit) { $text = $text."..."; } return $text; } Now we add a little code to the ...

The_Excerpt Length

on 2:18 am

I found a small yet very useful code for controlling the length of the_excerpt on WordPress. <?php if ($post->post_excerpt != "" ) { the_excerpt(); } else { the_content_rss('', FALSE, '', 26); } ?> Replace 26 for the numbers of  words to display on your excerpt. Also check out Word Count Tool .

cURL Page Scraping Script

on 2:06 am

Using cURL and page scraping for specific data is one of the most important things I do when creating databases. I’m not just talking about scraping pages and reposting here, either. You can use cURL to grab the HTML of any viewable page on the web and then, most importantly take that data and pick out the ...