CustomPress - How to add custom post types including taxanomy

Hello, I want to create a Website like: https://trackmytour.com/
So My idea was to, use CustomPress to create a custom post type called "Stops" or something similar. This custom post type shall have these three categories called: "Trips, Waypoints Type and Weather.
Before we have been adding a map to the post type, but I think it will be better to use a custom post type.

So I created it and then when creating the taxonomy I can’t assign those to the new custom post type.

Once done I want a map assigned to every new Waypoint created with the geolocations from an uploaded photo or from choosing the location on the map. Then I need a Way to generate dynamic maps showing for every trips taxonomy a single map (showing all locations on a map linked to the article.

I'm glad for every suggestion yoou can give me

thanks

  • Rene

    Well,
    I'm good what about you?

    Well I think if someone bought the package via prosites+ and opens his dashboard, he should find Waypoints. than he can create to Maps respective to the trips taxonomy.

    I'm actually not sure how to do it best. It would be great to have more maps/trips.

    My Customers than can create a Trip called Shanghai, one called Abu Dhabi, etc. and than create a post using their mobile device or the backend and add them to the respective trip, including the other to taxanomies. and than i would need a way to present a map for each single post as well as all posts of a Trip.

  • Rene

    here are my screenshots:

    the attaached is the screenshot of the custom post type, however, when creating a custom taxanomy I nee to assign it to the custom post type but in the field: post type, my created custom post type is not appearing.

    further those are not showing up on the subsite.

    they appear when I use a custom plugin with this code:

    <?php
    /*Plugin Name: FMT-Waypoints Post Type
    Description: This plugin registers the 'Waypoints' post type. This shall only be used on Follow My Trip.
    Version: 1.0
    License: GPLv2
    */
    
    // register custom post type to work with
    function wpmudev_create_post_type() {
    	// set up labels
    	$labels = array(
     		'name' => 'Waypoints',
        	'singular_name' => 'Waypoint',
        	'add_new' => 'Add New Waypoint',
        	'add_new_item' => 'Add New Waypoint',
        	'edit_item' => 'Edit Waypoint',
        	'new_item' => 'New Waypoint',
        	'all_items' => 'All Waypoints',
        	'view_item' => 'View Waypoint',
        	'search_items' => 'Search Waypoints',
        	'not_found' =>  'No Waypoints Found',
        	'not_found_in_trash' => 'No Waypoints found in Trash',
        	'parent_item_colon' => '',
        	'menu_name' => 'Waypoints',
        );
        //register post type
    	register_post_type( 'Waypoint', array(
    		'labels' => $labels,
    		'has_archive' => true,
     		'public' => true,
    		'supports' => array( 'title', 'editor', 'excerpt', 'custom-fields', 'thumbnail','page-attributes' ),
    		'taxonomies' => array( 'post_tag', 'category' ),
    		'exclude_from_search' => false,
    		'capability_type' => 'post',
    		'rewrite' => array( 'slug' => 'Waypoints' ),
    		)
    	);
    }
    add_action( 'init', 'wpmudev_create_post_type' );
    ?>
  • Rene

    I tried to add custom taxanomy the same way but it is not working either:

    <?php
    /*Plugin Name: FMT - Trips Taxanomy
    Description: This plugin registers the 'Trip category' taxonomy and applies it to the 'Trip' post type.
    Version: 1.0
    License: GPLv2
    */
    
    // register two taxonomies to go with the post type
    function wpmudev_register_taxonomy() {
    	// set up labels
    	$labels = array(
    		'name'              => 'Trip Categories',
    		'singular_name'     => 'Trip Category',
    		'search_items'      => 'Search Trip Categories',
    		'all_items'         => 'All Trip Categories',
    		'edit_item'         => 'Edit Trip Category',
    		'update_item'       => 'Update Trip Category',
    		'add_new_item'      => 'Add New Trip Category',
    		'new_item_name'     => 'New Trip Category',
    		'menu_name'         => 'Trip Categories'
    	);
    	// register taxonomy
    	register_taxonomy( 'Tripcat', 'Trip', array(
    		'hierarchical' => true,
    		'labels' => $labels,
    		'query_var' => true,
    		'show_admin_column' => true
    	) );
    }
    	// set up labels
    	$labels = array(
    		'name'              => 'Waypoint Type Categories',
    		'singular_name'     => 'Waypoint Type Category',
    		'search_items'      => 'Search Waypoint Type Categories',
    		'all_items'         => 'All Waypoint Type Categories',
    		'edit_item'         => 'Edit Waypoint Type Category',
    		'update_item'       => 'Update Waypoint Type Category',
    		'add_new_item'      => 'Add New Waypoint Type Category',
    		'new_item_name'     => 'New Waypoint Type Category',
    		'menu_name'         => 'Waypoint Type Categories'
    	);
    	// register taxonomy
    	register_taxonomy( 'Waypoint Typecat', 'Waypoint Type', array(
    		'hierarchical' => true,
    		'labels' => $labels,
    		'query_var' => true,
    		'show_admin_column' => true
    	) );
    
    		// set up labels
    	$labels = array(
    		'name'              => 'Weather Categories',
    		'singular_name'     => 'Weather Category',
    		'search_items'      => 'Search Weather Categories',
    		'all_items'         => 'All Weather Categories',
    		'edit_item'         => 'Edit Weather Category',
    		'update_item'       => 'Update Weather Category',
    		'add_new_item'      => 'Add New Weather Category',
    		'new_item_name'     => 'New Weather Category',
    		'menu_name'         => 'Weather Categories'
    	);
    	// register taxonomy
    	register_taxonomy( 'Weathercat', 'Weather', array(
    		'hierarchical' => true,
    		'labels' => $labels,
    		'query_var' => true,
    		'show_admin_column' => true
    	) );
    add_action( 'init', 'wpmudev_register_taxonomy' );
    ?>

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.