WordPress.org

Ready to get started?Download WordPress

Forums

All-in-One Event Calendar
aio calendar an %postname% (6 posts)

  1. passimal
    Member
    Posted 2 years ago #

    Hello ,

    1) Is it possible to URL rewriting the link ??
    this :http://www.xxxx.com/ai1ec_event/conseil-dadministration-fevrier-2012/?instance_id=16
    in
    http://www.xxxx.com/agenda/conseil-dadministration-fevrier-2012/

    2) traduction :
    week ==> semaine in french
    Week of février 13 ==> semaine du 13 février (in french)

    Very good plugin ;-)
    Best regards

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

  2. Yani Iliev
    Member
    Plugin Contributor

    Posted 2 years ago #

    @passimal
    It is possible.
    You will have to play with the rewrite string located in: app/helper/class-ai1ec-app-helper.php
    Line 178
    Additional information can be found here: http://codex.wordpress.org/Function_Reference/register_post_type

  3. passimal
    Member
    Posted 2 years ago #

    HEllo ,

    1- Ok thanks but I dont understand because in line 178 rewrite is "true".

    so the rwrite rule must works no ?

    2- For traduction in french I found !
    in differents files on differents directory

  4. Yani Iliev
    Member
    Plugin Contributor

    Posted 2 years ago #

    Hi,
    1 - You will need to change the true in rewrite with something from the url I sent you:
    Default: true and use post type as slug
    $args array
    'slug' - prepend posts with this slug - defaults to $post_type - use array( 'slug' => $slug ) to customize permastruct
    'with_front' - allowing permalinks to be prepended with front base (example: if your permalink structure is /blog/, then your links will be: false->/news/, true->/blog/news/) - defaults to true

    2 - Translation files are in languages folder

  5. brettatkin
    Member
    Posted 2 years ago #

    I tried your suggestion and it works for event detail pages but it breaks the main events page. Here is an example:

    http://keg.brettatkin.com/events/

    http://keg.brettatkin.com/events/bud-to-boss-cincinnati-oh/

    Any ideas?

    Thanks!

    Brett

  6. sedicinoni
    Member
    Posted 2 years ago #

    @yani.iliev

    As brettatkin said, setting up the rewrite array as you suggested works in calendar page, but once entering the details of the event, the wordpress engine doesn't "pinpoint" the new slug to the ai1ec_event post type.

    I've also tried to change the AI1EC_POST_TYPE, setting it as the same of the rewrite slug, with no luck.

    Do you have any extra suggestion?

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic