忍者ブログ
29 July

カスタム投稿タイプでパブリサイズ共有させる

http://pochiplus.com/783

カスタム投稿タイプが複数あるときの書き方(上記さいとより引用)
function jp_sns() {
    add_post_type_support(  'plants', 'publicize' );
    add_post_type_support(  'biotope', 'publicize' );
    add_post_type_support(  'othergardens', 'publicize' );
}
add_action( 'init', 'jp_sns' );
PR
28 July

welcart 営業日カレンダー 発送休業日テキスト変更

http://welcustom.net/calendar-word/
ありがたいことにコピペできるコードがのっています

https://github.com/wp-plugins/usc-e-shop/blob/master/includes/widget_calendar.php
このページの一番下にフィルターフックがのってます

この2つを見比べると、フィルターフックの使い方がなんとなくわかると思います、
私も理解してできるようになりたいです

19 July

cf7 コピペコード2

お名前:[your-name]
フリガナ:[your-furigana]
メールアドレス:[your-email]
郵便番号:[zip]
都道府県:[pref]
ご住所:[addr]
お電話番号:[tel-17]
件名:[your-kenmei]
お問い合わせ内容:[your-message01]



<table class="cf7">
  <tr>
    <th>お名前<span class="req">*</span></th>
    <td>[text* your-name akismet:author] </td>
  </tr>
  <tr>
    <th>フリガナ<span class="req">*</span></th>
    <td>[text* your-furigana akismet:author] </td>
  </tr>
  <tr>
    <th>郵便番号<span class="req">*</span></th>
    <td>[text* zip id:zip] </td>
  </tr>
  <tr>
    <th>都道府県<span class="req">*</span></th>
    <td>[text* pref id:pref]</td>
  </tr>
  <tr>
    <th>ご住所<span class="req">*</span></th>
    <td class="address-100">[text* addr id:addr]</td>
  </tr>
  <tr>
    <th>お電話番号<span class="req">*</span></th>
    <td>[tel* tel-17]</td>
  </tr>
  <tr>
    <th>メールアドレス<span class="req">*</span></th>
    <td>[email* your-email akismet:author_email]</td>
  </tr>
  <tr>
    <th>お問い合わせ内容</th>
    <td class="message-100">[textarea your-message01]</td>
  </tr>

</table>
<p>&nbsp;</p>
<p class="text-xs-center">[submit][confirm][back]</p>
19 July

cf7 自動住所入力用 js


<?php if(is_page( array( 'contact' ) ) ): ?>
<!-- ajaxzip -->
<script src="https://ajaxzip3.github.io/ajaxzip3.js" charset="UTF-8"></script>
<script type="text/javascript">
jQuery(function(){
  jQuery('#zip').keyup(function(event){
    AjaxZip3.zip2addr(this,'','pref','addr');
  })
})
</script>
<?php endif; ?>
19 July

cf7 コピペ用 コード1

<table class="cf7">
  <tr>
    <th>お名前<span class="req">*</span></th>
    <td>[text* your-name akismet:author] </td>
  </tr>
  <tr>
    <th>フリガナ<span class="req">*</span></th>
    <td>[text* your-furigana akismet:author] </td>
  </tr>
  <tr>
    <th>郵便番号<span class="req">*</span></th>
    <td>[text* zip id:zip] </td>
  </tr>
  <tr>
    <th>都道府県<span class="req">*</span></th>
    <td>[text* pref id:pref]</td>
  </tr>
  <tr>
    <th>ご住所<span class="req">*</span></th>
    <td class="address-100">[text* addr id:addr]</td>
  </tr>
  <tr>
    <th>お電話番号<span class="req">*</span></th>
    <td>[tel* tel-17]</td>
  </tr>
  <tr>
    <th>メールアドレス<span class="req">*</span></th>
    <td>[email* your-email akismet:author_email]</td>
  </tr>
  <tr>
    <th>宿泊人数<span class="req">*</span></th>
    <td class="input_small">大人[text* your-family01]人<br>
子供[text* your-family02]人<br>
お子様の年齢[text your-age01]才 [text your-age02]才<br>
</td>
  </tr>
  <tr>
    <th>布団の数</th>
    <td class="input_small">[text your-futon]組</td>
  </tr>
 
 
    <tr>
    <th>宿泊希望日</th>
    <td class="input_small_calendar">[date date-341 min:2016-12-15 max:2017-03-30]~[date date-342 min:2016-12-15 max:2017-03-30]</td>
  </tr>
  <tr>
    <th>チェックイン</th>
    <td class="select_small">[select menu-750 include_blank "16"]時[select menu-751 include_blank "00" "15" "30" "45"]分</td>
  </tr>
  <tr>
    <th>チェックアウト</th>
    <td class="select_small">[select menu-750 include_blank "9" "10"]時[select menu-751 include_blank "00" "15" "30" "45"]分</td>
  </tr>
  <tr>
    <th>ご質問、ご不明な点など、ございましたらお書きください。</th>
    <td class="message-100">[textarea your-message01]</td>
  </tr>
</table>


<p>&nbsp;</p>
<p class="text-xs-center">[submit][confirm][back]</p>