Events Manager
[resolved] Sorting events in a calendar by custom attribute (4 posts)

  1. Jpyper
    Posted 4 years ago #

    Can I use any of my custom attributes to pull/sort events into a calendar via the [events_calendar] shortcode?

    So if I have an attribute of "Hidden" can I show only events that have "yes" as the value of the "Hidden" attribute?

    Thank you in advance! Love this plugin.


  2. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 4 years ago #

    wouldn't advise using attributes (if you mean the ATT placeholder), because it's stored as a serialized array in the db

    if you check the tutorials (e.g. the walkthrough), you could create a custom search attribute and yes, it would work!

  3. Jpyper
    Posted 4 years ago #

    Thanks for the advice. I'm following along with the walkthrough like you suggested. I'm stuck at where I'm inserting new data into the EM_META_TABLE. I think I have the object_id and meta_key correct but I'm not sure how to pull the correct meta_value.

    I'm using a radio field with only two options (yes/no). In the walkthrough, the checkbox form is given values of the variable $style_id, and this variable is added to the meta_value of the new table entry. Since my radio field has two options with values of "yes" and "no" I don't have a variable to plug in using the INSERT TO command.

    I think this is more a generic programming block for me than an EM problem, so I am not expecting a lengthy step by step explanation of what to do. If it's short and easy to show me how, then great. Otherwise if you could point me to a good place to find how to solve this issue, I would be very grateful.

    Thanks again!

  4. Jpyper
    Posted 4 years ago #

    I figured out my programming problem on my own. Thank you though, I know the question was out of scope of this plugin's support.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic