WordPress SEO

The most important steps when you develop a wordpress site. Permalinks: The first thing I need to change is permalink structure. This is under Settings -> Permalinks. The default permalink is ?p=<postid>, But is not good for SEO. So I prefer to use custom structure  /%category%/%postname%/ Optimize My Titles: By default, the title for your […]

Read full story Comments { 1 }

List only folder in a given path by php

getDirectory(’../templates’); function getDirectory( $path = ‘.’, $level = 0 ) { // Directories to ignore when listing output. $ignore = array( ‘.’, ‘..’ ); // Open the directory to the handle $dh $dh = @opendir( $path ); // Loop through the directory while( false !== ( $file = readdir( $dh ) ) ) { // […]

Read full story Comments { 0 }

How to wordpress search is use to search WP e-Commerce products

Here i solve the problem Edit your search.php file in your template directory. Put code like bellow <div> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <?php ; the_content(”,FALSE,”); ?> <div></div> <?php endwhile; ?> <?php else : ?> <?php global $wpdb; // take search terms (check better use of escape later) $s […]

Read full story Comments { 0 }

Website Testing Checklist

 Web testing checklist: 1) Functionality Testing 2) Usability testing 3) Interface testing 4) Compatibility testing 5) Performance testing 6) Security testing 1) Functionality Testing: Test for – all the links in web pages, database connection, forms used in the web pages for submitting or getting information from user, Cookie testing. Check all the links: Test […]

Read full story Comments { 4 }

Believing in the laws of Shariah

Please consider it as an amicable sharing of Haqq (Truth) from the essence of brotherhood. This is important as it is directly concerning our Imaan (belief). As we find in the Qur’an: [4:11] … Indeed, Allah is ever Knowing and Wise. [65:12] It is Allah who has created seven heavens and of the earth, the like […]

Read full story Comments { 1 }

SMOKING CIGARETTE (Is not Makruh, rather it is Haram)

Medical science has concrete proof that smoking cigarette causes sever self-destruction. And Allah (SWT) says in the Qur’an: [Surah Baqara 2:195] And spend in the way of Allah and do not throw [yourselves] with your [own] hands into destruction [by refraining]. And do good; indeed, Allah loves the doers of good. Therefore, it is clearly […]

Read full story Comments { 3 }