<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>たねっぱ！ &#187; WordPress</title>
	<atom:link href="https://taneppa.net/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>https://taneppa.net</link>
	<description>コツコツあつめるWeb作りのためのたね　たねっぱ！Web系情報ブログ　Webのお役立ちネタ配信中！</description>
	<lastBuildDate>Tue, 09 May 2023 00:02:06 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Web制作にお役立ち＆作業効率UP！ 日本語版チートシートまとめ</title>
		<link>https://taneppa.net/cheatsheet_japanese2017/</link>
		<comments>https://taneppa.net/cheatsheet_japanese2017/#comments</comments>
		<pubDate>Wed, 09 May 2018 03:04:59 +0000</pubDate>
		<dc:creator>rurippa!</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Web制作]]></category>
		<category><![CDATA[デザイン]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[Webデザイン]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[コーディング]]></category>
		<category><![CDATA[ショートカット]]></category>
		<category><![CDATA[効率化]]></category>

		<guid isPermaLink="false">https://taneppa.net/?p=3845</guid>
		<description><![CDATA[デスクや手元に置いておきたいチートシート。PCに保存したり、１枚印刷しておくと便利です。]]></description>
				<content:encoded><![CDATA[<div id="Rurippa">
<p>ショートカットキー忘れた！あのプロパティ名が思い出せない・・・などなど<br /> ふとした時にチートシートを見て救われたり。<br /> こんなのがあるんだ！っていう発見もあるかも。</p>
<p>そんな時、日本語版の方が見やすいかな？と思ったので、<br /> 日本語版のものを集めてみました！(&amp;英語でもわかりやすいもの）</p>
<p>PCに保存したり、１枚印刷して手元に置いておくと便利です。</p>
<h2>目次</h2>
<ul>
	<li><a href="#item01">Illustratorのショートカットキーリスト</a></li>
	<li><a href="#item02">Photoshopのショートカットキーリスト</a></li>
	<li><a href="#item03">日本語版 WordPress チートシート</a></li>
	<li><a href="#item04">WordPress Template Hierarchy</a></li>
	<li><a href="#item05">HTML5タグ★チートシート</a></li>
	<li><a href="#item06">CSS Flexbox チートシート</a></li>
	<li><a href="#item07">CSS Cheat Sheet</a></li>
</ul>
<div id="item01"></div>
<h2>日本語版チートシートまとめ</h2>
<h3>Illustratorのショートカットキーリスト</h3>
<p><a href="https://helpx.adobe.com/jp/illustrator/how-to/use-shortcut-keys-for-efficiency-illustrator.html" target="_blank"><img class="alignnone size-medium wp-image-3855" alt="" src="https://taneppa.net/wp-content/uploads/2017/04/cheet02-500x375.png" width="500" height="375" /></a></p>
<p>デザイナーが良く使うショートカットをピックアップしています！ <br />日本語で非常に見やすいので、デスクなどに置いておきたい１枚ですね。</p>
<p><a href="https://helpx.adobe.com/jp/illustrator/how-to/use-shortcut-keys-for-efficiency-illustrator.html" target="_blank">配布元:Adobe</a></p>
<div class="spaceCont" id="item02"></div>
<h3>Photoshopのショートカットキーリスト</h3>
<p><a href="https://helpx.adobe.com/jp/photoshop/how-to/use-shortcut-keys-for-efficiency-photoshop.html" target="_blank"><img class="alignnone size-medium wp-image-3856" alt="" src="https://taneppa.net/wp-content/uploads/2017/04/cheet01-500x375.png" width="500" height="375" /></a></p>
<p>先ほど紹介したシートの、フォトショップ版です！ <br />こちらも合わせて印刷しておくと便利かと思います。</p>
<p><a href="https://helpx.adobe.com/jp/photoshop/how-to/use-shortcut-keys-for-efficiency-photoshop.html" target="_blank">配布元:Adobe</a></p>
<div class="spaceCont" id="item03">
<h3>日本語版 WordPress チートシート</h3>
</div>
<p><a href="http://www.webcreatorbox.com/tech/japanese-wordpress-cheat-sheet/" target="_blank"> <img class="alignnone size-medium wp-image-3857" alt="" src="https://taneppa.net/wp-content/uploads/2017/04/cheet03-500x375.jpg" width="500" height="375" /></a></p>
<p>有名なブログ「Webクリエイターボックス」さんが配布してくださっている、WordPressのチートシートです。 <br />例文付きで、見やすくまとまっていてオススメです。</p>
<p><a href="http://www.webcreatorbox.com/tech/japanese-wordpress-cheat-sheet/" target="_blank">配布元:Webクリエイターボックス</a></p>
<div class="spaceCont" id="item04"></div>
<h3>WordPress Template Hierarchy</h3>
<p><a href="https://developer.wordpress.org/themes/basics/template-hierarchy/" target="_blank"><img class="alignnone size-medium wp-image-3877" alt="" src="https://taneppa.net/wp-content/uploads/2017/04/cheet05-500x375.png" width="500" height="375" /></a></p>
<p>WordPressのテンプレート構成を図にまとめています。</p>
<p><a href="https://developer.wordpress.org/themes/basics/template-hierarchy/" target="_blank">配布元:WORDPRESS.ORG</a></p>
<div class="spaceCont" id="item05"></div>
<h3>HTML5タグ★チートシート</h3>
<p><a href="http://www.atmarkit.co.jp/fdotnet/chushin/cheatsheet_02/cheatsheet_02_01.html" target="_blank"><img class="alignnone size-medium wp-image-3875" alt="" src="https://taneppa.net/wp-content/uploads/2017/04/cheet04-500x375.jpg" width="500" height="375" /></a></p>
<p>HTML5のタグと概要の説明が載っています。 <br />チートシートがあると検索する手間が省けますね。</p>
<p><a href="http://www.atmarkit.co.jp/fdotnet/chushin/cheatsheet_02/cheatsheet_02_01.html" target="_blank">配布元:＠IT</a></p>
<div class="spaceCont" id="item06">
<h3>CSS Flexbox チートシート</h3>
<p><a href="http://www.webcreatorbox.com/tech/css-flexbox-cheat-sheet/" target="_blank"><img class="alignnone size-medium wp-image-3886" alt="" src="https://taneppa.net/wp-content/uploads/2017/04/cheet06-500x375.png" width="500" height="375" /></a></p>
<p>最近よく見るようになったFlexbox用のチートシートです！ <br />図付きなので、とても見やすいです。</p>
<p><a href="http://www.webcreatorbox.com/tech/css-flexbox-cheat-sheet/" target="_blank">配布元:Webクリエイターボックス</a></p>
</div>
</div>
<h2>まとめ</h2>
<p>いかがでしたか？<br />チートシートはみやすくまとめられているので、ぜひご活用ください。<br />また素敵なチートシートを見つけましたら、紹介しますね♪</p>


<style><!--
#Rurippa .spaceCont{
 padding-top: 30px;
margin-top: -30px;
}
--></style>]]></content:encoded>
			<wfw:commentRss>https://taneppa.net/cheatsheet_japanese2017/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[WordPress]記事投稿時に、タイトルの入力チェックをする方法</title>
		<link>https://taneppa.net/wp_titlechec/</link>
		<comments>https://taneppa.net/wp_titlechec/#comments</comments>
		<pubDate>Mon, 19 Oct 2015 01:34:00 +0000</pubDate>
		<dc:creator>tanippa!</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">https://taneppa.net/?p=2835</guid>
		<description><![CDATA[WordPressでは、記事タイトルの入力チェックをする機能を提供しておりませんので自分で作成する必要があります。なので今回は、タイトルの入力の有無をチェックする方法をご紹介したいと思います。]]></description>
				<content:encoded><![CDATA[<p>AdvancedCustomField(以下ACF)を使っていると、ACFで設定した項目に関しては入力の有無のチェックすることが出来るのですが、残念ながら記事タイトルに関しては入力のチェックをしてくれないので空タイトルの状態でも更新が出来てしまいます。</p>
<p>タイトルは基本的に必須にしたい場合がほとんどだと思いますので、今回はタイトルの入力の有無をチェックする方法をご紹介したいと思います。</p>
<h2 id="-">流れ</h2>
<ul>
  <li>タイトルの入力チェックをするためのJSファイルの作成</li>
  <li>作成したJSファイルを、functions.phpを弄って読み込ませる</li>
</ul>
<h2 id="js-">JSファイルの作成</h2>

<pre class="brush: xml; title: ; notranslate">;(function($){
  var $submitBtn = $('#publish');
  var $titleForm = $('#title');

  $submitBtn.on('click', function(){
    var title = $titleForm.val();

    if (title.length &lt;= 0) {
      alert('タイトルを設定してください。');

      return false;
    }
  });
})(jQuery);</pre>

<p>JSの処理は非常に単純です。</p>
<p>更新ボタンクリック時にタイトルの入力チェックをして、未入力ならアラートを出してキャンセルしています。</p>

<h2 id="functions-php-">functions.phpを弄って読み込ませる</h2>

<pre class="brush: xml; title: ; notranslate">function set_admin_script() {
  print('&lt;script type=&quot;text/javascript&quot; src=&quot;'.get_template_directory_uri().'/common/js/admin.js&quot;&gt;&lt;/script&gt;');
}
add_action('admin_footer', 'set_admin_script');</pre>

<p>「admin_footer」フックを利用することで、管理画面のフッターに任意のコードを出力することが出来ます。</p>
<p>今回は、先ほど作成したJSファイルを読み込ませるようscriptタグを出力させています。</p>
<h2 id="-">以上</h2>
<p>WordPressは管理画面側のカスタマイズが複雑なことが多く、中々上手くいかないこともありますが管理画面が使いにくいとWordPressを導入する意味がなくなってしまいますので頑張って調整しましょう。</p>
<p>以上、たにっぱでした〜</p>]]></content:encoded>
			<wfw:commentRss>https://taneppa.net/wp_titlechec/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[WordPress]functions.phpを無名関数を使って簡潔に書こう</title>
		<link>https://taneppa.net/noname_functions/</link>
		<comments>https://taneppa.net/noname_functions/#comments</comments>
		<pubDate>Tue, 13 Oct 2015 01:32:50 +0000</pubDate>
		<dc:creator>tanippa!</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">https://taneppa.net/?p=2831</guid>
		<description><![CDATA[Wordpressではフックを使ってカスタマイズをするのが基本ですが、その際のソースの書き方に関して、無名関数を使用したほうが無駄なくソースを書けるのにネットを見る限り中々浸透していないようです。そこで、今回は無名関数を使用した簡潔な書き方をご紹介したいと思います。]]></description>
				<content:encoded><![CDATA[<p>WordPressではフックを使ってカスタマイズをするのが基本ですが、その際のソースの書き方に関して、無名関数を使用したほうが無駄なくソースを書けるのにネットを見る限り中々浸透していないようです。</p>
<p>そこで、今回は無名関数を使用した簡潔な書き方をご紹介したいと思います。</p>
<h2 id="-">無名関数を使用した簡潔な書き方</h2>
<p>カスタム投稿タイプをfunctions.phpから作成したい場合、以下のようなコードになると思います。</p>

<pre class="brush: xml; title: ; notranslate">function add_news_post_type() {
  $args = array(
    'public' =&gt; true,
    'label'  =&gt; 'News'
  );
  register_post_type('news', $args);
}
add_action('init', 'add_news_post_type');</pre>

<p>この「add_news_post_type」という関数ですが、直後のadd_actionでしか使わないのにわざわざ関数名をつけないといけないの面倒に思いませんか？僕はめちゃくちゃ思います。</p>
<p>これを無名関数を使って書き換えると以下のようになります。</p>

<pre class="brush: xml; title: ; notranslate">add_action('init', function() {
  $args = array(
    'public' =&gt; true,
    'label'  =&gt; 'News'
  );
  register_post_type('news', $args);
});</pre>

<p>この場合の関数「function() {~}」のことを「無名関数」と言います。普通関数は「function get_some_values() {}」みたいな感じにfunctionの後ろには名前が必要なのに今回付いてないですよね？なので「無名」関数です。jQueryを使った経験のある方にはお馴染みですね。</p>
<p>この書き方の何がいいかというと、関数名を考えなくていいので</p>
<ul>
  <li>関数名に悩む時間を節約できる</li>
  <li>関数名の重複による問題に悩まされずに済む</li>
</ul>
<p>の２点です。</p>
<p>注意としては、無名関数はPHP5.3以降からの対応となるので、少なくなっては来ましたがPHP5.2以下の環境では使えないということに注意しましょう。</p>
<h2 id="-">以上</h2>
<p>自分は変数名・関数名を考えるのに時間を掛けてしまうタイプなので、出来るだけ考えなくていい場面では考えずに済ませるようにしたいと思ってこの書き方は最近多用しています。</p>
<p>以上たにっぱでした〜</p>]]></content:encoded>
			<wfw:commentRss>https://taneppa.net/noname_functions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
