WordPressのカスタム投稿タイプは、投稿などと切り分けられて便利ではあるのですが、パーマリンク利用時にカスタム投稿の一覧や年月アーカイブの表示に困ったりすることになります。 WordPressのパーマリンクというのは、アクセスされたURLをもとに、デフォルトのURLのパターンに変換し、内部処理を行っています。 カスタム投稿タイプについても、デフォルトのパーマリンクでは、?post_type=customや?post_type=custom&year=2011&monthnum=04で表示出来るので、簡単に言うと、パーマリンクのURLから、左記で示したデフォルトのURLに変換できるようにマッピングさせてあげれば良いのです。 CODE 1は、デフォルト以外の投稿タイプで、投稿タイプの一覧や、投稿タイプの年月アーカイブが表示できるようにするコードです。 /custom_post_slug/
I've been researching this all day and haven't come up with much results. I want to restrict who can see my Custom Post Types by User Level (or some other way). So if the person logged in is not an 'administrator' the added Custom Post Types are not visible to them. Here is part of a Custom Post Type that I have: add_action('init', 'portfolio_register'); function portfolio_register() { $labels = a
This tutorial will guide you step by step on how to setup your server so you can install new plugins and upgrade existing plugins using an SSH2 layer in PHP and WordPress. What is WordPress? WordPress started in 2003 with a single bit of code to enhance the typography of everyday writing and with fewer users than you can count on your fingers and toes. Since then it has grown to be the largest sel
WordPress 3.0 よりWordPress MU が統合され、マルチサイト機能が簡単に利用できるようになった。このマルチサイトを利用すれば、一度のインストールで、サブドメインまたはサブディレクトリで、複数のWordPressを運用できるようになる。 今回はさらに一歩進めて、WordPress のマルチサイトでドメインマッピングを利用して複数の独自ドメインを運用する方法を見ていきたいと思う。今回は、Coreserverでの設定方法になるが、途中まではほとんど共通の設定になると思う。ドメインマッピングについては、ホスティングサービスによってやり方が異なったり、できない場合もあると思うのであくまでも参考にしてもらいたい。 WordPress のインストール・マルチサイトの設定をする まず、WordPress を通常通りインストールしよう。 WordPress でマルチサイトを利用するには
Changelog 7.1.7 Tested up to 6.6 Update password reset handler to reflect WP core Update WP core strings to match the current state of WP core Enforce proper permissions when removing notices Transform TML Action nav menu items earlier to provent collisions Fix overriding of block theme templates 7.1.6 Tested up to 6.3 Ensure action page match check query is only ran once Fix login_form_{$action}
Plugin Description: Regenerate Thumbnails allows you to regenerate all thumbnail sizes for one or more images that have been uploaded to your Media Library. This is useful for situations such as: A new thumbnail size has been added and you want past uploads to have a thumbnail in that size. You’ve changed the dimensions of an existing thumbnail size, for example via Settings ? Media. You’ve switch
Willkommen auf WebsiteBerater.com WebsiteBerater.com ist eine kostenlose Sammlung von Ressourcen für alle, die zum ersten Mal eine eigene Website erstellen. Genauso ist WebsiteBerater.com aber auch für erfahrenere Benuzter und Webmaster geeignet, um sich an Dinge zu erinnern, die sie schon lange nicht mehr gebraucht haben, oder Tipps und Tricks zu aktuellen Themen zu finden. Auf der Homepage diese
Added in WordPress Version 2.7, the Dashboard Widgets API makes it simple to add new widgets to the administration dashboard. Doing so requires working knowledge of PHP and the WordPress Plugin API, but to plugin or theme authors familiar with hooking actions and filters, it only takes a few minutes and can be a great way to make your plugin even more useful. Default Dashboard Widgets Overview The
デフォルト状態の WordPress では、MySQL が落ちているなどの理由でデータベース接続できない場合、左図のような「エラー:データベース接続できません。」という簡素な画面が表示されます。 これでは、あまりにもカッコ悪いので、右図のようにちょっとカッコいいエラー画面を表示してあげるための Tips です。 有名サイトでも、この画面をカスタマイズしてない所はたまに見かけるので、あまり知られていないかなと思ってエントリ (^^;;; と言っても、そんなに面倒なわけではなくて、wp-content 以下に db-error.php と言う名前でDBエラー時に表示させたい PHP ファイルを置いておくだけです。 ちなみに私の所では、こんな感じの内容で db-error.php を作成しておいてあります。 <?php header( 'HTTP/1.1 503 Service Unavaila
Wordpress is not just a blogging platform but it is being considered as a whole CMS because of it's themes and plugins customization and you can use it for any kind of a site. So, here are some of the best Free Magazine style Wordpress themes.1. MagZine Demo | Download and Details 2. Arras Demo | Download and Details 3. Magazeen Demo | Download and Details 4. Freemium Demo | Download and Details 5
Google Analyticator easily adds Google Analytics tracking support to a WordPress-powered blog. Google Analyticator also comes with an easily customizable widget that can be used to display specific information that is gathered by Google Analytics using the Google Analytics API. It supports all of the tracking mechanisms that Google Analytics supports such as external link tracking, download tracki
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く