WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] events shortcode location argument not working (7 posts)

  1. raskull
    Member
    Posted 1 year ago #

    [events_list limit="10" location="1"]

    This shortcode is not working. It returns no events even though I have events associated with the location where post = 1. Please advise.

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

  2. FranceImage
    Member
    Posted 1 year ago #

    The shortcode is working

    Location id is the id from the em_locations table (not the post id)

    http://franceimage.com/wp-plugins/events-manager/the-crane-bar/

    How do you find it without fumbling with the database is the question

    Anyway, very nice plugin

  3. raskull
    Member
    Posted 1 year ago #

    I suspected as much. And that is the question -- I can't very well tell my client to crack open the db and have a look for the ids...

  4. agelonwl
    Member
    Posted 1 year ago #

    this works on my test site; location="x" should be the location id at Events > locations

  5. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    you can find a location id in the admin area, view your locations, go to 'screen options' on the top right of that page and choose to show the Location ID column.

  6. raskull
    Member
    Posted 1 year ago #

    I should always remember to check Screen Options! Any way to make that a default view? Thanks.

  7. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    Once you select it, the column should appear by default. Otherwise you can use the same WP hooks we use to make it default as we do in classes/em-location-posts-admin.php

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic