WordPress †favicon †テーマから、テーマの編集 <link rel="shortcut icon" href="http://rck.jp/rckfavicon.png"> Chat †Wise Chat [自作プラグイン] bp-member-type-manage †Wordpress BuddyPress? 用メンバータイプ member type 追加 プラグイン URLを変えずにリダイレクト †WPネットワーク(マルチサイト)+BuddyPress?環境で、任意の(予約されてない)URLを related †サイト全体をパスワード(ユーザー名なし)で保護 †Password Protected 新しいサイトに古いサイトの一部を表示させる †Auto I-Frameプラグイン [auto-iframe link=http://202.23.184.218/papers/ tag=dmpl_autoiframe_test1 width=600 height=4000 autosize=yes] 参考 カスタム投稿タイプ/カスタムフィールド/カスタムテンプレート †カスタム投稿タイプ カスタムテンプレート(半自作) このため、カスタム投稿タイプ独自の処理をしたい場合は、 single-book.php(カスタム投稿タイプの単一記事テンプレート) などが必要。それぞれ、single.php、archive.php を test custom field <?php print(post_custom('bookauthor')); ?> 設定の確認、post_customで表示できるよう Custom Post Type UIで。 http://site../book/book1 で表示できるようになる。 設定の確認、post_customで表示できるよう Custom Post Type UIで。 マルチサイト †wp-config.phpの最後のほうの「/* 編集が必要なのはここまでです ! WordPress でブログをお楽しみください。 */ define ('WP_ALLOW_MULTISITE', true); を挿入 cd wp-content/ mkdir blogs.dir ダッシュボード再読み込み define('MULTISITE', true); define('SUBDOMAIN_INSTALL', true); define('DOMAIN_CURRENT_SITE', 'webic.jp'); define('PATH_CURRENT_SITE', '/'); define('SITE_ID_CURRENT_SITE', 1); define('BLOG_ID_CURRENT_SITE', 1); WPインストールディレクトリの.htaccessの変更 以下のようになるはず(実際はサーバー・ドメイン等により異なる) RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # add a trailing slash to /wp-admin RewriteRule ^wp-admin$ wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^(wp-(content|admin|includes).*) $1 [L] RewriteRule ^(.*\.php)$ $1 [L] RewriteRule . index.php [L] 参考 Wiki Plugin for Wordpress †記法 Formatting ~ Markdown https://wordpress.org/plugins/wordpress-wiki-plugin/ frame フレーム †Auto iFrame [auto-iframe link=http://.... tag=..test.. width=800 height=4000 autosize=yes] 専用固定ページ †固定ページの表示オプションで、「スラッグ」が見えるように カスタム投稿タイプのクエリ †$args = array( 'post_type' => 'career', // 'meta_key' => 'age', // 'orderby' => 'meta_value_num', // 'order' => 'ASC', ); $the_query = new WP_Query( $args ); //表示 if ( $the_query->have_posts() ) { echo '<ul>'; while ( $the_query->have_posts() ) { $the_query->the_post(); echo '<li>' . get_the_title() . '</li>'; } print(":: " . $title); $title = get_the_title(); print("/title: " . $title); $content = get_the_content(); print("/content: " . $content); print("/career_company: " . post_custom('career_company')); echo '</ul>'; } else { // no posts found } wp_reset_postdata(); ページネーション これは便利!WordPressのWP_Queryでよく使うコードスニペット WordPressテンプレートタグ集|初心者即実践&仕事で使えるコピペ用 Plugin: リダイレクト †WPプラグイン Safe Redirect Manager を使って、リダイレクトを実現 INSERT INTO `wprck_options` VALUES (1 : : ,(1196,917,'_redirect_rule_to','http://t4510.club/wiki/?Danf'), : ,(1195,917,'_redirect_rule_from','/danf'), : : (1198,917,'_edit_lock','1519518179:1'); Custom Post Type UIを使わないカスタム投稿タイプ † |