Undefined index: category_icon_code in line 257 : <p>Hello I am getting Notice Undefined index: in line number 257.
Please help. 
Here is code for line number 257.</p>

<pre><code>$my_query = new wp_query( $args );
            while( $my_query-&gt;have_posts() ) {
                $my_query-&gt;the_post();
                global $postID;
                $current++;
                $category = get_the_category();
                $tag = get_cat_ID( $category[0]-&gt;name );
                $tag_extra_fields = get_option(MY_CATEGORY_FIELDS);
                if (isset($tag_extra_fields[$tag])) {
                    $category_icon_code = $tag_extra_fields[$tag]['category_icon_code']; 
                    $category_icon_color = $tag_extra_fields[$tag]['category_icon_color'];
                    $your_image_url = $tag_extra_fields[$tag]['your_image_url'];
                }
                if (empty($category_icon_code) || empty($category_icon_color) || empty($your_image_url)) {

                        $tag = $category[0]-&gt;category_parent;

                        $tag_extra_fields = get_option(MY_CATEGORY_FIELDS);
                        if (isset($tag_extra_fields[$tag])) {
                            if (empty($category_icon_code)){
                                $category_icon_code = $tag_extra_fields[$tag]['category_icon_code'];
                            }
                            if (empty($category_icon_color)){
                                $category_icon_color = $tag_extra_fields[$tag]['category_icon_color'];
                            }
                            if (empty($your_image_url)){
                                $your_image_url = $tag_extra_fields[$tag]['your_image_url'];
                            }
                        }

                    }
            ?&gt;
</code></pre>

<p>I am getting undefined index for these.</p>

<pre><code>$category_icon_code
$category_icon_color
$your_image_url
</code></pre>

<p>Thanks in advance.</p>
