I am creating a custom page type (issue) that pulls in standard blog posts, but I only want it to display posts before a certain date. That date is a custom field date attached to this page. I am using Pods to create the custom field.
The looper for blog posts works if use the Query Building and I enter the date ‘19 jul 2021’ in the Date published before. It also works if I use other formats like ‘2021-07-19’.
However, it doesn’t work when using the custom date field shortcode.
The custom field meta is: issue_date_cutoff
It outputs correctly when pasting into a normal text element using {{dc:post:meta key=“issue_date_cutoff”}}.
But not in the looper. The shortcode actually breaks the looper completely. I have also gone back to the field attributes in Pods and changed the date output format several things.
I have also tried using the Query String and can’t get it to work either.
Pods do have their own magic tag that works in a text element but not the looper. This is [pods]{@issue_date_cutoff}[/pods]
Is there anything I can do to fix this?
Screenshot - this works

Screenshot - this doesn’t work

Hi @Innovatek
Thanks for reaching out.
It might be an issue with the Date Format that is stored into your meta value and the WordPress date formats are not similar. Please check if {{dc:post:meta key=“issue_date_cutoff”}} this returns the date in the format which is similar to the format shown in the first screenshot.
If that does not return the value in the same format, you need to change the format of the meta value you are using. You can change the WordPress date format from Settings > General of your Admin Dashboard.
If that return the same format, please provide login credentials for your site in a secure note to examine it further, including:
– WordPress Site URL & Login URL
– Specific Page where you are having this issue
– WordPress Admin username/password
To create a secure note, click the key icon underneath any of your posts.
Thanks
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.

