Title: matstillo's Replies | WordPress.org

---

# matstillo

  [  ](https://wordpress.org/support/users/matstillo/)

 *   [Profile](https://wordpress.org/support/users/matstillo/)
 *   [Topics Started](https://wordpress.org/support/users/matstillo/topics/)
 *   [Replies Created](https://wordpress.org/support/users/matstillo/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/matstillo/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/matstillo/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/matstillo/engagements/)
 *   [Favorites](https://wordpress.org/support/users/matstillo/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 61 total)

1 [2](https://wordpress.org/support/users/matstillo/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/matstillo/replies/page/3/?output_format=md)
[4](https://wordpress.org/support/users/matstillo/replies/page/4/?output_format=md)
[5](https://wordpress.org/support/users/matstillo/replies/page/5/?output_format=md)
[→](https://wordpress.org/support/users/matstillo/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[The Events Calendar] High CPU Usage (Tons of Tribe Process Async Test AJax Requests)](https://wordpress.org/support/topic/high-cpu-usage-tons-of-tribe-process-async-test-ajax-requests/)
 *  [matstillo](https://wordpress.org/support/users/matstillo/)
 * (@matstillo)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/high-cpu-usage-tons-of-tribe-process-async-test-ajax-requests/#post-12540189)
 * I may be having the same issue. Everything is painfully slow, but now even worse
   I cannot even access the Events in WordPress admin. Clicking ‘Events > Events’
   just hangs until I finally get a ‘508 resource limit is reached’error message.
   This is a bit of a disater as today is actually the launch date for the website
   events. We now can;t get into admin to make any important updates to event information.
 * I can access other Events Calendar section, just not main the Events list section.
   We are using version 4.9.10 however.
 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[WooCommerce Admin] Not robust](https://wordpress.org/support/topic/not-robust/)
 *  [matstillo](https://wordpress.org/support/users/matstillo/)
 * (@matstillo)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/not-robust/#post-12062246)
 * This looks like it might be a similar issue to the one I am still having:
 * [https://wordpress.org/support/topic/the-plugin-breaks-wp-admin-still/](https://wordpress.org/support/topic/the-plugin-breaks-wp-admin-still/)
 * You might be getting caught in that same redirect loop as me, which end up with
   a 503 error. Maybe try logging in directly to the /w-admin/index.php file, as
   works for me?
 * I’ve not had any feedback on that thread linked to above, and I was removed from
   the previous one I was in, about the same subject. This is a real problem for
   me, as I’ve bought quite a few expensive addons from WooCommerce, and the client
   needs to use WooCommerce Admin to work with those plugins. They currently can’t
   even use WordPress Admin with this plugin active.
 * Hopefully someone can look into where the conflict with this plugin is happening.
   None of the systems I use, such as wp-config.php debugging mode, or browser developer
   consoles are returning any errors. Also, this issue happened on a fresh install
   of WordPress with only WooCommerce plugins in place.
 * Help badly needed!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Post Manager] Event Start Time and Seats Used / Available](https://wordpress.org/support/topic/event-start-time-and-seats-used-available/)
 *  [matstillo](https://wordpress.org/support/users/matstillo/)
 * (@matstillo)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/event-start-time-and-seats-used-available/#post-12058692)
 * I’m just commenting on this one for what it is worth! I have similar issues: 
   The client really just wants to go to a summary page where they can see a ticket
   sales, attendees vs capacity remaining breakdown/summary for all events, with
   the total ticket sales per event. I can see there is a ‘Sales’ column I can add,
   but it just returns nothing, or -blank- depending where I order it.
 * Seems like all the info is there to be extracted; it is all available in the 
   Events Attendees and Orders sections of each Event. It would be great to be able
   to output that all on the one screen. Seems like this plugin is almost able to
   do this? I imagine the client may be willing to pay for extra development to 
   get this in place, if anyone can do that?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Post Type Date Archives] Posts with historic publish date are not showing?](https://wordpress.org/support/topic/posts-with-historic-publish-date-are-not-showing/)
 *  Thread Starter [matstillo](https://wordpress.org/support/users/matstillo/)
 * (@matstillo)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/posts-with-historic-publish-date-are-not-showing/#post-10277539)
 * Hi there,
    No, that was the old system. You plugin enabled us to replace it. 
   It should be all deactivated, I’ve just left some of its old css classes in place
   to handle the styling,
 * Cheers!
 * Mat
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Post Type Date Archives] Posts with historic publish date are not showing?](https://wordpress.org/support/topic/posts-with-historic-publish-date-are-not-showing/)
 *  Thread Starter [matstillo](https://wordpress.org/support/users/matstillo/)
 * (@matstillo)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/posts-with-historic-publish-date-are-not-showing/#post-10277206)
 * Regarding the 404, I had added this:
 * `remove_action( 'wp', 'cptda_handle_404' );`
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Post Type Date Archives] Posts with historic publish date are not showing?](https://wordpress.org/support/topic/posts-with-historic-publish-date-are-not-showing/)
 *  Thread Starter [matstillo](https://wordpress.org/support/users/matstillo/)
 * (@matstillo)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/posts-with-historic-publish-date-are-not-showing/#post-10277202)
 * Hi there,
 * Thanks again. Changing to $query->set just seemed to break the sorting of the
   loop, but still didn’t display the old posts. In fact, I have just tried removing
   my pre_get_posts query from functions.php entirely, and the old posts are still
   not showing, so the issue must lie elsewhere.
 * I’ll need to clone the site to a development area to test more in depth now, 
   so I don’t play around with the live environment.
 * I’ll keep you posted with what I uncover there, but many thanks for all your 
   help so far,
 * Cheers!
 * Mat
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Post Type Date Archives] Posts with historic publish date are not showing?](https://wordpress.org/support/topic/posts-with-historic-publish-date-are-not-showing/)
 *  Thread Starter [matstillo](https://wordpress.org/support/users/matstillo/)
 * (@matstillo)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/posts-with-historic-publish-date-are-not-showing/#post-10277028)
 * Amazing response, thank you so much!
 * And you are correct, I had used pre_get_sposts to change the sort order. Not 
   sure why that is preventing old posts displaying though? I didn’t write this 
   function, I’m not that smart unfortunaetly. I just found that in a thread, so
   I wouldn’t know quite why that might be breaking things?
 *     ```
       	// function to modify the main query object
       	function my_modify_main_query( $query ) {
       	if ( $query->is_post_type_archive('events') && $query->is_main_query() ) { // Run only on the Events Archives
       	$query->query_vars['orderby'] = 'date';
       	$query->query_vars['order'] = 'ASC';
       	}
       	}
       	add_action( 'pre_get_posts', 'my_modify_main_query' );
       ```
   
 * What would I need to modify there?
 * Thanks once again, you are a lifesaver! 😀
 * Mat
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Side Cart Woocommerce | Woocommerce Cart] Nothing generated in sidebar for initial empty cart](https://wordpress.org/support/topic/nothing-generated-in-sidebar-for-initial-empty-cart/)
 *  Thread Starter [matstillo](https://wordpress.org/support/users/matstillo/)
 * (@matstillo)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/nothing-generated-in-sidebar-for-initial-empty-cart/#post-10118959)
 * OK, great stuff, that makes sense. I had dequeued some WooCommerce scripts on
   non-shop pages to see things up a little. It’s all coming back to me now! 😀
 * I’ve only re-queued cart-fragments.min.js. Is that definitely the only one I 
   will need for all to work correctly?
 * Also, I’m using wp-fastest-cache for caching. Its currently not caching the following
   pages: cart, checkout & my account. Are there any other considerations for caching
   with your plugin?
 * Many thanks for the help,
 * Mat
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Perfect Brands for WooCommerce] wp_query for brands](https://wordpress.org/support/topic/wp_query-for-brands/)
 *  Thread Starter [matstillo](https://wordpress.org/support/users/matstillo/)
 * (@matstillo)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/wp_query-for-brands/#post-9728571)
 * Hi there,
 * That’s great stuff, nice support, thanks very much. That looks like that will
   do everything I need. Just on a slighty different note: I’m going to be using
   this so I can work with a modified setup of Slick Slider. In the meantime, I’m
   just using the carousel shortcode, but can’t get that to randomise the brands
   in the carousel:
 * [pwb-carousel items=”16″ items_to_show=”8″ items_to_scroll=”1″ image_size=”square_small”
   autoplay=”true” arrows=”false” order_by=”rand”]
 * It’s still just outputting them in alphabetical order. It looks like the ‘rand’
   option is set up in the plugin code, can you see why that might not be working?‘
   square_small’ is just a custom image size I have set up, which is working fine.
 * Many thanks again!
 * Mat
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Perfect Brands for WooCommerce] Brand filter on sidebar](https://wordpress.org/support/topic/brand-filter-on-sidebar/)
 *  [matstillo](https://wordpress.org/support/users/matstillo/)
 * (@matstillo)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/brand-filter-on-sidebar/#post-9725152)
 * Hi there, I’m having the same issue: I only want Brands to appear in the sidebar
   that are actually included in the current loop of products. Did you get anywhere
   with this?
 * Cheers!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery] We cannot display this gallery](https://wordpress.org/support/topic/we-cannot-display-this-gallery-1/)
 *  [matstillo](https://wordpress.org/support/users/matstillo/)
 * (@matstillo)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/we-cannot-display-this-gallery-1/#post-5905037)
 * My own shortcode for [slideshow] was for something totally unrelated to NextGen,
   which is why it took a while to figure it out!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery] We cannot display this gallery](https://wordpress.org/support/topic/we-cannot-display-this-gallery-1/)
 *  [matstillo](https://wordpress.org/support/users/matstillo/)
 * (@matstillo)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/we-cannot-display-this-gallery-1/#post-5905036)
 * Just adding this in case it helps anyone else who finds this thread on a search
   for ‘We cannot display this gallery’!
 * I came across this problem this week when implementing a new Theme for a site.
   Turns out I was using a custom shortcode for [slideshow], which was somehow conflicting
   with NextGen’s own shortcodes I guess?
 * I just renamed my own shortcode & things were back in business. So possibly just
   check you don’t have any shortcode conflicts?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery] Causing bug with Shopp Plugin](https://wordpress.org/support/topic/causing-bug-with-shopp-plugin/)
 *  [matstillo](https://wordpress.org/support/users/matstillo/)
 * (@matstillo)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/causing-bug-with-shopp-plugin/#post-4196579)
 * Hi there,
 * Bit late in the thread now, but I’m still having this exact same issue. All my
   sites running Shopp are still frozen at 1.9.13. Is there any further progress
   on this from the Photocrati team?
 * I just tried an upgrade to 2.0.66, but the issue is still there.
 * Cheers!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Random Post order not working with pagination](https://wordpress.org/support/topic/random-post-order-not-working-with-pagination/)
 *  Thread Starter [matstillo](https://wordpress.org/support/users/matstillo/)
 * (@matstillo)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/random-post-order-not-working-with-pagination/#post-2578347)
 * Not sure what happened in this thread, as I had posted a message earlier saying
   that it looked like I had NOT managed to get it working after all. That post 
   is now missing!
 * The code above is as far as I got, but still doesn’t work. Each page is still
   being randomised.
 * Hopefully someone can see what might be going on.
 * Cheers!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Random Post order not working with pagination](https://wordpress.org/support/topic/random-post-order-not-working-with-pagination/)
 *  Thread Starter [matstillo](https://wordpress.org/support/users/matstillo/)
 * (@matstillo)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/random-post-order-not-working-with-pagination/#post-2578346)
 *     ```
       <?php
   
       // Retrieve consistent random set of posts with pagination
       function mam_posts_query($query) {
          global $mam_posts_query;
          if ($mam_posts_query && strpos($query, 'ORDER BY RAND()') !== false) {
             $query = str_replace('ORDER BY RAND()',$mam_posts_query,$query);
             //print_r("<p>$query</p>");
          }
          return $query;
       }
       add_filter('query','mam_posts_query');
       $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
       $seed = date('Ymd');  // Use date('Ymdh') to get an hourly change
       global $mam_posts_query;
       $mam_posts_query = " ORDER BY rand($seed) "; // Turn on filter
       $args = array(
          'caller_get_posts' => 1,  // Stickies will be repeated if this is not set
          'orderby' => 'rand',      // This MUST be in the query - the filter checks for it
          'paged' => $paged,
       );
   
       global $wp_query;
       query_posts(
          array_merge(
             $wp_query->query,
             $args
          )
       );
   
       $mam_posts_query = ''; // Turn off filter
   
       	if (have_posts()) : while (have_posts()) : the_post();
       ?>
   
       	<h1>Your stuff here</h1>
   
       <?php endwhile; ?>
   
       	<div>
       	   <div><?php next_posts_link('&laquo; Older Entries') ?></div>
       	   <div><?php previous_posts_link('Newer Entries &raquo;') ?></div>
       	</div>
   
       <? endif; ?>
       ```
   

Viewing 15 replies - 1 through 15 (of 61 total)

1 [2](https://wordpress.org/support/users/matstillo/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/matstillo/replies/page/3/?output_format=md)
[4](https://wordpress.org/support/users/matstillo/replies/page/4/?output_format=md)
[5](https://wordpress.org/support/users/matstillo/replies/page/5/?output_format=md)
[→](https://wordpress.org/support/users/matstillo/replies/page/2/?output_format=md)