• How could I modify the second function to tell: IF a value is set for the first function, so make the value of the second function equal (but it’s still possible to modify it)

    <input type="date" id="periodo_1da" name="periodo_1da" class="list_prezzi" ><?php echo esc_attr( get_the_author_meta( 'periodo_1da', $user->ID ) ); ?><br/>
                    <span class="locazione">prezzo dal</span>
                </td>
     <td>
                   <input type="date" id="periodo_1a" name="periodo_1da" class="list_prezzi" ><?php echo esc_attr( get_the_author_meta( 'periodo_1a', $user->ID ) ); ?><br/>
                    <span class="locazione">al</span>

    When I have to pick a second date in the calendar, of course it is posterior to the first date, I want to economize a lot of clicks

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Anonymous User 20287723

    (@anonymized-20287723)

    Hm… What is the second function? What is the first function?

    When you say function, do you mean input eg <input>?

    If you want them to be equal to one another and economize clicks, you could use JavaScript, and since WP still supports JQuery you could use that to make it even easier for yourself.

    Otherwise we don’t know enough about what you are trying to do to help you. Please be very descriptive when asking for help so that we can help.

Viewing 1 replies (of 1 total)

The topic ‘condition tying 2 date meta fields’ is closed to new replies.