Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Import search from ajax lite failed › Reply To: Import search from ajax lite failed
You are welcome!
1. If the nav bar has any widget or block area, then you could add the plugin shortcode there. Check the theme options or the customizer, sometimes there is a way to add custom shortcodes/texts. If there is none, then you may have to ask the theme developer if there is any way to add shortcodes there. Sometimes the only way to do that is via custom code, they will know which file to edit for the child template.
2. The rating is doable via the {_wc_average_rating} custom field, use this for better layout:
{_wc_average_rating type="number" decimals=2 decimal_separator="."}
For the comments:
Try adding this code via the Code Snippets plugin or to the functions.php file in your theme/child theme directory – make sure to have a full server back-up first for safety. For more details you can check the safe coding guidelines.
add_filter('asp_cpt_advanced_field_value', 'asp_add_comments_number', 10, 3);
function asp_add_comments_number($value, $field, $result) {
if ( $field == 'post_comments') {
return get_comments_number($result->id);
}
return $value;
}
After that the plugin will recognize the {post_comments} pseudo variable and fetch the comments count.