• Hello,

    My site has a few Custom Post Types which were working fine until I installed and enabled Events Manager.

    Before installing :
    /paintings -> showed archive
    /paintings/slug -> showed single
    /galleries/slug -> showed taxonomy archive

    After installing :
    /paintings -> 404
    /paintings/slug -> 404
    /galleries/slug -> still works

    Bellow is the configuration for my Custom Post Types.

    What could be causing this and is there a way to resolved it ?

    register_post_type( 'paintings',
        'public' => true,
        'publicly_queryable' => true,
        'exclude_from_search' => false,
        'show_ui' => true,
        'query_var' => true,
        'show_in_nav_menus' => true,
        'menu_position' => 8,
        'rewrite'	=> array( 'slug' => 'paintings', 'with_front' => true ),
        'has_archive' => 'paintings',
        'capability_type' => 'post',
        'hierarchical' => false,
        'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'trackbacks', 'custom-fields', 'revisions', 'sticky')
        )
    );
    register_taxonomy( 'galleries',
    	array('paintings'),
    	array('hierarchical' => true,
    		'show_ui' => true,
    		'query_var' => true,
    		'rewrite' => array( 'slug' => 'galleries' ),
    	)
    );

    https://www.ads-software.com/extend/plugins/events-manager/

Viewing 4 replies - 1 through 4 (of 4 total)
  • hi,

    did you try to re-save permalinks in wp settings and em settings?

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    two suggestions:

    1) are these snippets wrapped in an action e.g. in an init action?

    2) I’ve seen this happen before, not exactly sure why (haven’t seen exact setups, but pretty sure it’s a similar reason as to #1 above) but installing Custom Posts UI plugin and creating your custom posts using that plugin sets things right.

    Thread Starter Sebastien Couture

    (@scouture)

    Hello,

    Re-saving permalinks did the trick.

    Thank you

    Sebastien

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    hopefully that should do it!

    I’d also try just in case to save your EM settings too as it resets permalinks to be resaved, sometimes it’s caused here, but my suggestions above should help if that’s the case

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Events Manager messes up permalink structure of other Custom Post Types’ is closed to new replies.