-
AuthorSearch Results
-
December 14, 2021 at 1:22 pm #115752
Hello, one question,
How to put the product filter (Premmerce filter-it is in Woocommerce widget area) on the top (above the products) on mobile view, together with toggler (Show/Close filter) button?
If template meets the WooCommerce standards, the filter would work like that in the mobile version but it doesn’t. Any idea?
Thanks in the advance, regards.December 20, 2020 at 10:57 am #112697In reply to: Portfolio filter
Try custom css
.filter-holder .icon-filter::before {
content: “All”;
font-family: inherit;
}February 6, 2018 at 11:10 pm #96265In reply to: Product showcase
Thanks Tolga. Worked beautifully.
FYI – for future reference this one does the same job, but gives more control: https://wordpress.org/plugins/cat-tag-filter-widget/
January 19, 2018 at 3:13 pm #95806Topic: Red and black filter images
in forum BusinessLoungeHi there,
On a previous post I asked you if you could send me your red filter psd file.
http://support-rt.com/forums/topic/red-filter-on-slider-backgound-image/Could you please also send me the black one ? example on this page : http://businesslounge-demo.rtthemes.com/image-content-boxes/
Thank you very much !
March 22, 2016 at 6:52 am #80794In reply to: Products filter
Hi
there is no filtering ability for products. If you are refering to the admin area follow this thread
http://support-rt.com/forums/topic/add-category-filter-to-product-custom-post-type-in-admin/
To solution is provide as is as it is beyond forum support. If you don’t know how to code please hire a coder from https://www.freelancer.com/hire/Hire-a-Coder/ as we unfortunately don’t provide such service for which i apologize.
I am gonna close this thread as it is from another user and i dont want to spam him with emails.
http://support-rt.com/forums/topic/create-your-own-threads/
Best regards,
Neo
Theme supportDecember 2, 2015 at 6:58 am #77796In reply to: Filter product by category in admin
Hi
its documented here
http://support-rt.com/forums/topic/add-product-categories-column-on-products-admin-page/
http://support-rt.com/forums/topic/add-category-filter-to-product-custom-post-type-in-admin/
If you don’t know how to code please hire a coder from http://microlancer.net as we unfortunately don’t provide such service for which i apologize.
Best regards,
Neo
Theme supportNovember 26, 2015 at 4:50 pm #77624In reply to: Erorr 404 when go to next page in portfolio
Hi
All the theme is working fine, Just in the portfolio page the pagination give me 404 error.
By search, I found this article:
Portfolio filter error in RTL versionYou said: “filtering and pagination cannot work together.”
So I fix it by removing the filter option.PLZ let me know if you will fix it in any next update.
Regards
November 24, 2015 at 1:54 am #77486In reply to: I cant able to reararrange the portfoli filters
Hello,
The filters are sorted by name. There is only one way to customize it, overwriting the function. You can put the following function in your functions.php this will be reverse the sorting from A-Z to Z-A
PHP123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208/*** Portfolio Loop* @param array $wp_query* @param array $atts* @return output*/function rt_portfolio_post_loop( $wp_query = array(), $atts = array() ) {global $rt_portfolio_post_values, $rt_portfolio_list_atts;//sanitize fields$atts["id"] = isset( $atts["id"] ) ? sanitize_html_class( $atts["id"] ) : 'portfolio-dynamicID-'.rand(100000, 1000000);//defaults$rt_portfolio_list_atts = shortcode_atts(array("id" => 'portfolio-dynamicID-'.rand(100000, 1000000),"list_layout" => get_theme_mod(RT_THEMESLUG.'_portfolio_layout'),"layout_style" => get_theme_mod(RT_THEMESLUG.'_portfolio_layout_style'),"item_style" => get_theme_mod(RT_THEMESLUG.'_portfolio_item_style'),"filterable" => "false","pagination" => "true","ajax_pagination" => "false","featured_image_resize" => get_theme_mod(RT_THEMESLUG."_portfolio_image_resize"),"featured_image_max_width" => get_theme_mod(RT_THEMESLUG."_portfolio_image_width"),"featured_image_max_height" => get_theme_mod(RT_THEMESLUG."_portfolio_image_height"),"featured_image_crop" => get_theme_mod(RT_THEMESLUG."_portfolio_image_crop"),"list_orderby" => "date","list_order" => "DESC","item_per_page"=> 10,"categories" => "","ajax" => "false","ids" => "","paged" => 0,"wpml_lang" => "",), $atts);extract($rt_portfolio_list_atts);$wp_reset_postdata = false;//counter$counter = 1;//custom queryif( ! $wp_query ){//pagedif( $pagination && $paged == 0 ){if (get_query_var('paged') ) {$paged = get_query_var('paged');} elseif ( get_query_var('page') ) {$paged = get_query_var('page');} else {$paged = 1;}}//create a post status array$post_status = is_user_logged_in() ? array( 'private', 'publish' ) : "publish";//general query$args = array('post_status' => $post_status,'post_type' => 'portfolio','orderby' => $list_orderby,'order' => $list_order,'posts_per_page' => $item_per_page,'paged' => $paged);if( ! empty ( $ids ) ){$ids = ! empty( $ids ) ? explode(",", trim( $ids ) ) : array();$args = array_merge($args, array( 'post__in' => $ids) );}if( ! empty ( $categories ) ){$categories = is_array( $categories ) ? $categories : explode(",", rt_wpml_lang_object_ids( $categories, "portfolio_categories",$wpml_lang ) );$args = array_merge($args, array('tax_query' => array(array('taxonomy' => 'portfolio_categories','field' => 'id','terms' => $categories,'operator' => "IN")),) );}$wp_query = new WP_Query($args);//filter navigationif( $filterable !== "false" ){//categories - turn into an array$sortCategories = $categories;$sortNavigation = "";if( ! empty( $sortCategories ) ){if(is_array($sortCategories)){foreach ($sortCategories as $arrayorder => $termID) {$sortCategories = get_term_by('id', $termID, 'portfolio_categories');$sortNavigation .= '<li><a href="#" data-filter=".'.$sortCategories- rel="nofollow">slug.'">'.$sortCategories->name.'</a></li>';}}}else{$sortCategories = get_terms( 'portfolio_categories', 'orderby=name&hide_empty=1&order=DESC' );$sortCategories = is_array($sortCategories) ? $sortCategories : "";foreach ($sortCategories as $key => $term) {$sortNavigation .= '<li><a data-filter=".'.$term- rel="nofollow">slug.'" title="'.$term->name.'">'.$term->name.'</a></li>';}}$filter_holder = ! empty( $sortNavigation ) ? sprintf('<div class="filter-holder" data-list-id="%s"><ul class="filter_navigation">%s %s</ul></div>',$id,'<li><a href="#" data-filter="*" class="active animate" title="'.apply_filters("filter_nav_text",__("Show All","rt_theme")).'" rel="nofollow"><span class="icon-filter"></span></a></li>',$sortNavigation) : "";echo $filter_holder;}$wp_reset_postdata = true;}//get page & post counts$post_count = $wp_query->post_count;$page_count = $wp_query->max_num_pages;//item width percentage$list_layout = ! empty( $list_layout ) ? $list_layout : "1/3";//layout style$add_holder_class = $list_layout == "1/1" ? "" : ( $layout_style == "grid" ? " border_grid fixed_heights" : " masonry" ) ;$add_holder_class .= $filterable !== "false" ? " filterable" : "";//column class$add_column_class = rt_column_class( $list_layout );$add_column_class .= $layout_style == "masonry" ? " isotope-item" : "";//row count$column_count = rt_column_count( $list_layout );if ( $wp_query->have_posts() ){//open the wrapperecho "\n".'<div id="'.$id.'" class="portfolio_list clearfix '.$add_holder_class.'" data-column-width="'. $column_count .'">'."\n";//the loopwhile ( $wp_query->have_posts() ) : $wp_query->the_post();//get post values$rt_portfolio_post_values = rt_get_portfolio_loop_post_values( $wp_query->post, $rt_portfolio_list_atts );//selected term list of each post$term_list = get_the_terms($wp_query->post->ID, 'portfolio_categories');//add terms as class name$addTermsClass = "";if($term_list){if(is_array($term_list)){foreach ($term_list as $termSlug) {$addTermsClass .= " ". $termSlug->slug;}}}//open row blockif( $layout_style != "masonry" && $list_layout != "1/1" && ( $counter % $column_count == 1 || $column_count == 1 ) ){echo '<div class="row clearfix">'."\n";}echo $list_layout != "1/1" ? '<div class="col '.$add_column_class.' '.$addTermsClass.'">'."\n" : "";get_template_part( 'portfolio-contents/loop','content');echo $list_layout != "1/1" ? '</div>'."\n" : "";//close row blockif( $layout_style != "masonry" && $list_layout != "1/1" && ( $counter % $column_count == 0 || $post_count == $counter ) ){echo '</div>'."\n";}$counter++;endwhile;//close wrapperecho '</div>'."\n";if( ( $pagination !== "false" && $ajax_pagination === "false" ) || ( $pagination !== "false" && $layout_style != "masonry" ) ){rt_get_pagination( $wp_query );}if( $ajax_pagination !== "false" && $layout_style == "masonry" && $page_count > 1 && $ajax === "false" ){$rt_portfolio_list_atts["purpose"] = "portfolio";rt_get_ajax_loader_button( $rt_portfolio_list_atts, $page_count );}}//reset post data for the new queryif( $wp_reset_postdata ){wp_reset_postdata();}}Please feel free to ask if you have any further questions.
Best Regards,
TolgaSeptember 15, 2015 at 1:08 pm #74891Hi
There is no change that the filter_var is undefined unless you have a php problem.
http://php.net/manual/tr/function.filter-var.php
You server does not support filters. They should be enabled. Please contact your hoster.
This is related to your server. Do you have another hoster not the same as yours wher you can try?
Best regards,
Neo
Theme supportAugust 14, 2015 at 2:08 pm #73941In reply to: Alpha Search Results
Hi
You cannot add sorting order for a search result list to the excerpt filter. Those are two different things and that is incorrect coding. I dont know where you got that code but please consult and follow the wordpress codex and remove that code snippet.
This thread http://support-rt.com/forums/topic/search-results-with-featured-image-product-layout is on adding a featured image to a search result page and alter the excerpt result per post.
It has nothing todo with the search order.
RT17 display the search results based on latest post first which all themes do (not only rtthemes, but even the default wordpress themes). There is no asc or desc code in the theme todo what you want. You can checkout the search.php in the theme root folder. Its a default wordpress search result php file. I havent seen one theme so far that does it different and presents the search in alphabetical order. If i search i would want to see the most recent article first.
If you want that different you need to create a filter.
http://wordpress.stackexchange.com/questions/41691/how-do-i-filter-the-search-results-order
https://www.google.com/search?q=wordpress+display+search+results+asc
Note search cannot detect if its a product or portfolio or post search. Its a global search. Altering it by filters will affect all your search results for any post type
You can try and add of these filters to the theme functions.php just before the last ?> to alter your search results:
PHP123456789add_filter('posts_orderby','my_sort_custom',10,2);function my_sort_custom( $orderby, $query ){global $wpdb;if(!is_admin() && is_search())$orderby = $wpdb->prefix."posts.post_type DESC, {$wpdb->prefix}posts.post_date ASC";return $orderby;}PHP123456789add_filter('posts_orderby','my_sort_custom',10,2);function my_sort_custom( $orderby, $query ){global $wpdb;if(!is_admin() && is_search())$orderby = $wpdb->prefix."posts.post_type ASC, {$wpdb->prefix}posts.post_date DESC";return $orderby;}If you dont know how to code please hire a coder from http://microlancer.net as we unfortunately dont provide such service for which i apologize.
Best regards,
Neo
Theme support -
AuthorSearch Results