Hi i xHtml/CSS my psd files , PHP/MySql it's back-end and jQuerify it's interactive effects


Sep 05

Tips

[Tip] Check if category has children

If you looking forward checking if a certain category has children or not , simply do this

	$categories = get_categories( "parent=$cat_id&hide_empty=0" );
	if(empty($categories)) {
		// what if has no children
	} else {
		// what if has children
	}

don’t forget replacing $cat_id with the category id you want to check .

Share |
Sep 02

Tips

[Quick Tip] target=”_blank” fix for xHTML1.0 strict

Maybe you faced this or you may face the problem of using target = “_blank” while working with xHtml1.0 strict doctype as the W3 validator won’t validate because target = “_blank” is not support .. so replace target = “_blank” with this javascript code

onclick="return ! window.open(this.href);"
Share |
Jun 08

Wordpress

[Custom Function] Get Posts by Author ID

If you are trying to get posts for a certain author/user , unfortunately there is no function offered by wordpress to do this so i wrote this function to help you do this
Read More ….

Share |
Feb 09

News

Egypt Protests Map by GOOGLE

Egypt Protests Map

Egypt Protests Map

the map contains a map for protests all around egypt with a focus on tahrir square , egypt hospitals , blood donations center and more .

Share |
Jul 29

Tutorials, Wordpress

Support WP3.0 Custom Menus

wordpress 3.0 custom menus
The new wordpress 3.0 custom menus feature is one of the best newly added features to wordpress that gives you more control on your menus every where on your web site .
Wordpress new custom menus works in simple two steps .

Read More ….

Share |

Copyright © 2012 Banhawi & web design egypt