lrunnells
Forum Replies Created
-
Forum: Plugins
In reply to: [Schema] Website crashes after schemai’ve got the same problem. when i enable the schema plugin i start getting 500 database connection and server errors.
Forum: Plugins
In reply to: [WP Critical CSS] Wordpres Database Errori’m using version 0.7.0.1
Forum: Plugins
In reply to: [Product Admin Notes Simple] Display the notes on the front end?i’d like my sales team to be able to add product notes (shipping weights, engineering change orders, etc.) that are only viewable by certain roles on the front end. these notes should be hidden to the general public, but if a user is signed in with the correct role the notes would become visible to them.
issue resolved
nevermind! i figured it out. had to change the “Enable archive query alteration?” setting to “On the site”. thanks again!
thanks @cybr!
which settings do i need to adjust in order to achieve that result?
the recent update to the plugin seems to have caused this issue to reappear and the code snippet you provided isn’t fixing the problem anymore. any way around this?
Forum: Plugins
In reply to: [Product Admin Notes Simple] General tab disappears@shaunrico any chance you could help me out with the code changes you made to get this to work with variable products?
Forum: Plugins
In reply to: [Product Admin Notes Simple] General tab disappearsi need this to work for variable products as well. any possibility of an update?
I apparently did something wrong the first time I tried the code above. I have gone back and tried it again and it appears to do the trick. Thanks, @cybr!
thanks for looking into this for me. i added the code above to the functions.php file in both my child theme and the main theme folder and the problem persists. 🙁
No problem. I have linked your contact info and this thread in the support thread over at Theme Complete. The code in question that seems to be causing the issue is in \autodescription\inc\classes\init.class.php and is as follows:
\add_action( 'pre_get_posts', array( $this, 'adjust_archive_query' ), 9999, 1 ); public function adjust_archive_query( $query ) { // Don't exclude pages in wp-admin. if ( ( $query->is_archive || $query->is_home ) && ! $this->is_admin() ) { $meta_query = $query->get( 'meta_query' ); //* Convert to array. Unset it if it's empty. if ( ! is_array( $meta_query ) ) $meta_query = $meta_query ? (array) $meta_query : array(); /** * Exclude posts with exclude_from_archive option on. * * Query is faster when the global relation is not set. Defaults to AND. * Query is faster when no value is set. Defaults to 'IS NULL' because * of 'compare'. Having no effect whatsoever as it's an exclusion. */ $meta_query[] = array( array( 'key' => 'exclude_from_archive', 'type' => 'NUMERIC', 'compare' => 'NOT EXISTS', ), ); $query->set( 'meta_query', $meta_query ); } }thank you. turning off the link count feature seems to have solved the problem.
i have tried turning off lazy loading on the slider and it does not fix the problem. i have also tried toggling all of the settings under both “performance and SEO optimization” and “problem handling”, but nothing seems to be working. the only thing that fixes the issue is when i turn photon off.
ok, i’ve turned photon back on so that you can see the effect.
i do not have a staging site and the site is only semi-live so there’s no problem. i believe that the revolution slider on the home page is part of my theme, which is called woopress by 8theme.