Filtering posts by an already registered taxonomy

The default Event Calendar’s query will ask only for ‘event’ post type. You need to hook into pre_get_posts WordPress action, filter proper query and add ‘post’ post type to query params. This is the “WordPress way” of doing it. However, you can try doing it the “Events Calendar way”, by searching the codebase for a … Read more

WordPress uses url different from defined in rewrite arg of custom post type

Try setting your ‘rewrite’ in the CPT to: ‘rewrite’ => false, save permalinks. check frontside of site to ensure it worked. (if it doesn’t you may have a duplicate code somewhere…) then set it back to: ‘rewrite’ => ( ‘slug’ => ‘banaan’, ‘with_front’ => false, ), flush permalinks again. Smile (hopefully) Why have you elected … Read more