Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Special Projects Featured Content: undefined variable $opt #107

Open
benlk opened this issue Nov 11, 2019 · 0 comments
Open

Special Projects Featured Content: undefined variable $opt #107

benlk opened this issue Nov 11, 2019 · 0 comments

Comments

@benlk
Copy link
Collaborator

benlk commented Nov 11, 2019

switch ( $opt['post_order'] ) {
case 'ASC':
$args['orderby'] = 'ASC';
break;
case 'custom':
$args['orderby'] = 'series_custom';
break;
case 'featured, DESC':
case 'featured, ASC':
$args['orderby'] = $opt['post_order'];
break;
}

Notice: Undefined variable: opt in /wp-content/themes/citylimits/inc/widgets/class-citylimits-special-projects-featured-content-widget.php on line 89

I think the only thing this affects is whether the widget is affected by the series' options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants