WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Passing Parameter to Short Code or using URL (6 posts)

  1. netforest
    Member
    Posted 1 year ago #

    I would like to use the shortcode[events_list search="lastname'] but somehow be able to pass the actual lastname to the page. Is this possible? Can one build a URL that will accomplish the same result?

    http://wordpress.org/extend/plugins/events-manager/

  2. zsolemolina
    Member
    Posted 1 year ago #

    There is a way explained in the documentation.
    http://wp-events-plugin.com/documentation/event-attributes/

    But personally, I'm using a taxonomy manager that gives u the possibility to add some fields to events.

  3. netforest
    Member
    Posted 1 year ago #

    Which taxonomy manager are you using? I would be interested in looking at it.

    I am actually trying to use the lastname field that already exists in the WP user profile. I am using member list plugin and ideally would just like to create a link to the events list page for an individual member that would be equivalent to
    [events_list search=:last name"]

  4. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    if you only want to filter by a specific event owner, you can already do it this way:

    [events_list owner="x"]

    where x is the user id of that person.

  5. netforest
    Member
    Posted 1 year ago #

    Is it possible to use a variable for x so it pulls the current user instead of hardcoding it. Or better yet is there an URL that will do the same thing as the short code. Something like

    http://mydomain.com/events/index.php?post_type=event_list&search=lastname

    I am using a member list plugin and would like to link to each member's events.

  6. agelonwl
    Member
    Posted 1 year ago #

    Hi,

    this might be possible; try to see this link http://wp-events-plugin.com/tutorials/creating-custom-event-search-attributes/ then try to use php $_REQUEST instead.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.