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

added upcoming event feature in shortcode #72

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Rajat1192
Copy link
Contributor

No description provided.

@Rajat1192 Rajat1192 changed the title add upcoming event feature in shortcode added upcoming event feature in shortcode Jun 21, 2021
@@ -599,7 +599,7 @@ function eventbrite_events_get_event_meta( $event_id = '' ) {
* render events lisiting.
*/
public function eventbrite_events_archive( $atts = array() ) {
// [eventbrite_events col='2' posts_per_page='12' category="cat1,cat2" past_events="yes" order="desc" orderby="" start_date="" end_date="" ]
// [eventbrite_events col='2' upcoming_events="1 week" posts_per_page='12' category="cat1,cat2" past_events="yes" order="desc" orderby="" start_date="" end_date="" ]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to add this in shortcode list

@@ -692,6 +692,30 @@ public function eventbrite_events_archive( $atts = array() ) {
}
}

//Upcoming events displayed by day
if ( isset( $atts['upcoming_events'] ) && !empty ( $atts['upcoming_events'] ) ) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Handle this feature if past_events and start_date or end_date given.

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

Successfully merging this pull request may close these issues.

2 participants