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 pleaseIf 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.
Quote from ilan_l on November 21, 2019, 16:34rehub 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/
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/
Quote from ilan_l on November 21, 2019, 16:52i also found old documentation :
i added sort panel , but it didnt work .
can you check my site ?
left detail in the private
i also found old documentation :
i added sort panel , but it didnt work .
can you check my site ?
left detail in the private
Quote from ilan_l on November 21, 2019, 17:10ok 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]
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]
Quote from Pablo Borysenco on November 25, 2019, 09:07Hello
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
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
Quote from ilan_l on November 25, 2019, 10:03thanks ,
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
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
Quote from ilan_l on November 25, 2019, 11:39ok 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 .
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 .
Quote from Pablo Borysenco on November 26, 2019, 09:12Hello
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
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
Quote from ilan_l on November 26, 2019, 09:54the 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":
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":
Quote from Pablo Borysenco on November 27, 2019, 11:04Hello
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":
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":
Quote from Pablo Borysenco on November 28, 2019, 10:04Hello
Welcome;)
Hello
Welcome;)