Recent visitors
Japanese lessons from an awardwinning Site.
Installation Instruction
Folder: wp-pagenavi
Usage Instructions
<?php if(function_exists(‘wp_pagenavi’)) { wp_pagenavi(); } ?>
/wp-content/plugins/wp-pagenavi/pagenavi-css.css
の中の
<p align=”center”><?php posts_nav_link(‘ – ‘,’« Prev’,'Next »’) ?></p>
を
<div align=”center”><?php if(function_exists(‘wp_pagenavi’)) { wp_pagenavi(); } ?></div>
に変更。
I. WP-DBManagerで行う方法
1. DB Optionsで、
Path To mysqldump:/usr/bin/mysqldump
Path To mysql:/usr/bin/mysql
等に設定。
2 Backup DBで、設定が正しいか、確認してから、バックアップ.
Please create ‘backup-db’ folder in ‘wp-content’ folder and CHMOD it to ’777′ or change the location of the backup folder under DB Option.
Backup folder is NOT writable. Please CHMOD it to ’777′.
II.MYsqlから、エクスポートする。
データベースのテーブルは、全てUTF-8 binに設定。
わたしは、 archiveに
<p>Published under <?php the_category(‘,’) ?>. <?php if(function_exists(‘the_views’)) { the_views(); } ?> <?php the_tags(‘Tags: ‘, ‘, ‘, ”); ?> | <?php post_updated(‘jS M Y’, 24, ‘Last modified: ‘, ”); ?> | <?php edit_post_link(Edit); ?> </p>
とした。
インストール等は、Post Updatedを参照。
archive.phpの loopが始まる前に、
<?php query_posts($query_string . "&order=ASC"); ?>
を追加して、成功♪
1. Download and unzip the WordPress package, if you haven’t already.
2. Create a database for WordPress on your web server, as well as a MySQL user who has all privileges for accessing and modifying it.
3. Rename the wp-config-sample.php file to wp-config.php.
4. Open wp-config.php in your favorite text editor and fill in your database details.
5. Place the WordPress files in the desired location on your web server:
* If you want to integrate WordPress into the root of your domain (e.g. http://example.com/), move or upload all contents of the unzipped WordPress directory (but excluding the directory itself) into the root directory of your web server.* If you want to have your WordPress installation in its own subdirectory on your web site (e.g. http://example.com/blog/), rename the directory wordpress to the name you’d like the subdirectory to have and move or upload it to your web server. For example if you want the WordPress installation in a subdirectory called “blog”, you should rename the directory called “wordpress” to “blog” and upload it to the root directory of your web server.
Hint: If your FTP transfer is too slow read how to avoid FTPing at : Step 1: Download and Extract.
6. Run the WordPress installation script by accessing wp-admin/install.php in your favorite web browser.
* If you installed WordPress in the root directory, you should visit: http://example.com/wp-admin/install.php
* If you installed WordPress in its own subdirectory called blog, for example, you should visit: http://example.com/blog/wp-admin/install.php
Post Levelsの導入メモ
post-levels.php file into your wp-content/plugins directory最初に、ユーザーごとにユーザーレベル設定して、
同時に、記事ごとにレベルを設定出来る。
それによって、公開した記事に対して、
閲覧ユーザーをコントロールできる。
例えば、アクセスレベルを10にすると、管理者のみがログイン時に閲覧可能な記事として管理できる。
Note: The following are the user levels for WordPress versions prior to 1.5. They may vary with the version.
Subscriber Role- User Level 0
Contributor Role – User Level 1
Author Role – User Levels 2, 3, and 4
Editor Role – User Levels 5, 6, and 7
Administrator Role – User Level 8, 9, and 10
そこで、私は、私のユーザーレベルのガイドラインを以下のようにしようと決めました。
設定法
Plugin> Post Levels Configuration
Post Levels is a plugin that allows you to restrict access to your posts based upon the user’s access level.
| Private Post Title Prefix: | What text gets prepended to the post title |
|---|---|
| Private Post Title Postfix: | What text gets appended to the post title |
| Default Post Level: | Posts marked Private have this level by default |
| Default User Level: | Users have this level by default |