B
B
bloodrayne6032021-09-24 03:36:46
PHP
bloodrayne603, 2021-09-24 03:36:46

Wordpress hide publication date of published page when clicking checkbox in admin panel. How to implement it?

In the admin panel, in the "Publish" block, you need to check the box, when you click (and then save the page), which will hide the date of publication of the post/page/record on the site. How to implement it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Grach, 2021-09-24
@Justik99

The easiest way.
1. Set ACF, make a "Yes/No" block
2. In the template code, make a condition that if "Yes" - then display <?php the_date() ?>.
Delov for 2 minutes

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question