How to remove slug from hierarchical custom types in 3.5.2

To accomplish this I always disable the slug when adding the custom post type, and add custom rewrites with the add_rewrite_rule function.

See also this codex page: https://codex.wordpress.org/Rewrite_API/add_rewrite_rule

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)