Skip to content

Commit

Permalink
issue #1
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusgimenez committed Apr 10, 2015
1 parent 2de62a1 commit 65c1ca9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion archive-agenda.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<?php
echo '';
$temp = $wp_query; $wp_query = null; $wp_query = new WP_Query();
$wp_query->query('post_type=agenda' . '&paged=' . $paged . '&posts_per_page=8&orderby=meta_value&order=DSC&meta_key=ag_data');
$wp_query->query('post_type=agenda' . '&paged=' . $paged . '&posts_per_page=8&orderby=meta_value&order=DESC&meta_key=ag_data');
while ( $wp_query->have_posts() ) : $wp_query->the_post(); ?>

<?php $my_meta = get_post_meta($post->ID,'_my_meta',TRUE); ?>
Expand Down
2 changes: 1 addition & 1 deletion includes/loop_agenda_sidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<div id="bg-eventos-agenda">

<!-- Loop -->
<?php $newsArgs = array( 'order' => 'DESC', 'post_type' => 'agenda', 'posts_per_page' => 3);
<?php $newsArgs = array( 'order' => 'DESC', 'orderby' => 'meta_value', 'meta_key' => 'ag_data', 'post_type' => 'agenda', 'posts_per_page' => 3);
$newsLoop = new WP_Query( $newsArgs );
while ( $newsLoop->have_posts() ) : $newsLoop->the_post(); ?>
<?php $my_meta = get_post_meta($post->ID,'_my_meta',TRUE); ?>
Expand Down

0 comments on commit 65c1ca9

Please sign in to comment.