Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mikko Saari

    (@msaari)

    add_filter( 'relevanssi_content_to_index', 'rlv_index_post_date', 10, 2 );
    function rlv_index_post_date( $content, $post ) {
        $date = get_the_time( "F Y", $post->ID );
        $content .= " $date";
        return $content;
    }

    Add this to your theme functions.php and rebuild the index, and it should work.

    Thread Starter bluehelmet

    (@bluehelmet)

    That’s exactly what I needed! Thank you!

    I really appreciate that you take time to help everyone on this support forum.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Indexing post date’ is closed to new replies.