问题是the_ratigs()
跳到外面<div id="wpratings">
function wpratings( $atts, $content = null ) {
return '<div id="wpratings"><b>Rating: </b>' . the_ratings() . '</div>';
}
add_shortcode("wpratings", "wpratings");
简码输出示例:
5.00 <<< this is output of the_ratings()
Here is the post content
Rating: <<< this is place of <div id="wpratings">