• Resolved jacfri

    (@jacfri)


    Hi

    I have created a calendar for the following week using the content slider from the enfold theme and using the great event manager plugin

    i have programmed each element of the slider to show the events of a particular day using the following shortcodes and placeholders

    [events_list scope=”today” limit=”5″]#_EVENTLINK a #_LOCATIONLINK alle #_EVENTTIMES
    [/events_list]

    As you can see i have limited the list to 5

    Now i wish to add the function that is brought by the [events_link] shortcode. I manage to add a link under the list no problem (eventhough i would like it to appear only if the limit of 5 is surpassed but that is less important).

    The thing is when i add the shortcode the link connects to my event list page that shows the whole list of events and not only the ones of the date i need.

    I tried adding the scope today to the [events_link] but the argument is ignored.

    Is there any way to
    1. show the link only if limit surpasses 5
    2. generate a link to the events only of the day and not the whole event list

    http://ww.wp.xz.cn/plugins/events-manager/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    1. you can create your own conditional placeholder for this – http://wp-events-plugin.com/tutorials/creating-conditional-placeholders-for-events/

    2. sorry, didn’t quite get what you mean; can you give us more info. about this? or maybe you can also try conditional placeholders for this – http://wp-events-plugin.com/documentation/conditional-placeholders/

    Thread Starter jacfri

    (@jacfri)

    Hi Angelo, thanks fro your reply

    with regards to 2.

    basically at the moment i managed to add a link (that is not conditional ref. question 1, but for the moment acceptable, i will try creating the conditional placeholder as you suggest), using events_link

    this link, brings up the page with all the event list.
    To do this i use
    [events_link] more events…. [/events_link].
    I wish to modify this so that it will only show the events of that day (if today i have more than 5 events, i want the link to display a page with all the events of today and not all the events including those of tomorrow, the day after tomorrow etc.)

    I thought that by adding the argument scope today it would work but it does not.
    [events_link scope=”today”] more events…. [/events_link].

    thanks again for your help

    Hiya,

    To do that you would need to link to an entirely new page on which you can use the following shortcode;
    [events_list scope="today"]

    Thanks
    Phil

    Thread Starter jacfri

    (@jacfri)

    Great philipjohn i tried it and it works perfectly

    now i just need to understand how to modify the program to have the link to the new event page only appear if the number of events is more than in this case 5

    You probably need to use offset and orderby DESC for that:

    http://wp-events-plugin.com/documentation/event-search-attributes/

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘add scope to events_link shortcode’ is closed to new replies.