_x( 'Kins', 'Post Type General Name', 'rotalunar' ), 'singular_name' => _x( 'Kin', 'Post Type Singular Name', 'rotalunar' ), 'menu_name' => __( 'Kins', 'rotalunar' ), 'name_admin_bar' => __( 'Kins', 'rotalunar' ), // 'archives' => __( 'Item Archives', 'rotalunar' ), // 'attributes' => __( 'Item Attributes', 'rotalunar' ), // 'parent_item_colon' => __( 'Parent Item:', 'rotalunar' ), // 'all_items' => __( 'All Items', 'rotalunar' ), // 'add_new_item' => __( 'Add New Item', 'rotalunar' ), // 'add_new' => __( 'Add New', 'rotalunar' ), // 'new_item' => __( 'New Item', 'rotalunar' ), // 'edit_item' => __( 'Edit Item', 'rotalunar' ), // 'update_item' => __( 'Update Item', 'rotalunar' ), // 'view_item' => __( 'View Item', 'rotalunar' ), // 'view_items' => __( 'View Items', 'rotalunar' ), // 'search_items' => __( 'Search Item', 'rotalunar' ), // 'not_found' => __( 'Not found', 'rotalunar' ), // 'not_found_in_trash' => __( 'Not found in Trash', 'rotalunar' ), // 'featured_image' => __( 'Featured Image', 'rotalunar' ), // 'set_featured_image' => __( 'Set featured image', 'rotalunar' ), // 'remove_featured_image' => __( 'Remove featured image', 'rotalunar' ), // 'use_featured_image' => __( 'Use as featured image', 'rotalunar' ), // 'insert_into_item' => __( 'Insert into item', 'rotalunar' ), // 'uploaded_to_this_item' => __( 'Uploaded to this item', 'rotalunar' ), // 'items_list' => __( 'Items list', 'rotalunar' ), // 'items_list_navigation' => __( 'Items list navigation', 'rotalunar' ), // 'filter_items_list' => __( 'Filter items list', 'rotalunar' ), ); $args = array( 'label' => __( 'Kin', 'rotalunar' ), 'description' => __( 'Post Type Description', 'rotalunar' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'comments'), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-image-filter', 'show_in_admin_bar' => true, 'show_in_nav_menus' => false, 'can_export' => true, 'has_archive' => 'kins', 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'kin', $args ); } add_action( 'init', 'rotalunar_cpt_kin', 0 ); add_action( 'init', 'rotalunar_rewrite_rule_kin' ); function rotalunar_rewrite_rule_kin() { add_rewrite_tag( '%numero_do_kin%', '([0-9]+)' ); add_rewrite_rule( '^kin-?([0-9]+)', 'index.php?numero_do_kin=$matches[1]', 'top' ); } add_action( 'parse_request', 'rotalunar_catch_kin_requests' ); function rotalunar_catch_kin_requests( $query ) { if( ! is_admin() && isset( $query->query_vars['numero_do_kin'] ) ){ $the_post = new WP_Query( array( 'post_type' => 'kin', 'meta_key' => 'numero_do_kin', 'meta_value' => $query->query_vars['numero_do_kin'] ) ); if( $the_post->have_posts() ){ wp_redirect( get_permalink( $the_post->post->ID ) ); exit(); } else { wp_redirect( home_url('/kins') ); exit(); } } } function kins_archive_order($query) { if ( ! is_admin() && $query->is_post_type_archive('kin') && $query->is_main_query() ) { $query->set( 'meta_key', 'numero_do_kin' ); $query->set( 'meta_value', 1 ); } } add_action( 'pre_get_posts', 'kins_archive_order' ); function kin_wpseo_title($title) { if( is_post_type_archive( 'kin') ) { $title = 'Lista de Kins'; } if( is_singular( 'kin') ) { $title = 'Kin ' . get_field('numero_do_kin') . ' - ' . get_the_title( ); } return $title; } add_filter('wpseo_title', 'kin_wpseo_title'); //////////////////////////////// //// ARQUETIPOS // Register Custom Post Type function rotalunar_cpt_arquetipos() { $labels = array( 'name' => _x( 'Arquetipos', 'Post Type General Name', 'rotalunar' ), 'singular_name' => _x( 'Arquetipo', 'Post Type Singular Name', 'rotalunar' ), 'menu_name' => __( 'Arquetipos', 'rotalunar' ), 'name_admin_bar' => __( 'Arquetipos', 'rotalunar' ), // 'archives' => __( 'Item Archives', 'rotalunar' ), // 'attributes' => __( 'Item Attributes', 'rotalunar' ), // 'parent_item_colon' => __( 'Parent Item:', 'rotalunar' ), // 'all_items' => __( 'All Items', 'rotalunar' ), // 'add_new_item' => __( 'Add New Item', 'rotalunar' ), // 'add_new' => __( 'Add New', 'rotalunar' ), // 'new_item' => __( 'New Item', 'rotalunar' ), // 'edit_item' => __( 'Edit Item', 'rotalunar' ), // 'update_item' => __( 'Update Item', 'rotalunar' ), // 'view_item' => __( 'View Item', 'rotalunar' ), // 'view_items' => __( 'View Items', 'rotalunar' ), // 'search_items' => __( 'Search Item', 'rotalunar' ), // 'not_found' => __( 'Not found', 'rotalunar' ), // 'not_found_in_trash' => __( 'Not found in Trash', 'rotalunar' ), // 'featured_image' => __( 'Featured Image', 'rotalunar' ), // 'set_featured_image' => __( 'Set featured image', 'rotalunar' ), // 'remove_featured_image' => __( 'Remove featured image', 'rotalunar' ), // 'use_featured_image' => __( 'Use as featured image', 'rotalunar' ), // 'insert_into_item' => __( 'Insert into item', 'rotalunar' ), // 'uploaded_to_this_item' => __( 'Uploaded to this item', 'rotalunar' ), // 'items_list' => __( 'Items list', 'rotalunar' ), // 'items_list_navigation' => __( 'Items list navigation', 'rotalunar' ), // 'filter_items_list' => __( 'Filter items list', 'rotalunar' ), ); $args = array( 'label' => __( 'Arquetipo', 'rotalunar' ), 'description' => __( 'Post Type Description', 'rotalunar' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'comments' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-admin-users', 'show_in_admin_bar' => true, 'show_in_nav_menus' => false, 'can_export' => true, 'has_archive' => 'arquetipos', 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'arquetipo', $args ); } add_action( 'init', 'rotalunar_cpt_arquetipos', 0 ); add_action( 'init', 'rewrite_rule_arquetipo' ); function rewrite_rule_arquetipo() { add_rewrite_tag( '%numero_do_arquetipo%', '([0-9]+)' ); add_rewrite_rule( '^arquetipo-?([0-9]+)', 'index.php?numero_do_arquetipo=$matches[1]', 'top' ); } function catch_arquetipo_requests( $query ) { if( ! is_admin() && isset( $query->query_vars['numero_do_arquetipo'] ) ){ $the_post = new WP_Query( array( 'post_type' => 'arquetipo', 'meta_key' => 'numero_do_arquetipo', 'meta_value' => $query->query_vars['numero_do_arquetipo'] ) ); if( $the_post->have_posts() ){ wp_redirect( get_permalink( $the_post->post->ID ) ); exit(); } else { wp_redirect( home_url('/arquetipos') ); exit(); } } } add_action( 'parse_request', 'catch_arquetipo_requests' ); function arquetipos_archive_order($query) { if ( ! is_admin() && $query->is_post_type_archive('arquetipo') && $query->is_main_query() ) { $query->set( 'meta_key', 'numero_do_arquetipo' ); $query->set( 'orderby', 'meta_value_num' ); $query->set( 'order', 'ASC'); $query->set( 'posts_per_archive_page' , 21); } } add_action( 'pre_get_posts', 'arquetipos_archive_order' ); function arquetipo_wpseo_title($title) { if( is_post_type_archive( 'arquetipo') ) { $title = 'Lista dos Arquétipos'; } if( is_singular( 'arquetipo') ) { $title = get_the_title( ) . ' - Arquétipo ' . get_field('numero_do_arquetipo'); } return $title; } add_filter('wpseo_title', 'arquetipo_wpseo_title'); //////////////////////////////// //// SELOS // Register Custom Post Type function rotalunar_cpt_selo() { $labels = array( 'name' => _x( 'Selos', 'Post Type General Name', 'rotalunar' ), 'singular_name' => _x( 'Selo', 'Post Type Singular Name', 'rotalunar' ), 'menu_name' => __( 'Selos', 'rotalunar' ), 'name_admin_bar' => __( 'Selos', 'rotalunar' ), // 'archives' => __( 'Item Archives', 'rotalunar' ), // 'attributes' => __( 'Item Attributes', 'rotalunar' ), // 'parent_item_colon' => __( 'Parent Item:', 'rotalunar' ), // 'all_items' => __( 'All Items', 'rotalunar' ), // 'add_new_item' => __( 'Add New Item', 'rotalunar' ), // 'add_new' => __( 'Add New', 'rotalunar' ), // 'new_item' => __( 'New Item', 'rotalunar' ), // 'edit_item' => __( 'Edit Item', 'rotalunar' ), // 'update_item' => __( 'Update Item', 'rotalunar' ), // 'view_item' => __( 'View Item', 'rotalunar' ), // 'view_items' => __( 'View Items', 'rotalunar' ), // 'search_items' => __( 'Search Item', 'rotalunar' ), // 'not_found' => __( 'Not found', 'rotalunar' ), // 'not_found_in_trash' => __( 'Not found in Trash', 'rotalunar' ), // 'featured_image' => __( 'Featured Image', 'rotalunar' ), // 'set_featured_image' => __( 'Set featured image', 'rotalunar' ), // 'remove_featured_image' => __( 'Remove featured image', 'rotalunar' ), // 'use_featured_image' => __( 'Use as featured image', 'rotalunar' ), // 'insert_into_item' => __( 'Insert into item', 'rotalunar' ), // 'uploaded_to_this_item' => __( 'Uploaded to this item', 'rotalunar' ), // 'items_list' => __( 'Items list', 'rotalunar' ), // 'items_list_navigation' => __( 'Items list navigation', 'rotalunar' ), // 'filter_items_list' => __( 'Filter items list', 'rotalunar' ), ); $args = array( 'label' => __( 'Selo', 'rotalunar' ), 'description' => __( 'Post Type Description', 'rotalunar' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'comments'), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-universal-access-alt', 'show_in_admin_bar' => true, 'show_in_nav_menus' => false, 'can_export' => true, 'has_archive' => 'selos', 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'selo', $args ); } add_action( 'init', 'rotalunar_cpt_selo', 0 ); add_action( 'init', 'rewrite_rule_selo' ); function rewrite_rule_selo() { add_rewrite_tag( '%numero_do_selo%', '([0-9]+)' ); add_rewrite_rule( '^selo-?([0-9]+)', 'index.php?numero_do_selo=$matches[1]', 'top' ); } add_action( 'parse_request', 'catch_selo_requests' ); function catch_selo_requests( $query ) { if( ! is_admin() && isset( $query->query_vars['numero_do_selo'] ) ){ $the_post = new WP_Query( array( 'post_type' => 'selo', 'meta_key' => 'numero_do_selo', 'meta_value' => $query->query_vars['numero_do_selo'] ) ); if( $the_post->have_posts() ){ wp_redirect( get_permalink( $the_post->post->ID ) ); exit(); } else { wp_redirect( home_url('/selos') ); exit(); } } } function selos_archive_order($query) { if ( ! is_admin() && $query->is_post_type_archive('selo') && $query->is_main_query() ) { $query->set( 'meta_key', 'numero_do_selo' ); $query->set( 'meta_value', 1 ); } } add_action( 'pre_get_posts', 'selos_archive_order' ); function selo_wpseo_title($title) { if( is_post_type_archive( 'selo') ) { $title = 'Lista dos Selos'; } if( is_singular( 'selo') ) { $title = get_the_title( ) . ' - Selo ' . get_field('numero_do_selo'); } return $title; } add_filter('wpseo_title', 'selo_wpseo_title'); //////////////////////////////// //// TONS // Register Custom Post Type function rotalunar_cpt_tom() { $labels = array( 'name' => _x( 'Tons', 'Post Type General Name', 'rotalunar' ), 'singular_name' => _x( 'Tom', 'Post Type Singular Name', 'rotalunar' ), 'menu_name' => __( 'Tons', 'rotalunar' ), 'name_admin_bar' => __( 'Tons', 'rotalunar' ), // 'archives' => __( 'Item Archives', 'rotalunar' ), // 'attributes' => __( 'Item Attributes', 'rotalunar' ), // 'parent_item_colon' => __( 'Parent Item:', 'rotalunar' ), // 'all_items' => __( 'All Items', 'rotalunar' ), // 'add_new_item' => __( 'Add New Item', 'rotalunar' ), // 'add_new' => __( 'Add New', 'rotalunar' ), // 'new_item' => __( 'New Item', 'rotalunar' ), // 'edit_item' => __( 'Edit Item', 'rotalunar' ), // 'update_item' => __( 'Update Item', 'rotalunar' ), // 'view_item' => __( 'View Item', 'rotalunar' ), // 'view_items' => __( 'View Items', 'rotalunar' ), // 'search_items' => __( 'Search Item', 'rotalunar' ), // 'not_found' => __( 'Not found', 'rotalunar' ), // 'not_found_in_trash' => __( 'Not found in Trash', 'rotalunar' ), // 'featured_image' => __( 'Featured Image', 'rotalunar' ), // 'set_featured_image' => __( 'Set featured image', 'rotalunar' ), // 'remove_featured_image' => __( 'Remove featured image', 'rotalunar' ), // 'use_featured_image' => __( 'Use as featured image', 'rotalunar' ), // 'insert_into_item' => __( 'Insert into item', 'rotalunar' ), // 'uploaded_to_this_item' => __( 'Uploaded to this item', 'rotalunar' ), // 'items_list' => __( 'Items list', 'rotalunar' ), // 'items_list_navigation' => __( 'Items list navigation', 'rotalunar' ), // 'filter_items_list' => __( 'Filter items list', 'rotalunar' ), ); $args = array( 'label' => __( 'tom', 'rotalunar' ), 'description' => __( 'Post Type Description', 'rotalunar' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'comments'), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-ellipsis', 'show_in_admin_bar' => true, 'show_in_nav_menus' => false, 'can_export' => true, 'has_archive' => 'tons', 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'tom', $args ); } add_action( 'init', 'rotalunar_cpt_tom', 0 ); add_action( 'init', 'rotalunar_rewrite_rule_tom' ); function rotalunar_rewrite_rule_tom() { add_rewrite_tag( '%numero_do_tom%', '([0-9]+)' ); add_rewrite_rule( '^tom-?([0-9]+)', 'index.php?numero_do_tom=$matches[1]', 'top' ); } add_action( 'parse_request', 'rotalunar_catch_tom_requests' ); function rotalunar_catch_tom_requests( $query ) { if( ! is_admin() && isset( $query->query_vars['numero_do_tom'] ) ){ $the_post = new WP_Query( array( 'post_type' => 'tom', 'meta_key' => 'numero_do_tom', 'meta_value' => $query->query_vars['numero_do_tom'] ) ); if( $the_post->have_posts() ){ wp_redirect( get_permalink( $the_post->post->ID ) ); exit(); } else { wp_redirect( home_url('/tons') ); exit(); } } } function tons_archive_order($query) { if ( ! is_admin() && $query->is_post_type_archive('tom') && $query->is_main_query() ) { $query->set( 'meta_key', 'numero_do_tom' ); $query->set( 'meta_value', 1 ); } } add_action( 'pre_get_posts', 'tons_archive_order' ); function tom_wpseo_title($title) { if( is_post_type_archive( 'tom') ) { $title = 'Lista dos Tons'; } if( is_singular( 'tom') ) { $title = get_the_title( ) . ' - Tom ' . get_field('numero_do_tom'); } return $title; } add_filter('wpseo_title', 'tom_wpseo_title'); //////////////////////////////// //// ONDAS // Register Custom Post Type function rotalunar_cpt_onda() { $labels = array( 'name' => _x( 'Ondas', 'Post Type General Name', 'rotalunar' ), 'singular_name' => _x( 'Onda', 'Post Type Singular Name', 'rotalunar' ), 'menu_name' => __( 'Ondas', 'rotalunar' ), 'name_admin_bar' => __( 'Ondas', 'rotalunar' ), // 'archives' => __( 'Item Archives', 'rotalunar' ), // 'attributes' => __( 'Item Attributes', 'rotalunar' ), // 'parent_item_colon' => __( 'Parent Item:', 'rotalunar' ), // 'all_items' => __( 'All Items', 'rotalunar' ), // 'add_new_item' => __( 'Add New Item', 'rotalunar' ), // 'add_new' => __( 'Add New', 'rotalunar' ), // 'new_item' => __( 'New Item', 'rotalunar' ), // 'edit_item' => __( 'Edit Item', 'rotalunar' ), // 'update_item' => __( 'Update Item', 'rotalunar' ), // 'view_item' => __( 'View Item', 'rotalunar' ), // 'view_items' => __( 'View Items', 'rotalunar' ), // 'search_items' => __( 'Search Item', 'rotalunar' ), // 'not_found' => __( 'Not found', 'rotalunar' ), // 'not_found_in_trash' => __( 'Not found in Trash', 'rotalunar' ), // 'featured_image' => __( 'Featured Image', 'rotalunar' ), // 'set_featured_image' => __( 'Set featured image', 'rotalunar' ), // 'remove_featured_image' => __( 'Remove featured image', 'rotalunar' ), // 'use_featured_image' => __( 'Use as featured image', 'rotalunar' ), // 'insert_into_item' => __( 'Insert into item', 'rotalunar' ), // 'uploaded_to_this_item' => __( 'Uploaded to this item', 'rotalunar' ), // 'items_list' => __( 'Items list', 'rotalunar' ), // 'items_list_navigation' => __( 'Items list navigation', 'rotalunar' ), // 'filter_items_list' => __( 'Filter items list', 'rotalunar' ), ); $args = array( 'label' => __( 'Onda', 'rotalunar' ), 'description' => __( 'Post Type Description', 'rotalunar' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'comments'), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-update-alt', 'show_in_admin_bar' => true, 'show_in_nav_menus' => false, 'can_export' => true, 'has_archive' => 'ondas', 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'onda', $args ); } add_action( 'init', 'rotalunar_cpt_onda', 0 ); add_action( 'init', 'rotalunar_rewrite_rule_onda' ); function rotalunar_rewrite_rule_onda() { add_rewrite_tag( '%numero_da_onda%', '([0-9]+)' ); add_rewrite_rule( '^onda-?([0-9]+)', 'index.php?numero_da_onda=$matches[1]', 'top' ); } add_action( 'parse_request', 'rotalunar_catch_onda_requests' ); function rotalunar_catch_onda_requests( $query ) { if( ! is_admin() && isset( $query->query_vars['numero_da_onda'] ) ){ $the_post = new WP_Query( array( 'post_type' => 'onda', 'meta_key' => 'numero_da_onda', 'meta_value' => $query->query_vars['numero_da_onda'] ) ); if( $the_post->have_posts() ){ wp_redirect( get_permalink( $the_post->post->ID ) ); exit(); } else { wp_redirect( home_url('/ondas') ); exit(); } } } function ondas_archive_order($query) { if ( ! is_admin() && $query->is_post_type_archive('onda') && $query->is_main_query() ) { $query->set( 'meta_key', 'numero_da_onda' ); $query->set( 'meta_value', 1 ); } } add_action( 'pre_get_posts', 'ondas_archive_order' ); function onda_wpseo_title($title) { if( is_post_type_archive( 'onda') ) { $title = 'Lista das Ondas Encantadas'; } if( is_singular( 'onda') ) { $title = get_the_title( ) . ' - Onda Encantada ' . get_field('numero_da_onda'); } return $title; } add_filter('wpseo_title', 'onda_wpseo_title'); Página não encontrada - Rota Lunar

Olá! Fico feliz que você tenha chegado ao site da Rota Lunar.

Esse projeto já cumpriu o seu propósito e foi transformado na marca Gabi Lamat, que inclui assuntos da Lei do Tempo e de Autoconsciência Meditativa. Para acessar, clique no botão abaixo:

Com amor, Gabi 💜