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

Update: Using Date based Searches #43

Open
jimtrue opened this issue May 13, 2019 · 1 comment

Comments

Projects
None yet
1 participant
@jimtrue
Copy link
Contributor

commented May 13, 2019

Issue Info

Issue Description

Just wanted to add the example that Jim and I were discussing for here. I hope it's helpful and sorry for any wonky formatting. I wound up editing this in Drafts but it wasn't liking the syntax.

But what if you want to list a few posts from a custom post type by something like a specific single date? We'll want to use something like this:

Thursday 17 January 2020

[pods name="event" where="CAST(date_of_event.meta_value as DATE) BETWEEN '2020/01/17' and '2020/01/17'" limit="10" template="Event Day Listing"]

Friday 18 January 2020

[pods name="event" where="CAST(date_of_event.meta_value as DATE) BETWEEN '2020/01/19' and '2020/01/18'" limit="10" template="Event Day Listing"]

Saturday 19 January 2020

[pods name="event" where="CAST(date_of_event.meta_value as DATE) BETWEEN '2020/01/19' and '2020/01/19'" limit="10" template="Event Day Listing"]

Be sure your dates are formatted correctly in your shortcode(s) and are matching what you have set in your Pods' CPT field.

Assets

Related Pods Framework/Add-on issues

Acceptance Criteria

This doc is ready to publish when:

  • Overview Created
  • Quick Start (if Needed) Created
  • Excerpt Created for Summary
  • Keywords, Difficulty and Context completed
  • Related Docs, Videos, FAQs, Code Snippets referenced
  • Code Review Completed (if needed)

From: Maxwell White

@jimtrue jimtrue added this to the Ongoing Doc Updates milestone May 13, 2019

@jimtrue jimtrue self-assigned this May 13, 2019

@jimtrue jimtrue added the docs label May 13, 2019

@issue-label-bot

This comment has been minimized.

Copy link

commented May 13, 2019

Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.85. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.