Support » Plugin: Events Manager » I want to show events from only 1 category on the Events Page

  • Resolved ptaylor1001

    (@ptaylor1001)


    The website is a club website and so the events page (created by EM and managed via Settings) needs to display only those events that are organised by the club.

    The website also displays events organised by 3rd party organisation on a different page (this bit has been done).

    In the Event Manager Settings I have tried using {has_category_4} but this did not appear to work.

    I tried {has_category_4}<tr>......</tr>{/has_category} and <tr>{has_category_4}...{/has_category}</tr>.

    Any help in restricting the categories to display on the Events Page will be greatly appreciated.

    Thanks

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

Viewing 15 replies - 1 through 15 (of 21 total)
  • Hiya,

    The best way would probably be to use the shortcode, like so;
    [events_list category="4"]

    Cheers,
    Phil

    Thanks Phil

    I just tried that and it seems to get ignored.

    Cheers

    Phil

    Plugin Author Marcus

    (@netweblogic)

    NetWebLogic Support

    are you using the right number? you need to replace 4 with either your category ID, or the slug e.g.”music”

    Thanks Marcus,

    Yes, the number is correct and I’ve tested the code on another page and apart from a couple of minor formatting issues it works there.

    http://www.irishclub.lu/test-events

    Just doesn’t seem to work on the page created by EM (Club Events).

    Cheers

    Phil

    Plugin Support caimin_nwl

    (@caimin_nwl)

    Could you paste the snippet you’re using for your Club Events page? Thanks.

    I think I am attempting to do the same thing. I have four categories of events. I would like events for each category to print on separate pages. Can you get me started in the right direction. I am using the free version of EM via wordpress. Thank you!

    @ruthnovo

    Here is the code that I used on the test page.

    <table cellpadding="0" cellspacing="0" class="events-table" >
        <thead>
            <tr>
    			<th class="event-time" width="110">Date/Time</th>
    <th width="102"></th>
    			<th class="event-description" width="*">Event</th>
    		</tr>
       	</thead>
        <tbody>
    [events_list category="4"]<tr>
    			<td>
                    #_EVENTDATES<br/>
                    #_EVENTTIMES
                </td>
    <td>#_EVENTIMAGE</td>
                <td> #_EVENTLINK
                    {has_location}<br/><i>#_LOCATIONNAME, #_LOCATIONTOWN #_LOCATIONSTATE</i>{/has_location}
                </td>
            </tr>[/events_list]
    </tbody></table>

    The important bit is the [events_list category=”x”]..[/events_list] where x is the category ID.

    @caimin_nwl Currently that is provided by the EM settings and is the code provided by them. I have tried all manner of ways to try and filter to one category (category ID 4) but none have worked.

    I have a similar issue when I try to use EM placeholders and shortcodes in text widgets, they don’t work.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    I tried the above shortcode and seems to be working? can you confirm that 4 is = Irish Club

    about placeholders and shortcodes in text widgets, try something similar using links

    http://www.wprecipes.com/how-to-add-shortcodes-in-sidebar-widgets
    http://wordpress.org/plugins/shortcodes-in-sidebar-widgets/

    I used ths code, selected the appropriate category ID and it worked fine. I would like to customized the format by deleting the event date and event time column. As luck would have I am having trouble getting that done.

    To remove the Dates/Times column it should work if you just delete the <th> for the Date/Times and then the <td> that contains the placeholders for the dates and times.

    I tried that but then the event image becomes larger.

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]

    <table cellpadding="0" cellspacing="0" class="events-table" >
        <thead>
            <tr>
    			<th class="event-time" width="110">Date/Time</th>
    <th width="102"></th>
    			<th class="event-description" width="*">Event</th>
    		</tr>
       	</thead>
        <tbody>
    [events_list category="8"]<tr>
    			<td>
                    #_EVENTDATES
                    #_EVENTTIMES
                </td>
    <td>#_EVENTIMAGE</td>
                <td> #_EVENTLINK
                    {has_location}<i>#_LOCATIONNAME, #_LOCATIONTOWN #_LOCATIONSTATE</i>{/has_location}
                </td>
            </tr>[/events_list]
    </tbody></table>

    When I delete <th> and <td> for event date and event time , thief event image becomes larger. Any thoughts? Thank you.

    And one more Question.. How can I delete all the extra lines at the top of the table? Thx

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘I want to show events from only 1 category on the Events Page’ is closed to new replies.