Support

Home Forums Event Espresso Premium Calender shortcode event category id not working

Calender shortcode event category id not working

Posted: February 19, 2014 at 12:33 am


Morten Mouritzen

February 19, 2014 at 12:33 am

Hello,

So i created a categori html & css which have the event category id html-css-1384941851.

I want that category to appear in the calandar, and only that one.

Here is a shortcode that should be able to do just that.
[ESPRESSO_CALENDAR event_category_id=”your_category_identifier”]

I put in the category event id, and put the shortcode in a regular page.
[ESPRESSO_CALENDAR event_category_id=”html-css-1384941851″]

The calandar are showing all events, and not the one i want.

Any ideas?


Dean

February 19, 2014 at 4:44 am

Hi,

The only thing I can think of is a typo error in the id or shortcode. I tested out a category with the same name and it worked flawlessly.


Morten Mouritzen

February 19, 2014 at 4:53 am

Yea hehe but thats not the case ๐Ÿ™‚

I tried with several different event categori idยดs.

The one i posted is actually also one that i had, at that giving time.

Dean i think you have access to my site, i know i send an email. Be my guest though, i created a page called “kalender” which is danish for “calendar”.

On that page there is the shortcode and stuff that you need.

Again if you want to take a look at it, let me know. ๐Ÿ™‚


Dean

February 19, 2014 at 6:48 am

OK, I’ve fixed this. The calendar shortcode had got corrupted by some span tags (this was only visible via the TEXT tab). I have set it back to the correct structure and tested it, it’s fine. It currently does not have a category attached to it.


Morten Mouritzen

February 19, 2014 at 7:23 am

Ok so you made an edit to which file?

Or ? ๐Ÿ™‚


Tony

  • Support Staff

February 19, 2014 at 8:29 am

I didn’t work on this but it sounds like the change was made within the ‘kalender’ page itself where the [ESPRESSO_CALENDAR] shortcode was in use.

As an example, here is your shortcode within the page editor (on a test site) in visual mode http://take.ms/KCod2

All looks fine, correct?

Now switch to Text mode….

http://take.ms/b8UOX

Notice the span tags? These are not displayed within visual mode, but will break the shortcodes functionality (as the function that parses the shortcode can see them and as they are not expected, ignores the content)

When pasting shortcodes I would advise you to do so within the Text tab and check no formatting content is also pasted into the editor around/within the shortcode to prevent this in the future.

Hope that helps.


Morten Mouritzen

February 20, 2014 at 12:34 am

You know, weird things happen when code happens.

I totally forgot about that visual and text mode.

๐Ÿ™‚

Thanks

The support post ‘Calender shortcode event category id not working’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso