
內容簡介
這是一個外掛,可以添加自定義文章類型(目的地和套餐),以及旅遊網站所需的元字段。該專為旅遊主題所設計。
模板覆蓋
* 創建名為“tp-travel-packagee”的文件夾,按照以下指示在該文件夾中進行所有覆蓋。
* 存檔頁面
- 您可以覆寫此外掛中可用的所有文章類型的存檔頁面。例如:tp-archive-package.php
* 搜索頁面
- 您可以按tp-package-search.php說明覆蓋此外掛中可用的封裝搜索頁面。
* 單頁面
- 您可以覆寫此外掛中可用的所有文章類型的單頁面。例如:tp-single-package.php
呼叫元數值功能
目的地詳細信息
tp_destination_quote( $post_id = '' ); // 目的地引用文字
tp_destination_rating_value( $post_id = '' ); // 目的地評級值(數字)
tp_destination_rating( $post_id = '' ); // 目的地評級值(星號)
套餐詳細信息
tp_package_quote( $post_id = '' ); // 套餐引用文字
tp_package_price( $post_id = '' ); // 套餐價格
tp_package_pax( $post_id = '' ); // 套餐人數
tp_package_days( $post_id = '' ); // 套餐天數
tp_package_difficulty( $post_id = '' ); // 套餐難度
tp_package_date( $post_id = '' ); // 套餐出發日期
tp_package_destination( $post_id = '' ); // 套餐目的地
tp_package_destination_link( $post_id = '' ); // 帶鏈接的套餐目的地
文件
jQuery UI - v1.12.0
許可證:https://jquery.org/license/(版權jQuery基金會和其他貢獻者;根據MIT授權)
源代碼:http://jqueryui.com
外掛標籤
開發者團隊
原文外掛簡介
A plugin to add custom post type ( Destination and Package ) and it’s required meta fields for travel sites. This plugin is dedicated for travel themes.
Template Overwrite
* Create a folder named "tp-travel-packagee" and do all the overwrites inside the folder as instructed below.
* Archive Pages
- you can overwrite all archive pages for post types available in this plugin. ie: tp-archive-package.php
* Search Page
- you can overwrite package search page for post types available in this plugin by tp-package-search.php
* Single Pages
- you can overwrite all single pages for post types available in this plugin. ie: tp-single-package.php
Functions to Call Meta Values
Destination Details
tp_destination_quote( $post_id = '' ); // Destination Quote
tp_destination_rating_value( $post_id = '' ); // Destination Rating value in number
tp_destination_rating( $post_id = '' ); // Destination Rating value in stars
Package Details
tp_package_quote( $post_id = '' ); // Package Quote
tp_package_price( $post_id = '' ); // Package Price
tp_package_pax( $post_id = '' ); // No of people for package
tp_package_days( $post_id = '' ); // No of days for package
tp_package_difficulty( $post_id = '' ); // Package Diffifulty
tp_package_date( $post_id = '' ); // Package Departure
tp_package_destination( $post_id = '' ); // Package Destinaiton
tp_package_destination_link( $post_id = '' ); // Package Destinaiton with link
Files
jQuery UI - v1.12.0
License: https://jquery.org/license/ ( Copyright jQuery Foundation and other contributors; Licensed MIT )
Source: http://jqueryui.com
