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 | |
| add_action( 'save_post', 'modify_post_content' ); | |
| function modify_post_content( ) { | |
| $postArgs= array( | |
| 'post_type' => 'prime_activities', | |
| 'post_parent' => 0, | |
| 'date_query' => array( | |
| array( | |
| 'after' => 'April 2nd, 2018', |
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 get_header(); ?> | |
| <div id="primary" class="content-area"> | |
| <main id="main" class="site-main"> | |
| <?php | |
| $update_today = date("Y-m-d",mktime(0,0,0,date("m"),date("d"),date("Y"))); | |
| $postArgs= array( |
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 | |
| function my_searchwp_indexer_unindexed_args( $args ) { | |
| // TODO: customize $args in any way you'd like, see @link https://codex.wordpress.org/Template_Tags/get_posts | |
| // Example 'after' => date('Y-m-d', strtotime('January 1, 2017' )) | |
| $args['date_query'] = array( | |
| 'after' => date('Y-m-d', strtotime('-2 years' )) | |
| ); | |
| return $args; | |
| } | |
| add_filter( 'searchwp_indexer_unindexed_args', 'my_searchwp_indexer_unindexed_args' ); |