当前年份类型Wordpress

时间:2017-05-19 09:04:14

标签: php wordpress

我有一个查询帖子

<?php 
    $args = (array(
    'post_type' => 'issue_number', 
    'posts_per_page' => 13, 
    'paged' => $paged  
                    ));

    // query
    $the_query = new WP_Query( $args );

?>


    <?php while( $the_query->have_posts() ) : $the_query->the_post();?>

      bla bla

    <?php endwhile;  ?>

我想只显示当前年份的帖子类型(issue_number)...怎么办?

1 个答案:

答案 0 :(得分:0)

这应该这样做。

int main()
{
  unsigned int x=12131222, y=898565;
  unsigned int z=58964796, c=6543217;
  unsigned long long t, result;
  unsigned int r;
  int i;

  x = 14900243 * x+ 123456789;
  y ^= y << 21;
  y ^= y >> 17;
  y ^= y << 30;

  /* Do not set y=0! */

  t = 42945843 * z + c;
  c = t >> 32;
  z = t;

  result=(unsigned int)(x>>32) + (unsigned int)y +z;

  for ( i = 0; i < 10; i++) 
  {
    r = result; //use the LFSR
    printf ("%u, ", r);
  }

  return 0;
}