Created
November 15, 2017 17:37
-
-
Save n7studios/52cc8922cbba5b0b4e513e4fc1e8ca65 to your computer and use it in GitHub Desktop.
Comment Rating Field Pro Plugin: Output Comment Sorting Dropdown: https://www.wpzinc.com/documentation/comment-rating-field-pro-plugin/developers-output-comment-sorting-dropdown/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* For developers and themes which do not make use of the WordPress wp_list_comments() function, | |
* the below code can be added to output the dropdown options for sorting comments by rating. | |
* | |
* There must be a Field Group configured at Comment Rating Field Pro > Field Groups to display | |
* rating fields for the Post Type the visitor is viewing. | |
*/ | |
if ( function_exists( 'output_comment_sorting_dropdown' ) ) { | |
output_comment_sorting_dropdown( $post_id, $output_style ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment