websupporter
Forum Replies Created
-
Hi mith20,
the widget is part of the PRO version, which you can get via CodeCanyon:
https://codecanyon.net/item/filter-custom-fields-taxonomies/6964843?ref=websupporterAll the best,
David.Forum: Plugins
In reply to: [Filter Custom Fields & Taxonomies Light] How to show all posts at first loadHi nasmans,
unfortunatly, this is not possible. The show all attribute shows all possible results. And, as you might have noticed, when you go to your search page, no option is selected in the first place.The only workaround (but a rather not so nice one) would be: If you select something, you see how the URL changes to
www.example.com/my-search-page/#-sf{...}
If you link to the page with the #-sf{…}, the page loads and right afterwards, the search results for the specific selection are loaded.
Glad, you’ve found the problem ??
Hi John,
how do you create these custom fields? Is it for example with ACF or Types and they are checkboxes (or any kind of multichoice??Thanks.
Forum: Plugins
In reply to: [Filter Custom Fields & Taxonomies Light] How to show all posts at first loadHi robruifrok,
this should help you:
https://profisearchform.com/help/want-show-possible-results-beginning/All the best and thanks for using my plugin ??
Forum: Reviews
In reply to: [Filter Custom Fields & Taxonomies Light] Best of allThanks ??
Forum: Plugins
In reply to: [Filter Custom Fields & Taxonomies Light] Text searchHi andy,
it would be great, if you could send me the link. Even better the admin credentials.please contact me via here.
thanks a lot.
Forum: Plugins
In reply to: [Filter Custom Fields & Taxonomies Light] Text searchHi Andy,
no, its supposed to work. What exactly is the problem and the settings? I’ve checked a bit into the fulltext search since I was optimizing it for the next premium version.If you get double results, please replace the function
sf_content_filter
in the file profi-search-filter.php with the following code:function sf_content_filter( $sf_where, &$wp_query ){ global $wpdb; if( $wp_query->get( 'sf-title' ) || $wp_query->get( 'sf-meta' ) || $wp_query->get( 'sf-content' ) || $wp_query->get( 'sf-excerpt' ) ): $concat_fields = array(); $st = $wp_query->get( 'sf-title' ); if( isset( $st ) && !empty( $st ) ): $concat_fields[] = $wpdb->posts . '.post_title'; $search_term = $st; endif; $st = $wp_query->get( 'sf-content' ); if( isset( $st ) && !empty( $st ) ): $concat_fields[] = $wpdb->posts . '.post_content'; $search_term = $st; endif; $st = $wp_query->get( 'sf-excerpt' ); if( isset( $st ) && !empty( $st ) ): $concat_fields[] = $wpdb->posts . '.post_excerpt'; $search_term = $st; endif; $metas = $wp_query->get( 'sf-meta' ); $post_meta_keys = array(); if( isset( $metas ) && is_array( $metas ) && count( $metas ) > 0 ){ foreach( $wp_query->get( 'sf-meta' ) as $meta => $search_term ){ preg_match( '^meta\[(.*)\]^', $meta, $match ); $concat_fields[] = md5( $meta ) . '.meta_value'; $post_meta_keys[ md5( $meta ) ] = $match[1]; } } $concat_string = ''; foreach( $concat_fields as $f ): $concat_string .= ',' . $f . ', " "'; endforeach; $sf_add_where = ''; if( !empty( $concat_string ) ): $sf_add_where = ' AND ('; $concat_string = "CONCAT( \"\" " . $concat_string . ") LIKE '%" . esc_sql( like_escape( $search_term ) ) . "%' "; $sf_add_where .= $concat_string; $sf_add_where .= ' ) '; if( count( $post_meta_keys ) > 0 ): foreach( $post_meta_keys as $key => $val ): $sf_add_where .= " AND " . $key . ".meta_key ='" . $val . "'"; endforeach; endif; endif; $sf_where .= $sf_add_where; endif; return $sf_where; }
This code will be soon also in the premium version and I will update the free version as soon as possible.
I hope, this solves your problem.
Forum: Plugins
In reply to: [Filter Custom Fields & Taxonomies Light] ImagesHi duchu,
well it is not natively supported. I’ve tried to find a workaround for checkboxes.If you create a checkbox, go to “Individual” in the configuration dialog. Instead of the text place the URL or the Image.
If you are using the shortcode, place this script after the shortcode:
<script>jQuery( '.sf-checkbox-wrapper label' ).each( function(){ var img = '<img src="' + jQuery( this ).text() + '" alt="" />'; jQuery( img ).appendTo( this ); jQuery( this ).contents().filter(function(){return (this.nodeType == 3);}).remove(); })</script>
Hope this helps.
Forum: Hacks
In reply to: admin_enqueue_scripts hook & internationalizationFor everyone, who might be interested, its a reported bug:
https://core.trac.www.ads-software.com/ticket/18857Forum: Hacks
In reply to: admin_enqueue_scripts hook & internationalizationSo, the central question I’ve got is the following:
/wp-admin/includes/plugin.php
Line 983:
$admin_page_hooks[$menu_slug] = sanitize_title( $menu_title );
Why? Why not:
$admin_page_hooks[$menu_slug] = sanitize_title( $menu_slug);
I think this would solve my problem. Or does it need to be the internationalizable $menu_title for some reason?
Forum: Plugins
In reply to: [Content4Subscribers] script.js missing?The script.js was in an earlier version of the plugin necessary. Now its obsolete. Removed in 1.1
Forum: Plugins
In reply to: [WP AmASIN - The Amazon Affiliate Shop] How to use the shortcodesHi a1b2,
click on WP AMASIN > Shortcodes. There you’ll find the list of shortcodes and an explanation.From this list:
[list_product_cat]
Output of the product categories[list_new_products count=9]
The nine latest products[asin asin=B009K1Q072 type=image]
Imagelink for this ASIN[shoppingcart]
For the Shopping Cart PageAll the best.
Hi erica sacristy,
your issue has been solved in the recent release 0.9.6. Please see also our blogpost for more information about the release:https://websupporter.net/wp-amazon/release-0-9-6/
All the best
Yeah, I know. Sorry. At the moment I’m wondering myself. Have to go more into it. Sorry for the inconvenience.