WordPress.org

Forums

All-in-One Event Calendar
Post ID for slider fails (7 posts)

  1. kawaii_mihoko
    Member
    Posted 1 year ago #

    I am hoping to set specific ai1ec events for my post slider on my homepage, and my theme offers such customization function.

    For the 'post type' field, I enter 'ai1ec_event'. It works, but it displays only the most recently added events.

    To specify which event posts, I enter in the 'post ID' field. I try to enter what I see on the web address when I edit or add an event. For example, I would enter '96' from 'http://website_address/wp-admin/post.php?post=96&action=edit' Unfortunately, my theme spits out a message that says:

    "You have no posts selected for your slideshow!
    Check your theme settings for the global slideshow or the page settings for page slideshows."

    FYI: My theme is 'Custom Community'.

    Anyone can shed a light on this problem? Much thanks!

    http://wordpress.org/extend/plugins/all-in-one-event-calendar/

  2. kawaii_mihoko
    Member
    Posted 1 year ago #

    An update: I've tried a different event calendar plugin and specifying post IDs works, so I know it's not my theme. I don't understand why ai1ec's post IDs are not recognized.

  3. kawaii_mihoko
    Member
    Posted 1 year ago #

    I have looked at my backend database and found multiple records (each with a new post_id) for my multi-day events. However, I see them as one event with a single admin edit page on the wp admin frontend. Not sure if this helps explain my enigma?

  4. yani.iliev
    Member
    Plugin Author

    Posted 1 year ago #

    @ kawaii_mihoko
    There is a record with the ID you are specifying, the issue is that the record is not a post but ai1ec_event. I think that's what causing the problem.
    You may have to edit the theme to make it compatible with the way ai1ec works.

  5. kawaii_mihoko
    Member
    Posted 1 year ago #

    Hi Yani,

    Thanks for your suggestion! I've tried looking into the theme's scripts in the past few days, but I couldn't figure out how to change the scripts. I've also looked at the wp_posts database table of both websites, one with ai1ec activated and the other with a different event calendar plugin activated, and data inputs look identical.

    For example, for both websites under these wp_posts table columns:
    - Post_status: "publish" for event entry with the post_id visible in the url of the event edit page as listed in my original message
    - Post_status: "inherit" for all instances associated with the "publish" entry
    - Post_type: The proper custom post type name, eg. ai1ec_event, is listed

    Also, revisions made to an event will also generate a new entry in the wp_posts table in both cases with post_type = "revision".

    The only difference I can spot between the two databases is not being able to find the corresponding tables for events, categories, feeds, instances, etc. of the second calendar plugin.

    Would you mind to be more specific on how to get this to work? Much thanks!!!

  6. yani.iliev
    Member
    Plugin Author

    Posted 1 year ago #

    @kawaii_mihoko
    Events are stored as custom posts - ai1ec_event
    Then, depending on your choices (recurrence, exception) instances of the event are created.
    So event A - may have 1 to unlimited instances.
    What you see on month,week,agenda views are instances, not ai1ec_event posts.
    However, in your example, you have specified the correct id = 96. It should display the title and the description of the event, just not the correct time when the event occurs.

    How to solve it?
    If you know some php, you might try editing your theme. The other way around would be to hire someone to do it.

  7. kawaii_mihoko
    Member
    Posted 1 year ago #

    Solved! Thanks for your clarification!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic