I would recommend using iso 8601 date parameters, e.g. 2021-03-12. It should work that way.
Thanks, so I’ve already tried. Does not work.
In quotes or not.
[jeherve_post_embed url=”https://www.gattezzadifoligno.it” wpapi=false include_title=false include_images=false include_excerpt=false include_content=true before=”2021-03-03″]
hm, that’s odd. I’ll take a closer look next week. In the meantime, and if you feel comfortable editing PHP files, could you try to edit the plugin’s files and see if that fixes your problem? In the rest-api-post-embeds.php file, on line 732, you should see this:
$before = $this->jeherve_post_embed_convert_date( $atts['before'] );
Could you try to replace that line with
$before = $atts['before'];
Let me know how it goes.
Thanks,
I await your verification.
Sergio
I’ve just released an update for my plugin, that should fix the issue. Let me know how it goes!
Now it works correctly.
However it is not possible to use “before” and “after” to implement the “beetween” function, for example using the same date for “before” and “after”.
Maybe in a future update.
Thank you.
Sergio
I’m afraid that will not be possible. WordPress’ REST API does not allow one to specify the inclusive date query parameter when fetching posts via the API; that option is only available when fetching posts via direct queries on the site.
That said, if the option becomes available with WordPress one day, I’ll be happy to use it in my plugin!