How to add pagination in wordpress

Many times adding the custom pagination in wordpress blog is very important. Adding custom pagination in wordpress blog is good. In this article, we will show you, How to add pagination in wordpress with plugin and without wp plugin

How to add pagination in wordpress

  • Simple WordPress Default pagination

You need to open the your index.php file from wordpress theme and put following code in that file.

<div class="navigation">
<div class="alignleft"><?php next_posts_link('Previous') ?></div>
</div>
<div class="alignright"><?php previous_posts_link('Next') ?></div>

If you want the pagination in single post then you can use the following code:

<?php next_posts_link($label , $max_pages); ?>
<?php prev_posts_link($label , $max_pages); ?>

More pagination style visit above URL: wordpress pagination style without wordpress plugin

There are some very nice wordpress plugin available for wordpress pagination.

How to add pagination in wordpress
How to add pagination in wordpress

PageNavi wordpress plugin is really nice. I personally like this plugin so much. With this plugin you can apply your custom css also.

  • Changing the CSS

If you need to configure the CSS style of WP-PageNavi, you can copy the pagenavi-css.css file from the plugin directory to your theme’s directory and make your modifications there. This way, you won’t lose your changes when you update the plugin.

Alternatively, you can uncheck the “Use pagenavi.css?” option from the settings page and add the styles to your theme’s style.css file directly.

25 incredible free themes for firefox browser

Here we collected unique 25 incredible free themes for firefox browser. Firefox is famous web browser and it is growing fastest day by day. I did research on firefox themes and I rounded up themes for our visitors. I hope you’ll like these themes if yes then you can leave your comments about which one you like.

25 incredible free themes for firefox browser

T hank You!

Strata40

25 incredible free themes for firefox browser
25 incredible free themes for firefox browser

………………………..

Chromifox Extream Cerbon

………………………..

AvantGrade Rosepetal

………………………..

ArzoFox Firefox Theme

………………………..

Go Green

………………………..

MidnightFox

………………………..

myFirefox

………………………..

Fox World Firefox Theme

………………………..

Halloween

………………………..

rein

………………………..

Oskar

………………………..

Arctic Glow

………………………..

AvantGrade Mist

………………………..

Dark Orange Fox

………………………..

Walnut2 for Firefox

………………………..

Super Mario Bros.3 Firefox theme

………………………..

Charamel Firefox theme

………………………..

Gradient iCool (Blue)

………………………..

Mac OS X Theme

………………………..

MushroomKingdom 2

………………………..

PitchDark Firefox Theme

………………………..

WalNut Firefox Theme

………………………..

ANTHEM

………………………..

HalloFF

………………………..

Red Cats (green flavor)

………………………..

how to insert php code in wordpress post

Some time we need to execute and use the php code in wordpress post and page. There is solution for inserting the php code in to wordpress post.

how to insert php code in wordpress post.

 

how to insert php code in wordpress post
how to insert php code in wordpress post

I found very useful wordpress plugin for that. But my advise is don’t use this plugin ever try to put your php code as possible in wordpress theme.

Exec-PHP

The Exec-PHP plugin executes PHP code in posts, pages and text widgets.

Features:

  • Executes PHP code in the excerpt and the content portion of your posts and pages
  • Configurable execution of PHP code in text widgets (for WordPress 2.2 or higher)
  • Write PHP code in familiar syntax, eg. php ... ?>
  • Works in your newsfeeds
  • Information about which users are allowed to execute PHP with the current security settings (for WordPress 2.1 or higher)
  • Configurable user warnings for inappropriate blog and user settings (for WordPress 2.1 or higher)
  • Restrict execution of PHP code in posts and pages to certain users by using roles and capabilities
  • Update notifications through the ‘Plugins’ menu in WordPress if a new version of the Exec-PHP plugin is available (for WordPress 2.3 or higher)
  • Internationalization support (english and german included, many more available)
  • Comes with documentation

Inline PHP

The plugin can execute php string in posts/pages, and display the output as the contents of posts/pages. Just quote what you want to execute in <exec>...</exec> or [exec]...[/exec] tag.

