How to get all tags of a custom post type by id

Loop approach: usually archive-{custom_post}.php file. FIRST: custom_post_plural Stands for a group of custom posts of certain type. Example of custom_post_plural: products custom_post_singular Stands for an individual custom post type. Example of custom_post_singular: product SECOND: var $args_custom_post_plural are the parameters of the WP_Query. var $custom_post_plural is the execution of the query. I used var $custom_post_plural_output to … Read more

Custom post type, permalinks, taxonomies and blog posts

I would do as @cfx suggested: register_taxonomy( // Call before register_post_type() to give rewrite rule priority. ‘bike_category’, // Should be singular, not bikes_category ‘bike’, array( ‘rewrite’ => array( ‘with_front’ => false, // This will strip the “blog” prefix ‘slug’ => ‘bikes’, ), // Other args ) ); register_post_type( ‘bike’, // Post type should be singular … Read more