• I am trying to only show events according to attribute – is this possible?

    Example:
    I add a new attribute – ‘Assigned to’
    I add a name (current logged in username) to the ‘Assigned to’ field in the event form

    So, I assign an event to Bob, Bob logs in and now he can see only that event.

    How can I show events where that “assigned to’ username matches the logged in username?

    https://www.ads-software.com/extend/plugins/events-manager/

Viewing 9 replies - 16 through 24 (of 24 total)
  • Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    not sure, what was the subject?

    Sorry to hijack this thread a bit but I see things that might be useful to my own issue.

    I want a featured event area above the event search on the list page. How do I obtain the category id to create a conditional statement?

    Would I just use: echo do_shortcode('[events_list category="8"]');

    Thanks in advance

    @the1path

    Yes, you can do that by customizing the events-search.php template

    https://wp-events-plugin.com/documentation/using-template-files/

    I did this eventually by adding a “Featured” Category and finding out its ID in my case it was 3.

    I then added this at the top of events-list.php :

    echo "<h2>Featured Events</h2>";
    echo do_shortcode('[events_list category="3"]');

    Does the trick, now just got to add styles.

    I have to say being a non-coder I find the templating system very difficult to follow for this plugin, looks like its all variables passed from other functions.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    we try to limit the vars passed, but it can’t really be avoided.

    out of curiosity, is it just the vars that confuse you?

    pitschkac

    (@pitschkac)

    I realize this post is 4 months old but I am hoping someone has created an answer? Basically I have a site set where users login and then create personal events. I only want them to see the events they create and no one else. Can someone created a PHP script that I can just plug into the mu-plugin folder and work?

    Help is greatly appreciated. Thanks

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    This is to do with event ownership and capabilities, which is possible. Downside is that WP shows events of other users in wpadmin but don’t show a link for you to edit that event (unless you have permissions)

    If you prevent users from logging in via the backend, you can create pages on your site that users can log in and create events on. This way they don’t see other users’ events.

    John Bueno

    (@john-bueno)

    I was previously using EM_Events::get() to echo get my events as an object. I recently updated to version 4 and for the most part my code is still working though EM_Events::get() no longer seems to get the category. This was my old code:

    <div class=”location”>
    <span class=”city”>’.$event->location->town.'</span>
    <span class=”category’.$catclass.'”>’.$event->category->name.’ EM_Events::get()</span>
    <span class=”title”>’.$event->name.'</span>
    </div>’;

    thoughts?

    Thanks!

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    pls post this on a new thread John

Viewing 9 replies - 16 through 24 (of 24 total)
  • The topic ‘[Plugin: Events Manager] Display by Attribute’ is closed to new replies.