<a href="<?php the_permalink(); ?>"> <?php the_title(); ?></a>
The above is the code snippet from one of the widgets of my theme.
Now in the widget arrangement, this is the situation →
$instance['number_of_words'] = absint( $new_instance['number_of_words'] );
the above setting is to handle how many numbers of words do we wish to show in the title?
how should we pass this variable
<?php the_title(); ?>