Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author Barry

    (@barryhughes-1)

    It is!

    You can find a list of parameters accepted by that shortcode over here – in this case the limit parameter is likely to be what you are interested in ??

    Thread Starter Ziandinh

    (@ziandinh)

    Brilliant. Thank you!

    Plugin Author Barry

    (@barryhughes-1)

    Pleasure!

    Thread Starter Ziandinh

    (@ziandinh)

    Hi again. I’m sorry for all these questions…I am an amateur coder here, so I’m still having some trouble with this particular issue. I can’t seem to find the specific embed parameter that actually limits the number of posts displayed within the same category. I see parameters that lets you display specific categories over others. But I don’t see any specific to my question…perhaps I’m missing something? Thanks!

    Plugin Author Barry

    (@barryhughes-1)

    Perhaps I’m misunderstanding – can you describe exactly what you are using for the shortcode, what the results are and what you are expecting?

    Thread Starter Ziandinh

    (@ziandinh)

    Sure!

    So I have two pages (Page A and Page B) on my site that I want the event category to appear on. Page A is where I want only one event from category “x” to display. Page B is where I would want every single event post from category “x” to appear (like an archive of all category “x” events). I was wondering if Event Rocket had a parameter that I could use that would limit the number of event posts displayed from category “x” to appear on Page A? Right now all of my event posts from category “x” are displaying on both Page A and B but I want only one event to display on Page A. Is that something I could do using these embed parameters? ?? Thanks for your patience!

    Plugin Author Barry

    (@barryhughes-1)

    Yep so the limit parameter should be all you need, to restrict the number of events that are listed:

    [event_embed category="some-cat" limit="1"]

    Put the above on page A (note we are setting a limit of 1) and a matching shortcode for a different category on page B (note the much higher limit):

    [event_embed category="other-cat" limit="100"]

    You could set the limit to -1 if you truly wish to list an unlimited number of events, but generally speaking I’d suggest using a more reasonable (but sufficiently high number).

    Thread Starter Ziandinh

    (@ziandinh)

    Oh! Great! Ok I just used the limit parameter and it worked beautifully… Thank you! Maybe I had a typo because I used something similar and it didn’t not work before.

    If I set the limit to -1, would that essentially turn that page into an “archive” of all events in that category even the ones that have already passed? (<—because that is ideal for page B)

    Thanks so much for your quick replies Barry!!

    Plugin Author Barry

    (@barryhughes-1)

    If I set the limit to -1, would that essentially turn that page into an “archive” of all events in that category even the ones that have already passed? (<—because that is ideal for page B)

    Not quite, it will show an unlimited number of upcoming events. However, you can simply add some from and to parameters:

    [event_embed category="other-cat" limit="100" from="1900-01-01" to="2099-12-31"]

    Thread Starter Ziandinh

    (@ziandinh)

    OH wow, thank you once again for your help. You’ve been the most helpful plugin author I’ve ever encountered, thank you for that. As I will not need the Events Calendar Pro, I would still like to donate to the plugin. Should I donate to Events Rocket or Events Calendar?

    Also, I have one final how-to question that I will post as a new topic so others can search it. Thank you for your help!!

    Plugin Author Barry

    (@barryhughes-1)

    Happy to help!

    If you’d like to donate to either project (ultimately Event Rocket rests on the foundation laid by The Events Calendar so donating there directly isn’t inappropriate by any means) that would be great.

    My own donation link for Event Rocket currently points to a non profit organization I like to support, but I’d be equally stoked to hear you had donated to any worthy cause ??

    Thread Starter Ziandinh

    (@ziandinh)

    Which non profit organization? I would like to donate toward that! Can you send me the link?

    Plugin Author Barry

    (@barryhughes-1)

    “You could set the limit to -1”

    Thanks, you made my day!

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Can you limit how many event category posts show up?’ is closed to new replies.