2021-01-10 11:11:35

Related Docs

Do You Need Help or Expertise?

Is editing Source Code not Your Thing? Are you in a tight Time Schedule and need to deliver a fully scalable and safe solution fast to your Clients?

Maybe you want to incorporate the Software found on TukuToi unbranded and royalty free in your Clients Projects after customizing it as per your Projects requirements?

Or eventually you need some training on any WordPress Plugin, Theme or their creation and maintenance?

ShortCodeEvaluate for recurring Date

ShortCode to evaluate recurring dates

This creates a ShortCode to use when Date Custom Fields (storing Timestamps) need to be evaluated by recurring dates, just as for Birthdays.

Create a Custom Post Type, associate a Date Custom Field to it, list all Posts of the Custom Post Type in a View and use the ShortCode to evaluate the Date in a WPV Conditional.

Remember to Register the ShortCode in Views Settings > Front End Content > 3rd Party ShortCode Arguments.

function born_today_func( $atts ) {
        'birthday' => get_post_meta(get_the_ID(), 'wpcf-your_slug', true),
    ), $atts)
    if(((date('d', $birthday)) == date('d')) && (date('m', $birthday)) == date('m')){
        return 1;
        return 0;
add_shortcode( 'born-today', 'born_today_func' );

You can now use this ShortCode in any WPV Conditional Evaluation to check wether TODAY() is equal to [born-today]