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

Shortcode for just current event post? #235

Open
calexbrown opened this issue Feb 18, 2017 · 2 comments
Open

Shortcode for just current event post? #235

calexbrown opened this issue Feb 18, 2017 · 2 comments

Comments

@calexbrown
Copy link

I'm currently developing a website for a client and I want the shortcode to only display the event that it's currently on, not all events. any way to do this?

screen shot 2017-02-18 at 12 43 24 am

@slimndap
Copy link
Owner

There is currently no shortcode to display the event that is currently on.
You can try to mimic it by setting start and end times, eg [wpt_events start="-1 hour" end="+1 hour"], but that may not be good enough.

The best way to do this is by adding a new shortcode with a couple of lines of code in the functions.php of your (chlild) theme.

@slimndap
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants