Hrohh
Forum Replies Created
-
Forum: Plugins
In reply to: [Post Type Archive Pages] Multiple SQL query, but it is not necessarybetter without saving to memory, suppress_filters and we dont need POSTMETA to query
if ( $pages = array_unique( array_filter( array_values( (array)$this->get_config() ) ) ) ) new WP_Query( array( 'post_type' => 'any', 'post_status' => array( 'publish'), 'posts_per_page' => -1, 'suppress_filters' => true, 'post__in' => $pages, 'ignore_sticky_posts' => true, 'no_found_rows' => true, 'update_post_meta_cache' => false, 'update_post_term_cache' => false ));
Forum: Plugins
In reply to: [Slimage] Compressor.class.phpHello,
yes, it helps ! ?? Thank you.
Forum: Plugins
In reply to: [Slimage] CSS issue with ACF on edit.phpSometimes images cannot be download
‘url’ => isset( $_POST[‘url’] ) ? esc_url( $_POST[‘url’] ) : ”,
should be
‘url’ => isset( $_POST[‘url’] ) ? esc_url_raw( $_POST[‘url’] ) : ”,
Can you please add actual width x height of image to main button Download like that
[Download ( 1920×1200 )]It would be good, because we can have some image field (Advanced Cutom Fields plugin), which is restriced by min resolution.
for some reason it is not reseting pagination
step to reproduce
1) search some word, for example “workshop”
2) set page to 3
3) click to Editors Choice
4) total found images is 14, but we are on page 3 and screen is empty- This reply was modified 4 years, 4 months ago by Hrohh.
also please add native lazyload to img
https://web.dev/browser-level-image-lazy-loading/<img loading=”lazy”
thanks
also words in admin-page.php
Previous
Free images ofshortcode.js
Other Image Sizes
Download
The image #%curr% could not be loaded.
Loading image #%curr%…
Downloaded Successfully..Please add string to magnificpopup
tClose: ‘Close (Esc)’
gallery: {
tPrev: ‘Previous (Left arrow key)’, // Alt text on left arrow
tNext: ‘Next (Right arrow key)’, // Alt text on right arrow
tCounter: ‘%curr% of %total%’ // Markup for “1 of 7” counter
},
https://dimsemenov.com/plugins/magnific-popup/documentation.html
title => TranslatingAfter that I prepare czech language.
Thanks
Hello, I just set Base, Highlight, Icon and Notification color and there is ok, no more notice in log.
Thank you for your time!Forum: Plugins
In reply to: [Anything Order by Terms] Polylang issueHi, thank you so much, it works ok now ! ??
Only some PHP notice in different instance of WordPress I have :O)[05-Nov-2020 19:26:34 UTC] PHP Notice: Trying to get property ‘queries’ of non-object in /home/ttt/domains/ttt.com/public_html/wordpress/wp-content/plugins/anything-order-by-terms/modules/base/class.php on line 282
[05-Nov-2020 19:26:34 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/ttt/domains/ttt.com/public_html/wordpress/wp-content/plugins/anything-order-by-terms/modules/base/class.php on line 282- This reply was modified 4 years, 4 months ago by Hrohh.
Forum: Plugins
In reply to: [Anything Order by Terms] Polylang issuePlease add some filter for excluding taxonomy. I dont want ordering products based on languages in Woocommerce product category page. Thank you
Forum: Plugins
In reply to: [Anything Order by Terms] Polylang issueMy new function
protected function get_current_term( $q = null) { global $wp_query; $term_slug = ''; $q = !is_null( $q ) ? $q : $wp_query; $queries = !empty($q->tax_query) ? $q->tax_query->queries : ''; if ( !empty( $queries ) && !empty($queries[0]['taxonomy']) ) { $lang = array_search( 'language', array_column( $queries , 'taxonomy' ) ); if ( $lang ) array_splice( $queries, $lang, 1 ); } if ( !empty($queries) && !empty($queries[0]['taxonomy'])) { $taxonomy = $queries[0]['taxonomy']; $taxonomy_object = get_taxonomy( $taxonomy ); // Only if term have ui. Example language taxonomy Polylang. if ($taxonomy_object && $taxonomy_object->show_ui ) { // Need term slug, not term id if ('term_id' == $queries[0]['field'] ) { $term_id = $queries[0]['terms'][0]; $term = get_term($term_id, $taxonomy); $term_slug = $term->slug; } else { $term_slug = $queries[0]['terms'][0]; } } } return $term_slug; }
Forum: Plugins
In reply to: [Post Type Archive Pages] compatibility PolylangAlso please
<p><?php _e( ‘Select the page to display the archive for each of your post types.’, ‘post-type-archive-pages’ ); ?></p>Forum: Plugins
In reply to: [Geolocation IP Detection] PHP8.0 fatal errorFIX
if ( !is_object( $reader ) || !method_exists( $reader, ‘metadata’) )
return __(‘Maxmind File Database (file does not exist or is not readable)’, ‘geoip-detect’);Forum: Plugins
In reply to: [Accordion Blocks] Add resize eventHello, ok thanks. I just edited your code and it works ok
item.content.slideUp(duration, function() { triggerResize(); setCloseItemAttributes(); }); item.content.clearQueue().stop().slideDown(duration, function() { triggerResize();