Author Archive

A description for this result is not available because of this site’s robots.txt

Here we have lot of possibilities but solutions as following.

Solution1: Remove total robots.txt and add following robots.txt

User-agent: *

Solution2: Check weather urls contain ‘/’ at end , then your web master tool will treat your urls as directories.

Incorrect Url:

Correct Url:


Best PHP Framework for Custom Application Development



Started: 2008

License: BSD

Yii was founded by a developer of Prado and it continues many of its conventions. Yii is very fast (leading in most benchmarks) and extensible, modular, and strictly object oriented. It has a rich set of features and decent documentation. It uses no special configuration or templating language, so you don’t have to learn anything apart from object-oriented PHP to use it. Also, unlike many other frameworks, it follows pure MVC architecture with data being sent directly from Model to View.

Moodle Data Error: Data Root is Invalid

This issue May cause with following scenarios:
Issue: In config file $CFG->dataroot is not setup.
Solution: Create a directory and configure in config file.

Issue:  moodledata not writable.
Solution: Check for moodledata directory in config file and make it writable with apache 777 permissions.

Issue: Object is becoming non object.
Solution: Issue is with php 5.3.2 version by upgrading php version  we can fix this issue.

Create Custome post type

As usually creating custom post type in wordpress is very simple. Just get into the follow post
1. for the first step just open function.php in your theme(U can find this one in your theme directory)
2. Add the following code to that file(function.php)

add_action( 'init', 'create_post_type' );
function create_post_type() {
	register_post_type( 'acme_product',
			'labels' => array(
				'name' => __( 'Products' ),
				'singular_name' => __( 'Product' )
		'public' => true,
		'has_archive' => true,

That’s it u can find new custom post type in wp dashboard..
U have another option like plugin
With the following plugin also u can create custom post

Find WordPress Category ID

In Simple Way you can find Category ID in WordPress
1. Login into wordpress admin Panel
2. Goto Manage Categories Page
3. Simply Edit category which you want to find the ID
4. Find URL : https://urdomain/wp-admin/edit-tags.php?action=edit&taxonomy=category&tag_ID=647&post_type=post
5. tag_ID=647 is the category ID

Disable Categories from WP RSS

To continue this process you must know the ID of category(find Category ID)
once you find the category Id which you want to exclude from your RSS follow steps
1. Open Function.php which you can find in your theme directory. If your theme doesn’t have , create one
2. Create filter like the follwing Way

function myFilter($query) {
if ($query->is_feed) {
//Don’t forget to change the category ID =^o^=(in this 5 is the ID.) Keep ‘-‘ before the cat ID
return $query;

This filter excludes category from feed
3. Apply this filter to your Theme using ‘add_filter’ function


Create Custom Widget

class ktree_rsssocial_Widget extends WP_Widget
function ktree_rsssocial_Widget()
global $themename;
parent::WP_Widget(false, ‘ktree – Rss Social Media Widget’);

function widget($args, $instance) {
$faccount = $instance[‘faccount’];
// $msaccount = $instance[‘msaccount’];
$twaccount = $instance[‘twaccount’];
$ytaccount = $instance[‘ytaccount’];
$title = $instance[‘title’];

echo $args[‘before_widget’];
echo $args[‘before_title’] . $title . $args[‘after_title’];


  • <a target="_blank" href="”>
  • <a target="_blank" href="”>

<label for="get_field_id(‘title’); ?>”>
<input style="width: 200px;" id="get_field_id(‘title’); ?>” name=”get_field_name(‘title’); ?>” type=”text” value=”” />

<label for="get_field_id(‘faccount’); ?>”>
<input style="width: 200px;" id="get_field_id(‘faccount’); ?>” name=”get_field_name(‘faccount’); ?>” type=”text” value=”” />

<label for="get_field_id(‘twaccount’); ?>”>
<input style="width: 200px;" id="get_field_id(‘twaccount’); ?>” name=”get_field_name(‘twaccount’); ?>” type=”text” value=”” />

<label for="get_field_id(‘ytaccount’); ?>”>
<input style="width: 200px;" id="get_field_id(‘ytaccount’); ?>” name=”get_field_name(‘ytaccount’); ?>” type=”text” value=”” />




add_action('widgets_init', create_function('', 'return register_widget("ktree_rsssocial_Widget");'));