Brett Wysocki
Forum Replies Created
-
Forum: Plugins
In reply to: [Analyticator] Please change your code and use wp_get_current_user()Bump.
It’s a simple fix, sick of my local error logs growing unnecessarily in size because of this.
Thanks.
Forum: Plugins
In reply to: [ICIT Weather Widget] Update 2.5I quickly wrote something after doing some digging, hopefully it helps someone:
// Check if ICIT Weather Widget is enabled if ( class_exists( 'icit_weather_widget' ) ) { $icit_option = 'icit_weather_appid'; $openweathermap_app_id = 'YOUR_APP_ID_GOES_HERE'; // Check if your app id is already set or not. if ( get_option( $icit_option ) != $openweathermap_app_id ) { // If not, set it. update_option( $icit_option, $openweathermap_app_id ); } }Forum: Plugins
In reply to: [ICIT Weather Widget] Update 2.5If you aren’t using the widgets, is there a way to implement the API Key sitewide for shortcodes? Or in the individual shortcodes? Not seeing anything in the documentation.
Forum: Plugins
In reply to: [CPT-onomies: Using Custom Post Types as Taxonomies] Updates are comingIt seems to be the version number in cpt-onomies.php didn’t get updated to 1.3.5.
https://github.com/bamadesigner/cpt-onomies/blob/master/cpt-onomies.phpOtherwise, it appears to have the new version sitting under the download button. The zip file reads 1.3.5 at least.
Thanks for all your work on this!
I sent a message through the channel you requested, I’m just going to add my two cents in debugging.
I just did some quick digging, and it appears the welcome.php in /admin/display/ folders are new in v2.3.9.2. I think the fallback on line 57:
wp_safe_redirect( add_query_arg( array( 'page' => 'aioseop-about' ), admin_url( 'index.php' ) ) );is the issue here, or the fact that it’s getting there at all. Again, take my novice code dive into your plugin with a grain of salt.
Thanks!
The theme is custom, we have ACF PRO, Gravity Forms, Jetpack, Google Analyticator, TinyMCE Advanced, and WP SMTP installed. By dashboard meta box, I mean the boxes that are displayed on the dashboard, image attached.

It appears to be an issue with your dashboard metabox. When it’s loaded, it appears to load the WP Admin dashboard sidebar as well. After clearing caches, I can move it around, but as soon as I click on anything, it brings me to a page that ONLY has your metabox and nothing else. I’ve tried to disable the metabox, but to no avail. I had to deactivate AIO SEO for now, will check again when it’s fixed.
Bug reported.
To clarify: The jQuery fails to enqueue at all using the wordpress enqueue script functions (wp_deregister_script, wp_register_script, wp_enqueue_script) when paired with the 2.0.57 version of this plugin. Everything else enqueued in this way shows up, but jQuery does not.
It appears as though if you have enqueued a version of jQuery in your theme, and have 2.0.57, no jQuery loads. This is a pretty big issue for me.
Quick solution is to comment out your jQuery enqueue lines in the functions file, but that shouldn’t be the long-term solution…
Alright, I got my version of it to work the way I needed to, using pre_get_posts in the functions.php:
function event_title_sort($query) { if ( !is_admin() && ( $query->tribe_is_event || $query->tribe_is_event_category ) ) { $query->set( 'orderby', 'title' ); } } add_action( 'pre_get_posts', 'event_title_sort', 100, 1 );jimkend: You could modify what I did, but be warned that this modifies it for any pulling of events post type.
function reverse_event_sort($query) { if ( !is_admin() && ( $query->tribe_is_event || $query->tribe_is_event_category ) ) { $query->set( 'order', 'DESC' ); } } add_action( 'pre_get_posts', 'reverse_event_sort', 100, 1 );This would always set your query to ask for order descending (except for when you’re in the admin, hence the !is_admin() )
Hope this helps!!
Edit: I didn’t test this, but my version of it works, so, unless there’s a typo in mine, it should work for you too.
I’m also looking for a solution to this.
jimkend: that solution will work until the next update as that class file will most likely be replaced by the new one that comes in the update, which is why it’s usually not recommended to change the core files to a plugin.
I tried extending the TribeEventsQuery class and reset the set_orderby() function with no success, I’m guessing because it’s not a public function, but I could be wrong.
I have a client who posts all their events as all day, and would like them arranged by title. I’ll keep working on the issue and update if I make any progress, as the “order” and “orderby” are similar functions.