Title: TDR's Replies | WordPress.org

---

# TDR

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

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

 Search replies:

## Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Mollie Payments for WooCommerce] Fatal error after on 7.3.8 to 7.3.11 with roots/sage](https://wordpress.org/support/topic/fatal-error-after-on-7-3-8-and-7-3-9-with-roots-sage-2/)
 *  Thread Starter [TDR](https://wordpress.org/support/users/tdr/)
 * (@tdr)
 * [3 years ago](https://wordpress.org/support/topic/fatal-error-after-on-7-3-8-and-7-3-9-with-roots-sage-2/#post-17027021)
 * Thanks for the heads-up Tom.
 * (my reply on your post was deleted by the mods. I wanted to state it still existed
   in newer versions. But no response by these mods yet. Hope they fix it soon 🙂)
    -  This reply was modified 3 years ago by [TDR](https://wordpress.org/support/users/tdr/).
 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[WP Statistics – Simple, privacy-friendly Google Analytics alternative] Don’t use it. It breaks the WP editor](https://wordpress.org/support/topic/dont-use-it-it-breaks-the-wp-editor/)
 *  Thread Starter [TDR](https://wordpress.org/support/users/tdr/)
 * (@tdr)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/dont-use-it-it-breaks-the-wp-editor/#post-14096237)
 * [@mehrshaddarzi](https://wordpress.org/support/users/mehrshaddarzi/) Any news
   on this matter. Did you find the bug?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Statistics – Simple, privacy-friendly Google Analytics alternative] tinyMCE is not defined when activating this plugin](https://wordpress.org/support/topic/tinymce-is-not-defined-when-activating-this-plugin/)
 *  Thread Starter [TDR](https://wordpress.org/support/users/tdr/)
 * (@tdr)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/tinymce-is-not-defined-when-activating-this-plugin/#post-14059934)
 * Oy’ve. Maybe time to switch to an alternative? Any good suggestions? I have over
   a dozen clients with glitching WP Gutenberg editors 🙂 I think I’ll drop this
   plugin next update round for the clients. Since this error is going on for over
   a year now.
 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[WP Statistics – Simple, privacy-friendly Google Analytics alternative] Don’t use it. It breaks the WP editor](https://wordpress.org/support/topic/dont-use-it-it-breaks-the-wp-editor/)
 *  Thread Starter [TDR](https://wordpress.org/support/users/tdr/)
 * (@tdr)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/dont-use-it-it-breaks-the-wp-editor/#post-14051880)
 * Sure: [https://we.tl/t-DOJZJLUitK](https://we.tl/t-DOJZJLUitK)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Statistics – Simple, privacy-friendly Google Analytics alternative] tinyMCE is not defined when activating this plugin](https://wordpress.org/support/topic/tinymce-is-not-defined-when-activating-this-plugin/)
 *  Thread Starter [TDR](https://wordpress.org/support/users/tdr/)
 * (@tdr)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/tinymce-is-not-defined-when-activating-this-plugin/#post-14031725)
 * Is this plugin still maintained? Would devs check these questions?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MailPoet - Newsletters, Email Marketing, and Automation] Unable to sort admin view of newsletters to newest first.](https://wordpress.org/support/topic/unable-to-sort-admin-view-of-newsletters-to-newest-first/)
 *  Thread Starter [TDR](https://wordpress.org/support/users/tdr/)
 * (@tdr)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/unable-to-sort-admin-view-of-newsletters-to-newest-first/#post-11416704)
 * Ah, yes. This seems to work. Thanks.
    Guess we’ll just delete all the old emails
   for the new ones to show on top. But it would have been nice to have had the 
   option for a different sorting option.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[All-in-One WP Migration and Backup] I have a solution fix plugin 100% worked](https://wordpress.org/support/topic/i-the-solution-fix-plugin-100-worked/)
 *  [TDR](https://wordpress.org/support/users/tdr/)
 * (@tdr)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/i-the-solution-fix-plugin-100-worked/#post-11068091)
 * [@angelbope](https://wordpress.org/support/users/angelbope/), another win. Your
   solution worked.
    I wanted to buy some automated cloud backup plugins from all-
   in-one. But now we will look for other solutions 🙂 Had this problem too many
   times with a few of our sites.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [I need relationship advice](https://wordpress.org/support/topic/i-need-relationship-advice/)
 *  Thread Starter [TDR](https://wordpress.org/support/users/tdr/)
 * (@tdr)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/i-need-relationship-advice/#post-10569901)
 * Hi [@bcworkz](https://wordpress.org/support/users/bcworkz/), thanks for your 
   reply!
 * I’ve got my solution to work with Advanced Custom Fields – Relationship field.
   With this I was able to create many-to-many and bi-directional fields.
    [https://www.advancedcustomfields.com/resources/relationship/](https://www.advancedcustomfields.com/resources/relationship/)
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Nested Post Query, first catagory, then per ACF](https://wordpress.org/support/topic/nested-post-query-first-catagory-then-per-acf/)
 *  Thread Starter [TDR](https://wordpress.org/support/users/tdr/)
 * (@tdr)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/nested-post-query-first-catagory-then-per-acf/#post-8803237)
 * Pardon me, where are my manners. Somehow I didn’t see I got a reply 🙂
    Thanks
   for your reply!
 * Yes, group per category and than group per “customfield_01”.
    I’ve found a solution.
   I’ll post it below.
 * I’ve added this code to the code above. I’ve replaced all the code within “foreach(
   $categories as $tax ) :”
 * Steps:
    – needed an array with all the unique values within “field 1” – ran an
   post query for each post, grabbed the value of “field 1” and put in an array –
   filtered all the duplicates – alphabetized the array – run a foreach in the array:
 *     ```
       $stack = array();
   
       // query
       $args = array(
           'post_type' => 'products',
           'orderby' => 'ASC',
           'posts_per_page'=>-1,
           'category_name' => $tax->slug
       );
   
       // The Query
       $the_query = new WP_Query( $args );
   
       // The Loop
       if ( $the_query->have_posts() ) {
           while ( $the_query->have_posts() ) {
               $the_query->the_post();
   
               if( get_field('custom_field_1') ): 
                   $stack[] = get_field('custom_field_1');
               endif;
           }
           wp_reset_postdata();
       }   
   
       $result = array_unique($stack);
       sort($result);
   
       foreach ( $result as $tax2 ) :
            // run you code here
       endforeach; 
       ```
   
 * Might not be the prettiest code, but it gets the job done 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [let user bookmark current location on page?](https://wordpress.org/support/topic/let-user-bookmark-current-location-on-page/)
 *  Thread Starter [TDR](https://wordpress.org/support/users/tdr/)
 * (@tdr)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/let-user-bookmark-current-location-on-page/#post-5365079)
 * hmzz that’s a real bummer.
    I guess I’ll have to break up each page in several
   small pages then. thnx for the script!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] sale_products shortcode does not work](https://wordpress.org/support/topic/sale_products-shortcode-does-not-work/)
 *  [TDR](https://wordpress.org/support/users/tdr/)
 * (@tdr)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/sale_products-shortcode-does-not-work/#post-5023216)
 * Hi guys, I’ve opened my own tread and “Leandro Martins Guimarães”, member on 
   this forum handed me this solution from “otggamer”
 * I’ve tried it and it works like a charm! Game on!
 * > As a workaround, add this code to your functions.php:
   > // DELETE ON SALE TRANSIENTS WHEN POST SAVED
   >  function delete_sale_transients(){
   > global $post; if( $post->post_type == ‘product’ ) { delete_transient( ‘wc_products_onsale’);}}
   > add_action( ‘save_post’, ‘delete_sale_transients’ );
   > And just open and save anyone of your products to refresh cache data.
   > Anyway, we’re still waiting for a better solution from WooCommerce guys.
   > This solution was originally suggested by “otggamer” here: [https://support.woothemes.com/hc/communities/public/questions/201933598-On-sale-products-not-displaying-in-Woocommerce-products-widget](https://support.woothemes.com/hc/communities/public/questions/201933598-On-sale-products-not-displaying-in-Woocommerce-products-widget)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [WooCommerce Shortcode [sale_products] not showing products?](https://wordpress.org/support/topic/woocommerce-shortcode-sale_products-not-showing-products/)
 *  Thread Starter [TDR](https://wordpress.org/support/users/tdr/)
 * (@tdr)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/woocommerce-shortcode-sale_products-not-showing-products/#post-5041034)
 * [@leandro](https://wordpress.org/support/users/leandro/) Martins Guimarães. Sweet!
   thank you! works like a charm!
    I will also leave a thanks to “otggamer”!
 * I’m sure it will be fixed in the new version
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] sale_products shortcode does not work](https://wordpress.org/support/topic/sale_products-shortcode-does-not-work/)
 *  [TDR](https://wordpress.org/support/users/tdr/)
 * (@tdr)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/sale_products-shortcode-does-not-work/#post-5023207)
 * yes, I’ve got the same issue here
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [grid-a-licious](https://wordpress.org/support/topic/grid-a-licious-1/)
 *  [TDR](https://wordpress.org/support/users/tdr/)
 * (@tdr)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/grid-a-licious-1/#post-1392753)
 * Yep. Same here.
    Maybe the theme is for an older WP version…
 * Can it be fixed?

Viewing 14 replies - 1 through 14 (of 14 total)