Black Friday Sale! Get up to $40 off GP Premium!Learn more

Reply To: Disable Post Date

Home Forums Support Disable Post Date Reply To: Disable Post Date

#189308
Tom
Lead Developer
Lead Developer

Try this:

add_filter( 'generate_post_date','generate_remove_single_date' );
function generate_remove_single_date()
{
    // If we're on a single post, remove the date
    if ( is_single() )
        return false;

    // Or else, show it
    return true;
}

Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/