Add scorer to results
-
Hello,
Is it possible to display the scorer to the results? I have a custom query and I would like to add to the scorer of t goal
$previous_results = new WP_Query(array('post_type'=>'wpcm_match', 'posts_per_page' => 1, 's' => 'Alderney', 'showposts' => 2 )); if ( $previous_results->have_posts() ) : while ( $previous_results->have_posts() ) : $previous_results->the_post(); $date = date_i18n( get_option( 'date_format' ), strtotime( $post->post_date ) ); $time = date_i18n( get_option( 'time_format' ), strtotime( $post->post_date ) ); $side = wpcm_get_match_clubs( $post->ID ); // badge $badges = wpcm_get_match_badges( $post->ID, 'crest-medium', array( 'class' => 'home-logo' ) ); $badges = wpcm_get_match_badges( $post->ID, 'crest-medium', array( 'class' => 'away-logo' ) ); $format = get_match_title_format(); if( $format == '%home% vs %away%') { $badge = $badges[0]; } else { $badge = $badges[1]; } // Results $score = wpcm_get_match_result( $post->ID );
`
Thank you
- The topic ‘Add scorer to results’ is closed to new replies.