Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hide block if post published date is less than xx/xx/xxxx #112

Open
swest opened this issue Sep 6, 2024 · 1 comment
Open

hide block if post published date is less than xx/xx/xxxx #112

swest opened this issue Sep 6, 2024 · 1 comment
Labels
Enhancement New enhancement or feature request.

Comments

@swest
Copy link

swest commented Sep 6, 2024

What problem does this address?

I have an Author Block that is appended to the end of every post. I need that block to be hidden on posts with a published date before a certain date. How can I accomplish this?

What is your proposed solution?

I suppose this could be handled via posts meta and the addition of date comparison operators. So you could construct a visibility setting that would hide a block if the post published date is less than a certain date.

@ndiego ndiego added the Enhancement New enhancement or feature request. label Sep 6, 2024
@ndiego
Copy link
Owner

ndiego commented Sep 6, 2024

Would it also be useful if you could set something like "X days since the post has been published"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New enhancement or feature request.
Projects
None yet
Development

No branches or pull requests

2 participants