Hello all,
I'm new to the forums, and pretty new to web design—I'm running into a few issues with some custom widgets:
I'm building a "Student_Links_Widget" and I only want it to be displayed in the sidebar of a template page called "students".
My widget function is as follows:
function widget($args, $instance) {
extract($args, EXTR_SKIP);
//if (is_single()) {
echo $before_widget;
if ( !empty( $title ) ) {
echo $before_title . $title . $after_title;
};echo "HELLO";
//}
}
is_single works, and displays the content in the sidebar of a single post page, but is_page('students') does not work.
What am I doing wrong?
Thanks in advance,
Julian