Phpplanet - phpplanet.org

General Information:

Latest News:

Grab content from nested tags, Div in PHP 18 Jul 2013 | 12:16 pm

include(‘simple_html_dom.php’); function nestedHTML($node) { $doc = $node->ownerDocument; $frag = $doc->createDocumentFragment(); foreach ($node->childNodes as $child) { $frag->appendChild($chi...

How do I change the author of a custom post type? 12 Jun 2013 | 11:03 am

The edit author attribute is not added by default in for custom post types. To add the author attribute the following code is required: please add this code to function.php in theme folder. function a...

Wp-admin blank page 23 May 2013 | 04:14 pm

Please  delete  blank spaces at the top and bottom of functions.php in your theme folder…

Parse PHP on HTML page PHP5 26 Apr 2013 | 04:18 pm

open .htaccess file and paste this code on top. SetHandler application/x-httpd-php5

HOW TO SHOW YOUR WORDPRESS POSTS/PAGSE ONLY TO REGISTERED USERS? 22 Apr 2013 | 02:23 pm

Add this code to Functions.php file in theme folder. $subRole = get_role( ’subscriber’ ); $subRole->add_cap( ’read_private_posts’ ); $subRole->add_cap( ’read_private_pages’ );   and make post or page ...

No Follow WordPress Tags 31 Jan 2013 | 05:16 pm

PLease add this code in function.php file from your active Theme folder   function szub_nofollow_tag($text) { return str_replace(‘

css for ebay listing 18 Jan 2013 | 11:11 am

For ebay listing .. we have to use Inline CSS. every style need to write in component itslef …. no class is used there. I did some poking around to find a good solution for making CSS inline and I fou...

How to redirect any URL to lowercase URL? 13 Dec 2012 | 06:28 pm

To implement such redirect using mod_rewrite and .htaccess you need to use RewriteMap directive which cannot be placed in .htaccess — only in server config / VirtualHost context. If you have such acce...

Get Folder name 16 Jul 2012 | 02:16 pm

Hoe to get folder name from current page Use this function function getCurrentDirectory() { $path = dirname($_SERVER['PHP_SELF']); $position = strpos($path,’/') + 1; return substr($path,$position...

Select All checkboxes from array 10 Jul 2012 | 07:22 pm

Recently parsed news:

Recent searches: