PHP Zone,Wordpress Zone

How to use WP_Query to retrieve any number of posts ?

19 Nov , 2015  

WP_Query is a class defined in wp-includes/query.php that deals with the intricacies of a post's (or page's) request to a WordPress blog. The wp-blog-header.php (or the WP class in Version 2.0) gives the $wp_query object information defining the current request

, , , , , , , , , , ,

PHP Zone

How to use a switch case in PHP?

2 Nov , 2015  

The switch statement is similar to a series of IF statements on the same expression. In many occasions, you may want to compare the same variable (or expression) with many different values, and execute a different piece of code depending on which value it equals to. This is exactly what the switch statement is for.

, , , , , ,