這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

CPT – Speakers

外掛說明

This plugin creates a custom post type for event speakers. Includes speakers page and single-speakers page templates.

If you are upgrading from an earlier version, you will need to manually move the template_speakers.php and single-speakers.php files from the /wp-content/plugins/cpt-speakers/ folder in to the folder for your active theme. If the file already exists in your theme folder, overwrite it with the new one.

安裝方式

  1. Upload the cpt-speakers folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Two template files will be added to your current theme folder
  4. Create a new page and select the Speakers Page template
  5. Add your speakers from the WordPress dashboard
  6. (optional) Add speaker snippets (via shortcode) to your schedule page (example).
    Shortcode format: [speaker_snippet id=”3″] “3” would be the ID for the speaker you want to display
  7. Add custom CSS to your theme’s style sheet to format the speaker’s page. You can use this as a base and tweak as needed:

    speakers {

    font-size: 12px;
    min-height: 300px;
    

    }

    speaker_image_section {

    width: 150px;
    float: left;
    height: 300px;
    margin-right: 18px;
    

    }

    speaker_image img {

    margin-top: 5px;
    border: 1px solid #333;
    padding: 3px;
    background: #0099cc;
    

    }

    speaker_name {

    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    

    }

    speaker_url {

    text-align: center;
    

    }

    speaker_twitter_url {

    text-align: center;
    

    }

    speaker_pres_title {

    margin: 5px 0px 5px 0px;
    font-size: 13px;
    

    }

    speaker_pres_description {

    font-size: 12px;
    font-family: arial, helvetica;
    line-height: 16px;
    

    }

    speaker_session_description {

    font-size: 12px;
    line-height: 18px;
    

    }

    speaker_image_section_single {

    width: 150px;
    float: left;
    height: 600px;
    margin-right: 18px;
    

    }

    speaker_image_section_single img{

    margin-top: 5px;
    border: 1px solid #333;
    padding: 3px;
    background: #0099cc;
    

    }

    pres_url {

    text-align: center;
    

    }

    .speaker_snippet .thumbnail {
    float:left;
    display:inline;
    margin-right:10px;
    border-bottom:0;
    }

    content .speaker_snippet .thumbnail a {

    border-bottom:0;
    

    }
    .speaker_snippet .name {
    font-weight:bold;
    line-height:16px;
    }
    .speaker_snippet .title {
    font-size:0.9em;
    line-height:15px;
    }

常見問題集

Why am I getting a page not found error when trying to visit the single speaker’s page?

The Permalinks page needs to be re-saved. Go to Settings -> Permalinks and click the Save Changes button.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈CPT – Speakers〉的開發相關工作。

參與者

將〈CPT – Speakers〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.1

  • Removed custom image uploader (uses featured image instead)
  • Added shortcode for speaker snippets
  • Updated template pages to use snippets

1.0.1

  • Fixed issue with single template page

1.0

  • Initial release