Archive for the Wordpress Category

wordpress:管理画面真っ白

Posted on 日曜日, 11 月 8th, 2009 at 3:06 PM

プラグインによっては管理画面が真っ白になるようだ。^^;

強行ログイン方法は、FTPなどでpluginsディレクトリの名前を変更するwログイン後元にもどす。

しかしこれをすると使用中プラグインが全て停止になる。

何を使用していたかは、あらかじめメモっておくべき?w 

関連記事

wordpress:monthchunks月刊アーカイブ

Posted on 土曜日, 10 月 24th, 2009 at 5:20 PM

wordpress:monthchunksを使って 月刊アーカイブを短くwする

monthchunks-2.1.zip をDLし あっぷ。プラグインON。

表示させたい場所に次を明記。

<?php monthchunks(); ?>

-----------

新しい年を上に表示するよう変更しよう。monthchunks.php 85行目辺り・・・かな

    // set SQL order by sort order
    if ($year_order == "descending")
    {
        $year_order = "DESC";
    }
    else
    {
        $year_order = "ASC";
    }

次のように変更

    // set SQL order by sort order
    if ($year_order == "descending")
    {
        $year_order = "ASC"; //"DESC";
    }
    else
    {
        $year_order = "DESC";//"ASC";
    }

-----

入れ替えるだけw

関連記事

wordpress:トラックバックスパム拒否

Posted on 月曜日, 5 月 4th, 2009 at 7:09 PM

wordpressにて 大量のトラックバックがくる。。。

数百件来ると個々に削除するのは大変・・。

標準プラグイン Akismet  を有効化。

APIキー はwordpress.com 登録し、入手する。

wordpress.com ログイン - 管理画面(ユーザー)-プロフィール あなたのWordPressのAPIキーは○○○

---------

別途プラグイン

Simple Trackback Validation Plugin

解凍した ファイル simple-trackback-validation.php を

/-content/plugins へ
管理画面 - 設定 - Simple TB Validation -

How to deal with spam trackbacks? (対処方法)

関連記事

wordpress:タイトル部分 » Blog Archive » を削除

Posted on 月曜日, 4 月 6th, 2009 at 1:26 PM

 wordpress

みめも » Blog Archive » タイトル

の真ん中 Blog Archive »を 削除したい。

header.phpの次の箇所を削除する。

変更前---
<title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title>
----------

削除 <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?>

----------
変更後---

<title><?php bloginfo('name'); ?> <?php wp_title(); ?></title>
----------

関連記事

wordpress:タイトル日本語非表示

Posted on 水曜日, 1 月 28th, 2009 at 9:47 PM

なんだかな。

鯖?文字コード?なんだか

wordpressの日本語が 表示できない。英語なら 可。ってことに

日本語入れると 空白ってか 無になる。。。最初に表示されていた日本語も編集・更新すると消える・・・。

wordpress 2.7
L鯖
文字コード UFT-8

解決法

.htaccessファイルに以下を記述
php_flag mbstring.encoding_translation off
php_value default_charset "UTF-8"

らしぃ(2.6なら これで おkみたぃ?)
が・・・変化なし。。

php.iniに以下を記述

mbstring.language = Japanese

 
----こっからは参考までに。----
safe_mode = off
max_input_time = 60
output_buffering = none
safe_mode_exec_dir = none
upload_max_filesize = 10M
variables_order = EGPCS
dbx.colnames_case = lowercase
HTTP input encoding translation = on
mbstring.detect_order = auto
mbstring.encoding_translation = on
mbstring.http_input = auto
mbstring.http_output = UTF-8
mbstring.internal_encoding = UTF-8
mbstring.language = Japanese
session.save_path = /var/lib/php/session
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"

-----ここまで--

関連記事

wordpress:タイトル変更(任意文字)

Posted on 月曜日, 12 月 8th, 2008 at 6:34 PM

SEO_TITTLE_TAG

header 部分を書き換える。

<title><?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' :'; } ?> <?php bloginfo('name'); ?></title>

(タイトル+ブログ名)

<title><?php if (function_exists('seo_title_tag')) { seo_title_tag(); } else { bloginfo('name'); wp_title();} ?> <?php bloginfo('name'); ?></title>
(任意のタイトル+ブログ名)

関連記事

wordpress:NEW 表示

Posted on 木曜日, 11 月 13th, 2008 at 11:10 PM

使用中テーマのサイドバー(最新エントリ・最新記事)の部分に以下を。。
 

<h2>最新エントリ</h2>
<li>
<ul>
<?php
$myposts = get_posts('numberposts=10'); foreach($myposts as $post) :
setup_postdata($post); ?>
<li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a>
<?php
$days=3; //set this to how many times are considered NEW!
$today=date('U'); $entry=get_the_time('U');
$diff1=date('U',($today - $entry))/86400;
if ($days > $diff1) {
echo ' <img src="画像までのパス/new.gif" alt="New!" />';
} ?>
</li>
<?php endforeach; ?>
</ul>
</li>
----

<ul>などは使用中テーマにより調整すべし。

<ul>
<?php
$myposts = get_posts('numberposts=10'); foreach($myposts as $post) :
setup_postdata($post); ?>
<li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a>
<?php
$days=3; //set this to how many times are considered NEW!
$today=date('U'); $entry=get_the_time('U');
$diff1=date('U',($today - $entry))/86400;
if ($days > $diff1) {
echo ' <img src="画像/new.gif" alt="New!" />';
} ?></li>

<?php endforeach; ?>

</ul>

関連記事

wordpress:Brogroll< h2 >変更

Posted on 日曜日, 10 月 26th, 2008 at 7:45 PM

Brogroll (見出し)変更

初期値の見出し(brogroll)
<?php wp_list_bookmarks(); ?>
の場合
<h2>brogroll(見出し)</h2>と 初期値に<h2>がある。(文字borgrollは Read the rest of this entry »

関連記事

wordpress:kill-wptexturize "や'などの記号を半角表示に

Posted on 日曜日, 10 月 26th, 2008 at 7:04 PM

wordpress プラグイン kill-wptexturize 導入。

ダブルクォーテーション " や シングルクォーテーション ' などの記号が
勝手に全角になってしまう。wordpressの仕様らしぃ。
ソース表示などしている場合 半角 " って 打っても 全角の ” になってしまう。。

カナリ 困る。  ので文字・記号などの自動変換を無効化することで解決。

(プラグインは有効化するだけでおk)

関連記事

wordpress:WP e-Commerce ショッピングカート設置

Posted on 火曜日, 10 月 14th, 2008 at 4:11 PM

wordpressプラグインpulgin導入。

日本語化してる人がいる~。

http://blockworks.jp/archives/530

あとはカスタマイズしてる人がいる。。http://www.lovy-studio.com/blog/?cat=8

 

e-Commerce  の  Settings の 言語を 日本語へ。

関連記事