Using WordPress wp_nav_menu function you can display navigation menus on your site nicely. You can even add the separators between each navigation menu. It can be done by passing these arguments either “link_before, link_after” or “before, after” to your wp_nav_menu funtion. However, you might face the problem with adding separators between each navigation menu. Continue reading
You can change the WordPress login page logo in two different ways.
First method (Unrecommended)
Override the logo-login.gif from wp-adminimages folder with your custom logo.
It will changed back to the old one when you upgrade your WordPress to another version.
Second method (Recommended)
By using below code, not even login page logo but also you can change your login page to something completely different. Continue reading
This is my first own widget after writing a lot of plug-in and widgets for my company. This widget is all about to display the latest posts from all blogs in WordPress 3.0 multisite enabled site.
Below are a bunch of WordPress functions which will let you add your own admin menu to WordPress admin panel.
// add top level menu
add_menu_page(page_title, menu_title, capability, handle, [function], [icon_url]);
// add sub-menu pages
add_submenu_page(parent, page_title, menu_title, capability, file/handle, [function]);
// add Options sub-menu
add_options_page(page_title, menu_title, capability, handle, [function]);
// add Management sub-menu
add_management_page(page_title, menu_title, capability, handle, [function]);
// add Pages sub-menu
add_pages_page( page_title, menu_title, capability, handle, [function]);
// add Posts sub-menu
add_posts_page( page_title, menu_title, capability, handle, [function]);
// add Appearances sub-menu
add_theme_page( page_title, menu_title, capability, handle, [function]);
Some time you would like to increase the max upload file size in WordPress back-end but no access to php.ini file. This is not the end of the world. Actually, you can still increase the upload file size by editing .htaccess file. Just need to add the below code to your .htaccess which is located in the root folder of your WordPress install.
[code]php_value upload_max_filesize 8M[/code]
Note: Change 8 to your desired upload limit amount.
There are a lot of conditional tags you can use out of the box. But some need to be declared in your functions.php file. To use is_subpage() conditional tags, you need to declared it in your functions.php. This tag is to test whether current page is a child of another page. Here is the code, Continue reading
For the WordPress theme developers sometime we need to know the current page’s or post’s parent ID. For example to list down the child pages list of the current page and this listing will show differently on the different pages. So we need to know the page’s or post’s parent ID. There is only a couple lines of code to get the parent ID.
$parent_ID = $post->post_parent;[/code]
You can now run multiple blogs from one installation of WordPress. This new feature is called Network or Multi-site. The problem is how to enable it. Here is how!
First you need to enable the Network Settings. To do so add below code to your wp-config.php which is located at the root folder of your wordpress. Continue reading