Home Support Advanced post slider Offset from php query? Reply To: Offset from php query?

#509
Digonto Ahsan
Keymaster

You need to modify plugin file though its not recommended as your modification will be gone if you update the plugin later. If you need then try following solution.

Open ‘advanced-post-slider.php’ from plugin folder, go to line no around 313 and look for the line $template = $res1[0]->template;

Then paste the following line of code just above the previously mentioned line of code.

$query_arg['date_query'] = array( array( 'year' => date('Y'), 'month' => date('n') ) );

After adding the line it should look like the following screenshot.

Advanced post slider date query