Cristescu Bogdan
Forum Replies Created
-
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?
@danpowellbvm use this article: 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!
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
In reply to: [WooCommerce] Show % Discount on Sales BadgeWorks 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
In reply to: [Facebook for WooCommerce] Excluded tags syncedWhat 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
In reply to: [Easy Table of Contents] ToC conditional tags: if has headings or notThank 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">↑</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">↑</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
In reply to: [WP 404 Auto Redirect to Similar Post] AMP SupportThe 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
In reply to: [Better AMP - WordPress Complete AMP] Canonical ProblemI 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 6 years, 9 months ago by Cristescu Bogdan. Reason: The code solution!
Forum: Plugins
In reply to: [WooCommerce] Products per row not working after updating to 2.6The 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?
Yes! I`m pretty sure its the right one!
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');
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
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!
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!
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!