Title: Cristescu Bogdan's Replies | WordPress.org

---

# Cristescu Bogdan

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

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

 Search replies:

## Forum Replies Created

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

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Spectra Legacy – Gutenberg Blocks] Cant enable plugin / spectra_total_blocks_count_action](https://wordpress.org/support/topic/cant-enable-plugin-spectra_total_blocks_count_action/)
 *  [Cristescu Bogdan](https://wordpress.org/support/users/cbogdan/)
 * (@cbogdan)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/cant-enable-plugin-spectra_total_blocks_count_action/#post-16091871)
 * I can say the same thing. Everything is working normally and it seems that those
   huge CPU loads are over. However, this cron continues to run, and it’s absurd
   because it seems to me to be something that was created out of convenience by
   the programmer. Can’t it somehow be made optional through a setting? I don’t 
   think it can affect the proper functioning of the module. Right?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Spectra Legacy – Gutenberg Blocks] Cant enable plugin / spectra_total_blocks_count_action](https://wordpress.org/support/topic/cant-enable-plugin-spectra_total_blocks_count_action/)
 *  [Cristescu Bogdan](https://wordpress.org/support/users/cbogdan/)
 * (@cbogdan)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/cant-enable-plugin-spectra_total_blocks_count_action/#post-16041590)
 * [@danpowellbvm](https://wordpress.org/support/users/danpowellbvm/) use this article:
   [https://wpxss.com/database/how-to-cleanup-wp_actionscheduler_actions-wp_actionscheduler_logs-tables-in-the-database/](https://wpxss.com/database/how-to-cleanup-wp_actionscheduler_actions-wp_actionscheduler_logs-tables-in-the-database/)
 * Use the tutorial to delete Scheduled Actions entries from database and to put
   a function in your functions.php child-theme file, to clean logs with ones that
   are older than one week, periodically.
 * Let me know if that helped you to get back in you website Dashboard!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Spectra Legacy – Gutenberg Blocks] Cant enable plugin / spectra_total_blocks_count_action](https://wordpress.org/support/topic/cant-enable-plugin-spectra_total_blocks_count_action/)
 *  [Cristescu Bogdan](https://wordpress.org/support/users/cbogdan/)
 * (@cbogdan)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/cant-enable-plugin-spectra_total_blocks_count_action/#post-16041582)
 * I face an issue like yours with this stupid scheduled action.
    It look like this
   action help the plugin to count what blocks do you have enabled. It is a verry
   stupid action … Let`s say you enable 5 from all. Why it is runing so often? It
   is not like we enable or disable hourly this blocks.
 * Let`s see theyr answer!
 * In the meantime, I’m looking for a way to disable it or modify it.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Show % Discount on Sales Badge](https://wordpress.org/support/topic/show-discount-on-sales-badge/)
 *  [Cristescu Bogdan](https://wordpress.org/support/users/cbogdan/)
 * (@cbogdan)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/show-discount-on-sales-badge/page/2/#post-14866716)
 * Works perfect for me! I use this code to display -10% (no space between – and
   the number)
 *     ```
       add_filter( 'woocommerce_sale_flash', 'add_percentage_to_sale_badge', 20, 3 );
       function add_percentage_to_sale_badge( $html, $post, $product ) {
           if( $product->is_type('variable')){
               $percentages = array();
   
               // Get all variation prices
               $prices = $product->get_variation_prices();
   
               // Loop through variation prices
               foreach( $prices['price'] as $key => $price ){
                   // Only on sale variations
                   if( $prices['regular_price'][$key] !== $price ){
                       // Calculate and set in the array the percentage for each variation on sale
                       $percentages[] = round(100 - ($prices['sale_price'][$key] / $prices['regular_price'][$key] * 100));
                   }
               }
               $percentage = max($percentages) . '%';
           } else {
               $regular_price = (float) $product->get_regular_price();
               $sale_price    = (float) $product->get_sale_price();
   
               $percentage    = round(100 - ($sale_price / $regular_price * 100)) . '%';
           }
           return '<span class="onsale">' . esc_html__( '-', 'woocommerce' ) . '' . $percentage . '</span>';
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Meta for WooCommerce] Excluded tags synced](https://wordpress.org/support/topic/excluded-tags-synced/)
 *  [Cristescu Bogdan](https://wordpress.org/support/users/cbogdan/)
 * (@cbogdan)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/excluded-tags-synced/#post-13876106)
 * What snappyclick did not say its that this button does not react when you click
   on him. You can save any settings from the Product Sync tab, but not excluded
   tags or categories.
 * So I debug this more and in console, when I click on the save button, appears
   this:
 * `load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,underscore,
   wp-util,backbone,moxiejs,plupload&ver=5.6:10 Uncaught TypeError: Cannot read 
   property 'replace' of undefined`
 * So there it is a incompatibility between Facebook for Woocommerce and other module,
   or it is about a bug? What we really can do about this?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Easy Table of Contents] ToC conditional tags: if has headings or not](https://wordpress.org/support/topic/toc-conditional-tags-if-has-headings-or-not/)
 *  Thread Starter [Cristescu Bogdan](https://wordpress.org/support/users/cbogdan/)
 * (@cbogdan)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/toc-conditional-tags-if-has-headings-or-not/#post-12509133)
 * Thank you Steven for your suggestion but I think it is just one step to solve
   my issue. I use this code, and I succed to have a positive effect:
 *     ```
       <?php 
       $toctoc = apply_filters( 'ez_toc_maybe_apply_the_content_filter', 'true' );
       if($toctoc==true ) { ?>
       <a class="to-the-top" href="#ez-toc-container" title="Back to Contents">
       <span class="to-the-top-long"><?php printf( __( 'Contents %s', 'twentytwenty' ), '<span class="arrow" aria-hidden="true">&uarr;</span>' ); ?></span></a>
       <?php } else { ?>
       <a class="to-the-top" href="#wrapper" title="Go Up">
       <span class="to-the-top-long"><?php printf( __( 'Up %s', 'twentytwenty' ), '<span class="arrow" aria-hidden="true">&uarr;</span>' ); ?></span></a>
       <?php } ?>
       ```
   
 * Now I can have the “Up to top” on home page, categories and all other pages like
   before to start to change the scope of this link. But on single post it does 
   not work. The filter return true even if there are no headings, witch for ToC
   module this does not mean that he can not output the table. I need something 
   similar but to return false if the ToC module can not filter the content to output
   the ToC list inside. I read the code of your plugin and in the philosophy of 
   your script this check has no place. But, maybe you can help me to use the same
   checking to find out if a post content has or not headings, because your module
   only the should do something, so there I can hook in also!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP 404 Auto Redirect to Similar Post] AMP Support](https://wordpress.org/support/topic/request-amp-support-2/)
 *  [Cristescu Bogdan](https://wordpress.org/support/users/cbogdan/)
 * (@cbogdan)
 * [7 years ago](https://wordpress.org/support/topic/request-amp-support-2/#post-11708411)
 * The last update was 2 months ago and this compatibility with AMP pages it was
   not there. Can you fix it or at least tell us how can we do it via custom engines!
   I really love your module and if you make it also for AMP I will give you a 5
   stars review!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Better AMP - WordPress Complete AMP] Canonical Problem](https://wordpress.org/support/topic/canonical-problem/)
 *  [Cristescu Bogdan](https://wordpress.org/support/users/cbogdan/)
 * (@cbogdan)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/canonical-problem/#post-10298650)
 * I hope that the next update will come soon. I also have the some issue with canonical
   URL for paged archives!
 * I made a temporal fix!
    I edit the function _better\_amp\_get\_canonical\_url()_
   from the file **better-amp/includes/functions/theme-functions.php** I change 
   this part of the code:
 *     ```
       if ( ! empty( $term ) ) {
       				$queried_terms = $GLOBALS['wp_query']->tax_query->queried_terms;
       				/**
       				 * Check if term archive query is for multiple terms
       				 */
       				if (
       					! isset( $queried_terms[ $term->taxonomy ]['terms'] ) ||
       					count( $queried_terms[ $term->taxonomy ]['terms'] ) <= 1
       				) {
       					$term_link = get_term_link( $term, $term->taxonomy );
   
       					if ( $term_link && ! is_wp_error( $term_link ) ) {
       						$canonical = $term_link;
       					}
       				}
       			}
       ```
   
 * with:
 *     ```
       if ( ! empty( $term ) ) {
       				global $wp;
       				$queried_terms = $GLOBALS['wp_query']->tax_query->queried_terms;
       				/**
       				 * Check if term archive query is for multiple termsss
       				 */
       				if (
       					! isset( $queried_terms[ $term->taxonomy ]['terms'] ) ||
       					count( $queried_terms[ $term->taxonomy ]['terms'] ) <= 1
       				) {
       					$term_link = home_url(add_query_arg(array(),$wp->request));
   
       					if ( $term_link && ! is_wp_error( $term_link ) ) {
       						$canonical = $term_link;
       					}
       				}
       			}
       ```
   
 * Now we can see the right canonical URL for paged arhives like categories and 
   tags!
    -  This reply was modified 8 years, 2 months ago by [Cristescu Bogdan](https://wordpress.org/support/users/cbogdan/).
      Reason: The code solution!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Products per row not working after updating to 2.6](https://wordpress.org/support/topic/woocommerce-products-per-row-not-working-after-updating-to-26-27/)
 *  [Cristescu Bogdan](https://wordpress.org/support/users/cbogdan/)
 * (@cbogdan)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/woocommerce-products-per-row-not-working-after-updating-to-26-27/#post-7479961)
 * The fix was working for me!
 * Mike, can you explane why its like this? On System Status I see no problem with
   the template files. This themplate check system dont also check the code? Only
   the header?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Events Manager - Calendar, Bookings, Tickets, and more!] Can you reste custom post data in [event] shortcode?](https://wordpress.org/support/topic/can-you-reste-custom-post-data-in-event-shortcode/)
 *  Thread Starter [Cristescu Bogdan](https://wordpress.org/support/users/cbogdan/)
 * (@cbogdan)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/can-you-reste-custom-post-data-in-event-shortcode/#post-7312378)
 * Yes! I`m pretty sure its the right one!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Events Manager - Calendar, Bookings, Tickets, and more!] Add new currency for Romania (RON – Lei)](https://wordpress.org/support/topic/add-new-currency-for-romania-ron-lei/)
 *  Thread Starter [Cristescu Bogdan](https://wordpress.org/support/users/cbogdan/)
 * (@cbogdan)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/add-new-currency-for-romania-ron-lei/#post-7312376)
 * Thank you ~caimin for your sugestion!
 * This code satisfy my needs:
 *     ```
       function my_em_add_currencies($currencies){
               $currencies->names['RON'] = 'Lei - Romania';
               $currencies->symbols['RON'] = 'Lei';
               $currencies->true_symbols['RON'] = 'Lei';
               return $currencies;
       }
       add_filter('em_get_currencies','my_em_add_currencies');
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Quads Ads Manager for Google AdSense] Hide ads or different ads on mobile devices?](https://wordpress.org/support/topic/hide-ads-or-different-ads-on-mobile-devices/)
 *  [Cristescu Bogdan](https://wordpress.org/support/users/cbogdan/)
 * (@cbogdan)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/hide-ads-or-different-ads-on-mobile-devices/#post-6912864)
 * I think you have an problem with your ad code. If you use a responsive adsense
   ad, why you need to show a different ad on mobile? The responsive adsense code
   that meen, It will change the output to fit in the with window of the screen.
 * If you whant to control the size, to show special ad sizez on special width screens,
   this is something else!
 * Check my solution here [on this thread](https://wordpress.org/support/topic/restriction-to-ad-code-format?replies=2#post-7917207)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Quads Ads Manager for Google AdSense] PHP Warning in Import/Export area](https://wordpress.org/support/topic/php-warning-in-importexport-area/)
 *  Thread Starter [Cristescu Bogdan](https://wordpress.org/support/users/cbogdan/)
 * (@cbogdan)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/php-warning-in-importexport-area/#post-6969173)
 * I install your plugin last night. I check before that, the older version, and
   you say in a comment that a new version will come. So I search in plugin repository
   for the new one, I found it, I install it! I never install the older version 
   before!
 * I installed now the older verision. Activate, deactivat, delete. But the warning
   is still there.
 * I check in database for any entry for “quick-adsense” and the only results are
   in wp-options table but for quick-adsense-reloaded (install, update etc.)
 * I check the page source and this warning appear between the form and the submit
   button. So there is and error with call functions in this area.
 * Its not a big problem for me, I just see and tell you about it!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Quads Ads Manager for Google AdSense] PHP Warning in Import/Export area](https://wordpress.org/support/topic/php-warning-in-importexport-area/)
 *  Thread Starter [Cristescu Bogdan](https://wordpress.org/support/users/cbogdan/)
 * (@cbogdan)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/php-warning-in-importexport-area/#post-6969167)
 * But I use reloaded version.
    This is the strange part! The warning message appears
   after the import/export options. I think some where in the code you forgot to
   change something from the old plugin version!
 * So, I dont have installed quick-adsense, the older version. I have the new one,
   the reloaded version!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Email Subscribers & Newsletters - Email Marketing, Post Notifications & Newsletter Plugin for WordPress] How to view only subscribers with status Unconfirmed?](https://wordpress.org/support/topic/how-to-view-only-subscribers-with-status-unconfirmed/)
 *  Thread Starter [Cristescu Bogdan](https://wordpress.org/support/users/cbogdan/)
 * (@cbogdan)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/how-to-view-only-subscribers-with-status-unconfirmed/#post-5212142)
 * The option its there, but if i select Unconfirmed and I press Apply button, nothing
   happens! I get this message “Please select the bulk action” But its missing the
   write action! There its only Delete, Resend confirmation and Update Subscribers
   Group! Not good!
 * And maybe it is posible to move the option also up of the table… I have to scroll
   down 200 items to access the select option! Its nice to be up at the start of
   the table with subscribers!
 * I imagine that its hard of codeing but its nice what you do! This is a very good
   plugin, very special and more simple, comparing with others on the show!

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

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