Created
August 20, 2016 10:45
-
-
Save pacren/b0671aa61888c57e350302eb72148417 to your computer and use it in GitHub Desktop.
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 rewind_posts(); ?> | |
| <?php wp_reset_postdata(); wp_reset_query(); ?> | |
| <?php $current_page = (get_query_var('paged')) ? get_query_var('paged') : 1; | |
| $args = array( | |
| 'paged' => $current_page, | |
| 'post_type' => 'post', | |
| 'showposts' => 20, | |
| 'order' => 'DESC', | |
| 'orderby' => 'ID', // How create orderby => 'rating-result' | |
| 'category_name' => 'forex-brokers' | |
| ); | |
| query_posts($args); | |
| ?> | |
| <?php while (have_posts()) : the_post(); ?> | |
| <tr> | |
| <td> | |
| <a href="?php echo esc_url( get_permalink($post->ID) ); ?>"><?php the_field('otitle');?></a> | |
| </td> | |
| <td><?php echo do_shortcode('[mrp_rating_result show_title="false" show_count="false" result_type="score"]'); ?></td> | |
| <td><?php echo do_shortcode('[mrp_rating_item_results rating_item_ids="2" result_type="score"]'); ?></td> | |
| <td><?php echo do_shortcode('[mrp_rating_item_results rating_item_ids="1" result_type="score"]'); ?></td> | |
| <td><?php echo do_shortcode('[mrp_rating_item_results rating_item_ids="3" result_type="score"]'); ?></td> | |
| <td> | |
| <a href="<?php echo esc_url( get_permalink($post->ID) ); ?>#comment__block" class="reviews-link"></a> | |
| </td> | |
| </tr> | |
| <?php endwhile; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment