• Resolved deez

    (@devonscalisi)


    Hi all,

    In this forum post: https://www.ads-software.com/support/topic/hide-category-from-search-category-dropdown-menu?replies=5

    …I asked about excluding a category from the dropdown menu in the event manager search function. Ciamin created a solution for me.

    Another aspect of what I’m looking to accomplish requires me being able to exclude specific categories from an individual event page, where the categories are listed in bullet point formatting.

    Can someone help me identify the plugin file that I would need to edit in order to exclude specific categories from displaying in the individual event page bullet point list of categories that apply to that specific event page?

    Please let me know how I can illustrate my question more precisely if what I’ve written above doesn’t make enough sense.

    Thanks!

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi,

    Can you clarify on what basis you need to exclude / include categories from the list? Is it the same for every event, or does it depend on the category the event is in, or something like that? Thanks.

    Thread Starter deez

    (@devonscalisi)

    Essentially, what I’m trying to do is modify how categories work across the site, in how the plugin uses them. I’m trying to use categories in two ways.

    1. Categories listed as partners/organizers of the events
    2. Categories used as regional groupings of where the events will be hosted

    I know that the plugin contains location-based technology, but it’s not as simple as I would like for the general user of the page I’m making.

    (Again, thank you so much for your help on the Search field dropdown menu, Caimin.)

    In this case, I would like to list the categories that are being used as partners/organizers of the event on the individual event page bullet-point listing. Below is the code that I’m using for single event formatting in the plugin settings tab:

    <div style="float:right; padding:10px; top:10px; border:1px solid #e1e1e1; margin-top:10px; margin-left:10px; margin-bottom:10px; background-color:#f8f8f8; width:30%;"><p>Presented by:</p>#_EVENTCATEGORIES</div>
    #_EVENTNOTES<p> </p><p> </p>
    {has_location}<div style="padding:10px;display:block;">#_LOCATIONMAP</div>{/has_location}<p> </p><hr/>
    <div align="center" style="width:100%; padding:10px;">
    <h5 style="display:inline;">View related events:</h5> #_EVENTTAGS
    </div>

    ^ In the “Presented by: …” section, I would like to exclude categories by ID. As I stated above, I’m using categories for both location groupings & event partners. I would like to remove/exclude the location grouping categories from these individual event pages.

    I hope the above explains my goals more accurately. And thank you very much for your help!

    Ok, think I get it ??

    But am I right in thinking the categories that need excluding never change and they’re the same for every event?

    If that’s the case, then you’d probably need to a similar line of code as in the search dropdown menu mod from the other thread, instead of using the #_EVENTCATEGORIES placeholder.

    Thread Starter deez

    (@devonscalisi)

    The categories that require excluding will be added onto, but rarely.

    This is going to be likely too much narrative, but for instance:

    Events Page Search Field
    In the dropdown menu (thanks to you), I’ve excluded all partner/organizer categories. That dropdown menu only contains geographical regions now for users to easily search for events happening in a specific area.

    Individual Events Page
    In this thread, I’ve been trying to figure out how I can now exclude those region categories, for the sake of only listing the partner organization categories in the “Presented by: …” formatting that I’ve created.

    Eventually I’ll need to exclude more partner organization categories (which I’ll be able to do easily in the dropdown search field code that you’ve given me, Caimin), and I’ll need to exclude more region categories as our event outreach expands geographically.

    In getting back to the thread, are you saying that the ‘exclude’ code piece that you wrote in the other thread would work if I combined it with single event formatting field in the plugin settings that I embedded above? Or will I have to edit one of the plugin’s .php files as I did for the dropdown search menu?

    Thanks for all of your help, Caimin!

    The one thing I’m not following is whether the “Presented by: …” list will be the same for each event.

    If it is, the easiest solution will probably be to manually add / edit the list under Events > Settings > Formatting > Events > Default single event format.

    Thread Starter deez

    (@devonscalisi)

    The “Presented by [categories]” code creates a bullet point list of the partner categories that were assigned to the event when the event was originally created. Unfortunately, since I also have to tick it with the region categories where the event is happening, the individual events page also currently lists the region-specific category, as well as the partner categories.

    On these individual event pages, I would only like the partner categories to appear listed, which are specific to each created event, and again, assigned when the event is created. I would like to exclude the region categories by ID if possible from these individual event pages, and only allow them to show on the search dropdown menu (which you’ve already helped me with!) The regional categories would always be excluded on the individual event pages, which makes me think that a piece of code similar to the one you generated for the search dropdown menu in the other thread is applicable in this situation as well. I just don’t know what code I should use, and if that exclude code should be placed in the plugin settings formatting tab, or if I have to edit a .php file itself.

    Now I just need to figure out how I can exclude the region-based categories on these individual event pages, so that the events only list the associated partner categories that are assigned to it when it’s created.

    I think you’ll need to create a custom template for the single event page, since the changes you need to make are quite extensive.

    The other code should be a good starter, you could use the post / event ID as a sort of selector to choose which categories are excluded / included.

    Thread Starter deez

    (@devonscalisi)

    Uh oh. I’m sad to hear that my changes are extensive! ??

    The other code should be a good starter, you could use the post / event ID as a sort of selector to choose which categories are excluded / included.

    Caimin, can you illustrate this point to me?

    For instance, let’s pretend this following event page has more categories associated with it in the “Categories” bullet point section. Is there any help you can provide in the code I would need to use to exclude by ID “Boston” from showing up on this event page?

    Example Event Page: https://bit.ly/1h1dLYq

    Hiya,

    Given the amount of custom coding required for this you’ll probably need to seek help from a developer on this one… it’s a bit beyond our support capabilities really ??

    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Hide a Specific Category from Individual Event Page Bulletpoint List’ is closed to new replies.