function create_testimonials() { $labels = array( 'name' => 'Testimonials', 'singular_name' => 'Testimonials', 'menu_name' => 'Testimonials', 'parent_item_colon' => 'Parent Testimonial:', 'all_items' => 'All Testimonials', 'view_item' => 'View Testimonial', 'add_new_item' => 'Add New Testimonial', 'add_new' => 'New Testimonial', 'edit_item' => 'Edit Testimonial', 'update_item' => 'Update Testimonial', 'search_items' => 'Search Testimonials', 'not_found' => 'No Testimonials found', 'not_found_in_trash' => 'No Testimonials found in Trash', ); $args = array( 'label' => 'Testimonials', 'description' => 'Testimonials post type', 'labels' => $labels, 'supports' => array( 'title', 'excerpt', 'thumbnail', 'revisions', 'page-attributes', 'editor'), 'hierarchical' => true, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'show_in_admin_bar' => true, 'menu_position' => 5, 'can_export' => true, 'has_archive' => false, 'exclude_from_search' => false, 'capability_type' => 'page', 'menu_icon' => plugins_url( 'gm_icon_bw.png', __FILE__ ), ); register_post_type( 'testimonials', $args ); } // Hook into the 'init' action add_action( 'init', 'create_testimonials', 0 ); ?> global $gm_testimonials_meta_boxes; $gm_testimonials_meta_boxes = array(); $gm_testimonials_meta_boxes[] = array( 'id' => 'testimonials_extra', 'title' => 'Profile Info', 'pages' => array( 'testimonials' ), 'context' => 'normal', 'priority' => 'high', 'fields' => array( array( 'name' => 'Location', 'id' => "gm_testimonials_location", 'desc' => 'Example: San Diego, CA', 'type' => 'text', 'std' => '', ), array( 'name' => 'Date', 'id' => "gm_testimonials_date", 'type' => 'date', // jQuery date picker options. See here http://jqueryui.com/demos/datepicker 'js_options' => array( 'appendText' => '(yyyy-mm-dd)', 'dateFormat' => 'yy-mm-dd', 'changeMonth' => true, 'changeYear' => true, 'showButtonPanel' => true, ), ), ), 'validation' => array( 'rules' => array( "gm_testimonials_location" => array( 'required' => true, ), "post_title" => array( 'required' => true, ), ), 'messages' => array( "gm_testimonials_location" => array( 'required' => 'Location is required', ), ) ) ); function gm_testimonials_register_meta_boxes() { if ( !class_exists( 'RW_Meta_Box' ) ) return; global $gm_testimonials_meta_boxes; foreach ( $gm_testimonials_meta_boxes as $meta_box ) { new RW_Meta_Box( $meta_box ); } } add_action( 'admin_init', 'gm_testimonials_register_meta_boxes' ); /* shortcodes */ function gm_testimonials_shortcode( $atts ) { // set default values if no attributes passed extract( shortcode_atts( array( 'orderby' => 'date', // by post date 'order' => 'DESC', // newest first by default 'meta_key' => '', // meta_key 'display' => 'content', ), $atts ) ); $db_args = array( 'post_type' => 'testimonials', 'order' => $order, 'orderby' => $orderby, 'meta_key' => $meta_key, ); $date_format = "M d, Y"; $testimonials_loop = new WP_Query( $db_args ); if($testimonials_loop->have_posts()) { switch($display) { case "content": $content .= "
The real-time and historical business analytics available with Bolt POS give you easy-to-read data that incites action. After all, there\u2019s no point in generating data for its own sake. <\/p>\r\n
Our reporting tools make it easy to find out exactly what your customers want so you can make the necessary changes to maintain brand loyalty and win consistent referrals. With Bolt POS business analytics, you can track your progress, plan for the future, and nullify the competition.<\/p>\r\n\r\n
Historical analysis is crucial for today\u2019s business owners. Without it, you have no way to analyze your past progress and reach future goals. Bolt POS makes it simple to view all credit card sales, debit card sales, and transaction data by hour, day, week, month, or year. You can also search by custom date range.<\/p>\r\n\r\n
Using the Bolt POS historical analysis function, you can: <\/strong><\/p>\r\n\r\n The real-time data available with Bolt POS empowers you to make split-second decisions based on sales activity that\u2019s happening right here, right now. <\/p>\r\n Bolt POS offers you a wide range of easy-to-read reporting options specifically tailored to your business needs. Track the sales, costs, and profits of individual inventory items, individual salespeople, or a specific day, month, or year. <\/p> \r\n\r\n You can also create reports based on:<\/strong><\/p>\r\n\r\n Best of all, your reports can be viewed from anywhere with an Internet connection. <\/p><\/div> Real-Time Business Intelligence with Cutting-Edge Analytics The real-time and historical business analytics available with Bolt POS give you easy-to-read data that incites action. After all, there\u2019s no point in generating data for its own sake. Our reporting tools make it … Continued<\/a><\/p>\n","protected":false},"author":2,"featured_media":2043,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"open","template":"template-one-column.php","meta":{"footnotes":""},"acf":[],"_links":{"self":[{"href":"https:\/\/www.boltpos.com\/wp-json\/wp\/v2\/pages\/365"}],"collection":[{"href":"https:\/\/www.boltpos.com\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.boltpos.com\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.boltpos.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.boltpos.com\/wp-json\/wp\/v2\/comments?post=365"}],"version-history":[{"count":58,"href":"https:\/\/www.boltpos.com\/wp-json\/wp\/v2\/pages\/365\/revisions"}],"predecessor-version":[{"id":2055,"href":"https:\/\/www.boltpos.com\/wp-json\/wp\/v2\/pages\/365\/revisions\/2055"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.boltpos.com\/wp-json\/wp\/v2\/media\/2043"}],"wp:attachment":[{"href":"https:\/\/www.boltpos.com\/wp-json\/wp\/v2\/media?parent=365"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}\r\n\t
Make split-second decisions to boost sales in real time<\/h3>
\r\n\t
Flawless, powerful reporting<\/h3>
\r\n\t