Home › Forums › General Issues › opening time for store, an idea? › Reply To: opening time for store, an idea?
Hello,
ACF I know, I already use
I know customize display fields on my template,
until the no worries.
I just try to find a logic to display hours for stores.
Automatic template or I simply between the hours, the days are already present in the back office …
A condition
Show hours of shops
If I click yes
it displays the days already record, just for me just add hours
If not
nothing to do
Because
I can see like that,
but I try to see if we can help it and just
<?php if( get_field('hour_monday') ): ?>
Monday: <?php the_field('hour_monday'); ?>
<?php endif; ?>
<?php if( get_field('hour_sunday') ): ?>
Sunday: <?php the_field('hour_sunday'); ?>
<?php endif; ?>
thank you
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.