PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

rehub theme + mdtf , is it possible to orderby overall score of the review ?

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

rehub theme + mdtf , is it possible to orderby overall score of the review ?

rehub theme contain averall score for review , is there option to show the list of post order by the overall score  ?

in the decomantion

https://wp-filter.com/features/shortcode-mdf_custom/

its lead to

https://developer.wordpress.org/reference/classes/wp_query/

 

 

i also found old documentation :

http://rehubdocs.wpsoul.com/docs/rehub-theme/filtered-directory-specifications/how-to-add-sort-panel-before-posts-loop/

i added sort panel , but it didnt work .

can you check my site ?

left detail in the private

ok its work , but the result is button with option to order esc or desc , is there any option for defualt behavior in the shortcode ?

 

[mdf_results_by_ajax
shortcode='mdf_custom
template=any/my-template
post_type=post
orderby=date     ????  is there option to put the overall_score   meta  here  ?

order=esc            ????   is this influencing the sortpanel
taxonomies=category_filter+102
page=1
per_page=10
pagination=b'
animate=1]

Hello

is there option to put the overall_score   meta  here  ? - Unfortunately not! It just passes the value of the current sort. Processing of this value should be in the backend.

Try  to  create  sort panel with"overall_score" - https://c2n.me/44KYL1B.png  AND  do test please

thanks  ,

i just found better solution

i rehub wpbakery i open row 2/3  - 1/3   in the main area i enter the rehub shortcode ["wpsm_toptable id"] with all my post id

in the sidebar i enter the mdtf sidebar , and its solve my prblem

i benefit the mdtf filter options

and i benefit the rehub filter/sort also  .

thanks any way

 

ok i do have some problem with my way

the initial page upload indeed with my post list and order by the shortcode  ["wpsm_toptable id"], but...

when i start to use the filter , i getting :  PHP Errors in Ajax Response  ,  type:"warning", message:"Invalid argument supplied for foreach()", file:"wp-content/plugins/meta-data-filter/views/shortcode/search_panel_terms.php", line: 67...

but the resulat of the filter is correct, but i get post that not in my post list from the rehub shortcode , the result list is matching the mdtf filter list

my problems are  : why mdtf ignore ["wpsm_toptable id"], and i cant decide the order .

 

Hello

Try  in  file - \meta-data-filter\views\shortcode\search_panel_terms.php  add this  code - https://c2n.me/44Mkejr.png

if(!is_array($html_items)){
$html_items=array();
}

 why mdtf ignore ["wpsm_toptable id"], and i cant decide the order . -  It looks like a third-party plugin uses a separate request for posts.  You need customization of the code to adapt the third-party plugin

 

the point you talk about is bit different in my code

 

if(!is_array($filter_data['filter_post_blocks'])){
$filter_data['filter_post_blocks']=array();
}
foreach ($filter_data['filter_post_blocks'] as $id) {
foreach (MetaDataFilterPage::get_html_items($id) as $key => $val) {

if (isset($filter_data[$key])) {
// echo$val['type'],"";
// var_dump($filter_data[$key]);
// echo"<br>*****<br>";
// echo"<br>*********<br>";
switch ($val['type']) {
case"checkbox":

Hello

Please change  this  code:

 

if(!is_array($filter_data['filter_post_blocks'])){
$filter_data['filter_post_blocks']=array();
}
foreach ($filter_data['filter_post_blocks'] as $id) {
$html_items=MetaDataFilterPage::get_html_items($id);
if(!is_array($html_items)){
$html_items=array();
}
foreach ($html_items as $key => $val) {

if (isset($filter_data[$key])) {
// echo$val['type'],"";
// var_dump($filter_data[$key]);
// echo"<br>*****<br>";
// echo"<br>*********<br>";
switch ($val['type']) {
case"checkbox":

done , thx

 

 

Hello

Welcome;)