You can put the php code in post following way.

       $filestr = file_get_contents('http://www.seocompany.ca/pagerank/page-rank-update-list.html');
       if (preg_match('/</pre>
.*<\/p>/ums', $filestr, $matches)){
           echo str_replace("

<a href="\&quot;#page-rank-update-list-history\&quot;">Top of Page Rank Update List History</a>
<pre>", "", str_replace("", "", $matches[0]));
       }
   

code syntax highlighter through wordpress plugins

When ever we write some code in post. That code need to visible very easily. Here are some code syntax highlighter through wordpress plugins which will be useful for developers and coders. There are some useful wordpress plugins for highlighting the code in wordpress post.

code syntax highlighter through wordpress plugins
code syntax highlighter through wordpress plugins

 

code syntax highlighter through wordpress plugins

While WordPress.com doesn’t allow you to use potentially dangerous code on your blog, there is a way to post source code for viewing. We have created a shortcode you can wrap around source code that preserves its formatting and even provides syntax highlighting for certain languages, like so:

To accomplish the above, just wrap your code in these tags:

 your code here
 

The language parameter controls how the code is syntax highlighted. The following languages are supported:

  • actionscript3
  • bash
  • coldfusion
  • cpp
  • csharp
  • css
  • delphi
  • erlang
  • fsharp
  • diff
  • groovy
  • javascript
  • java
  • javafx
  • matlab (keywords only)
  • objc
  • perl
  • php
  • text
  • powershell
  • python
  • ruby
  • scala
  • sql
  • vb
  • xml

If the language parameter is not set, it will default to “text” (no syntax highlighting).

Code in between the source code tags will automatically be encoded for display, you don’t need to worry about HTML entities or anything.

There are some free plugins also helpful for syntax highlighting.  I specially like the SyntaxHighlighter Evolved wordpress plugin. SyntaxHighlighter Evolved allows you to easily post syntax-highlighted code to your site without loosing it’s formatting or making any manual changes.

You can download this plugin form here:

SyntaxHighlighter Evolved

There is another plugin for syntax highlighting which also really nice.

WP-Syntax provides clean syntax highlighting using GeSHi — supporting a wide range of popular languages. It supports highlighting with or without line numbers and maintains formatting while copying snippets of code from the browser.

It avoids conflicts with other 3rd party plugins by running an early pre-filter and a late post-filter that substitutes and pulls the code snippets out first and then pushes them back in with highlighting at the end. The result is source code formatted and highlighted the way you intended.

You can download the this from here:

WP-Syntax

50+ free movie wallpapers for iphone

In today’s life iPhone is a wonder thing for us. Many people want to new and beautiful wallpapers for look iPhone good. Here we selected Free movie wallpapers for your iPhones. I hope you’ll like these cool wallpapers.

50+ free movie wallpapers for iphone

 

50+ free movie wallpapers for iphone
50+ free movie wallpapers for iphone

 

free-movie-wallpapers-for-your-iPhone-2 free-movie-wallpapers-for-your-iPhone-5 free-movie-wallpapers-for-your-iPhone-6 free-movie-wallpapers-for-your-iPhone-7 free-movie-wallpapers-for-your-iPhone-11 free-movie-wallpapers-for-your-iPhone-12

50+ free movie wallpapers for iphone
50+ free movie wallpapers for iphone

free-movie-wallpapers-for-your-iPhone-14 free-movie-wallpapers-for-your-iPhone-15 free-movie-wallpapers-for-your-iPhone-16 free-movie-wallpapers-for-your-iPhone-17 free-movie-wallpapers-for-your-iPhone-18 free-movie-wallpapers-for-your-iPhone-19 free-movie-wallpapers-for-your-iPhone-20 free-movie-wallpapers-for-your-iPhone-21 free-movie-wallpapers-for-your-iPhone-22 free-movie-wallpapers-for-your-iPhone-23 free-movie-wallpapers-for-your-iPhone-24 free-movie-wallpapers-for-your-iPhone-25 free-movie-wallpapers-for-your-iPhone-31 free-movie-wallpapers-for-your-iPhone-29 free-movie-wallpapers-for-your-iPhone-27 free-movie-wallpapers-for-your-iPhone-26 free-movie-wallpapers-for-your-iPhone-28 free-movie-wallpapers-for-your-iPhone-32 free-movie-wallpapers-for-your-iPhone-34 free-movie-wallpapers-for-your-iPhone-35 free-movie-wallpapers-for-your-iPhone-36 free-movie-wallpapers-for-your-iPhone-38 free-movie-wallpapers-for-your-iPhone-39 free-movie-wallpapers-for-your-iPhone-40 free-movie-wallpapers-for-your-iPhone-42 free-movie-wallpapers-for-your-iPhone-44 free-movie-wallpapers-for-your-iPhone-43 free-movie-wallpapers-for-your-iPhone-52 free-movie-wallpapers-for-your-iPhone-51 free-movie-wallpapers-for-your-iPhone-49 free-movie-wallpapers-for-your-iPhone-47 free-movie-wallpapers-for-your-iPhone-46 free-movie-wallpapers-for-your-iPhone-9 free-movie-wallpapers-for-your-iPhone-8 free-movie-wallpapers-for-your-iPhone-4 free-movie-wallpapers-for-your-iPhone-3 free-movie-wallpapers-for-your-iPhone-54 free-movie-wallpapers-for-your-iPhone-10 free-movie-wallpapers-for-your-iPhone-30 free-movie-wallpapers-for-your-iPhone-33 free-movie-wallpapers-for-your-iPhone-37 free-movie-wallpapers-for-your-iPhone-41 free-movie-wallpapers-for-your-iPhone-55 free-movie-wallpapers-for-your-iPhone-53 free-movie-wallpapers-for-your-iPhone-50 free-movie-wallpapers-for-your-iPhone-48 free-movie-wallpapers-for-your-iPhone-45

Set these cool movie wallpapers on your iPhone & have fun!

Thabk You!

WordPress 3.0.1 is released

Today WordPress released the WordPress 3.0.1 version. You can download latest wordpress from follwoing link

WordPress 3.0.1 is released

Download

This maintenance release addresses about 50 minor issues. The testing many of you contributed prior to the release of 3.0 helped make it one of the best and most stable releases we’ve had.

Download 3.0.1 or update automatically from the Dashboard > Updates menu in your site’s admin area.

The latest stable release of WordPress (Version 3.0.1) is available in two formats from the links to your right. If you have no idea what to do with this download, we recommend signing up with one of our web hosting partners that offers a one click install of WordPress or getting a free account on WordPress.com.

Note: If you downloaded 3.0.1 in the first 20 minutes of release (before 2200 UTC), you’ll want to reinstall it, which you can do right from your Updates screen.

How do you get the Vanity URL in facebook account

Facebook launched the Vanity URL long back but still many of people don’t know how to do or use the vanity URLs in facebook and What is importance of unique url.
Personalized Urls are very much important your business or for your unique identity. I like personalized Urls very much.This is great to promote your website or blog or yourself through very personal URL.

How do you get the Vanity URL in facebook account

The question is how to get the personalized URLs in facebook. I logged in to my facebook account but I did not find any link or setting to get my vanity url or creating the personalized URL.

Here I am going to give you the steps for creating the vanity url in facebook:

First login to your facebook account and Hit the following URL:

http://www.facebook.com/username/

If your facebook account is old then you will got the options for choosing the your name in URL.

But your account is new then you will got the following webpage

How do you get the Vanity URL in facebook account
How do you get the Vanity URL in facebook account

You need to click on continue button and you need to put your mobile phone no in text box and hit submit button. Within 10 second you will get the sms about confirmation code. Put that code in text-area and click on verify button.

Now you can able to choose or create your vanity url in facebook.

My facebook vanity URL is http://facebook.com/purabkharat. Please do add me as your friend.

Top social networking sites

Social Networking is need of today’s world now. Everybody is busy with social networking sites in today’s date. There is very good impact and bad effect of being social. But we all are every time searching for which are the most popular social networking sites in the world.

Top social networking sites

In last month facebook crossed the google also in traffic. Facebook become no. 1 in the world. Here I am going to give you the list of top social networking sites of the world.

Facebook.com:

Was initially intended for college students — it branched out, and now allows everyone membership. 150 million members.

MySpace.com:

191 million members. This site is massive, boasting the largest membership of any social networking site on the Internet.

Linkedin.com:

12.5 million members — a powerful tool for business networking.

Friendster.com:

29 million members. Friendster was considered the top online social networking service until around April 2004, when it was overtaken by MySpace. Demographic studies indicate users are from 17 to 30 years old.

Stumbleupon.com:

Boasting 2.75 million users, StumbleUpon is a web browser plugin that allows its users to discover and rate webpages, photos, videos, and news articles. A great way to get website promotion. Bought by eBay for $75 million in May 2007.

del.icio.us:

The website del.icio.us (pronounced as “delicious”) is a social bookmarking web service for storing, sharing, and discovering web bookmarks. The site was founded by Joshua Schachter in late 2003, and is now part of Yahoo!.

digg.com: Digg is a website made for people to discover and share content from anywhere on the Internet, by submitting links and stories, and voting and commenting on submitted links and stories, in a social and democratic spirit.

Orkut.com: Orkut is an Internet social networking service run by Google and named after its creator, Google employee Orkut Büyükkökten. It claims to be designed to help users meet new friends and maintain existing relationships. Now has a membership of 57 million.

Twitter.com: A free social networking service that allows users to send “updates” (text-based posts that are up to 140 characters long) via SMS, instant messaging, email, the Twitter website, or an application such as Twitterrific. The site has become very popular in only a few months — a lot of people are watching it.

Classmates.com: 40 million members. One of the oldest social networking sites around, Classmates was kicked off in 1995, and has proven to be a great way for members to connect with old friends and acquaintances from throughout their lives.

Meetup.com: 2 million members. Meetup.com is an online social networking portal that facilitates offline group meetings in various localities around the world. Meetup allows members to find and join groups unified by a common interest, such as politics, books, games, movies, health, pets, careers or hobbies.

Yahoo! 360° (a.k.a Yahoo! Days) is a personal communication portal similar to orkut  and MySpace — it is currently in the beta-testing phase. It integrates features of social networking, blogging and photo sharing sites.

Xanga.com: 40 million members. Xanga is a free Web-based service that hosts weblogs, photoblogs, videoblogs, audioblogs, and social networking profiles.

Care2.com: 7.2 million members. Care2 is a social networking  website that was founded to help connect activists from around the world.

Ryze.com: .25 million members. Ryze.com is a free social networking website designed to link business professionals.

php convert unix timestamp to utc

If you want to convert the unix time formart in simple readable format.

php convert unix timestamp to utc

If you got Unix time from some where and you need to convert to simple format then use following code.

<?php
$unix_timestamp = 1280225046;
$date =   date("r",$unix_timestamp);

$readable_date = date("Y-m-d H:i:s", strtotime($date));
echo $readable_date;
?>

Following PHP date functions are useful:
date() is likely the most-used date function in PHP, it can generate the current date or a selected timestamp in a huge amount of probabilities. A table of all the string determiners is available here

mktime() has parameters, one for each setting for time: second, minute, hour, month, day & year. The 7th parameter is for day light savings however if this setting is left alone PHP will find out the DS hour itself. mktime() returns a timestamp for the parameters made.

strtotime() converts a string into a timestamp, if it can’t achieve this it’ll return -1 or false.

time() returns the current time to the closest second as a timestamp.

How to choose and Buy a Laptop

Laptops are very much important in today’s world. Many times we wonder how to choose and buy a new laptop. In this article we discuss about what we need to check in laptop and what types of questions we need to ask to shop owner.

How to choose and Buy a Laptop

First I would suggest to understand your requirement and where you are going to use the laptop. What kind of functionality or programs you are going to use on laptop. If you are targeting to do some very simple operation and going use for as a replacement of PC for some time then go for simple notebook.

If you are going to use laptop more frequently then you should check following things in your laptop before purchasing it.

CPU – CPU is more important part of computer. We can say that is heart of computer. Depending on that we can major how computer will perform. Now intel core I3 and intel core I5 processors. There are more options also with atom mobile processors they are cheap but still choice is yours.

RAM- Ram is also important for our laptop. More ram will give you more speed and faster and better result. If you are getting 3-4 GB of  ram with your laptop than that really good.

OS – If you are using 3-4 GB ram then you better use the 64bit operating system. That will give you really nice experience.

Graphics Card – Pre-graphic card will come with your laptops motherboard. Extra graphics card will be really nice and helpful. Because if you want to play some 3d and latest games then that is really nice.

Screen Size – Now laptops are becoming PC’s replacement So bigger screen size is recommended. Now these days we will got the 18 Inch bigger wide screen sized laptops.

Storage capacity: Minimum storage capacity these days is 250 gb hard drive and external DVD writer is must. If your laptop is not offering these functionality then don’t go for that.

Battery Life : Battery life is most important factor when it comes to laptops. don’t go for normal battery. Ask for extended battery is supported or not. Extended battery is must.

Wireless connectivity: wi-fi is most important feature in these days for laptop. If you don’t have wireless connectivity in your laptop then there is no use of laptop.

External connectivity : How many usb and other ports you are getting with our laptop that is very important.

Warranties & Support : warranty and support and service center that is most important part. you need to ask for where you get instant service and what is the call center numbers.