Jose Martinez

Results 4 comments of Jose Martinez

@cyberscribe Please help. I was able to replicate the issue with the example in the examples folder. Configure route /speaker/jose/ so that it would redirect to /speaker/9-jose/ and same issue.

The filter post_type_link is not firing, therefore it cannot re-route // Load global functionality function wp_mvc_load_global_functionality(&$loader) { //public or admin, depending on context add_action('init', array($loader, 'init')); add_action('widgets_init', array($loader, 'register_widgets')); add_filter('post_type_link',...

@cyberscribe I believe I found the "bug". In the code where it registers a custom post (mvc_post_adaptar.php line 133), two of the $args, publicly_querable is set to false and exclude_from_search...

@marcelmastel try this instead. `$user_model = mvc_model('MvcUser'); $user = $user_model->find_by_id(1);` If you want to use the other way you need to do a mapping to a model in your Project...