(PHP) wp_question get posts from previous 30 times, purchase by views

I use this code to get the every month most viewed posts: `$a single_month_ago = time()-(60*60*24*31)` `$args = array(` `’posts_for each_page’ => ‘100’,` `’meta_key’=>’views_monthly’,`  `’orderby’=>’meta_benefit_num’,`  `’date_query’     => array(` `’after’ => array(` `’year’  => date(‘Y’,$1_month_back),` `’month’ => date(‘m’,$1_thirty day period_in the past),` `’day’   => date(‘d’,$a single_month_ago),`         `),`     `),` `’order’=>’DESC’` `)` But I won’t be able to get it to incorporate posts that were posted in the last 30 times. What is mistaken …

Read More

What’s erroneous with my PHP code?

I want an additional website page (dependent on the index) to list posts requested by views. So I copied index.php in my theme and designed an additional web page dependent on it. But the question crashes the MySQL server and returns a timeout error. I tested with a different query that just queries 3 posts …

Read More