WordPress.org

Support

Support » Plugins and Hacks » [Plugin: All-in-One Event Calendar] aio calendar an %postname%

[Plugin: All-in-One Event Calendar] aio calendar an %postname%

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Yani Iliev

    @yaniiliev

    @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

    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

    Plugin Contributor Yani Iliev

    @yaniiliev

    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

    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

    @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!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: All-in-One Event Calendar] aio calendar an %postname%’ is closed to new replies.