ページ内目次

Anspress にフィールドを追加 OS AnsPress Custom Fields 挫折編

AnsPressは非常に優れたプラグインで、Yahoo!知恵袋のようなサイトをつくるにはもってこい!

さらに、ちょっと工夫すれば質問掲示板以外の使い方も可能です。

そんなときに「フィールドを増やしたいなぁ」となるわけです。

例えば、お店の口コミサイトをつくろうとすると、来店日時とかエリアなどのフィールドが必要になります。

AnsPressの公式サイトにもフィールドを増やす方法は書かれているのですが、いつものように「なんかいいものはないかな」と探してみると…

ズバリ! 

OS AnsPress Custom Fields

というプラグインがありました。

「こんな風に増やせるんだぜ」的なスクリーンショットまであり

早速インストール♬

早速警告(;´∀`)瞬殺

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘osap_custom_fields_admin_error_notice’ not found or invalid function name in /s-aga-s.com/wordpress/testsite2/wp-includes/class-wp-hook.php on line 298

あんだとー

警告されているのは以下の箇所、elseifのところです。

// Avoid the array_slice if possible.

 if ( $the_['accepted_args'] == 0 ) {
 	$value = call_user_func_array( $the_['function'], array() );
 } elseif ( $the_['accepted_args'] >= $num_args ) {
 	$value = call_user_func_array( $the_['function'], $args );
 } else {
 	$value = call_user_func_array( $the_['function'], array_slice( $args, 0, (int)$the_['accepted_args'] ) );
 }

いろいろやってみましたが、修復できませんでした。

WordPressの旧バージョンでも試してみました。

それに、サポートフォーラムの質問には全く対応していませんし、プラグインの開発・使用状況を見ても、このプラグインは???かな。

 

This website stores cookies on your computer. These cookies are used to provide a more personalized experience and to track your whereabouts around our website in compliance with the European General Data Protection Regulation. If you decide to to opt-out of any future tracking, a cookie will be setup in your browser to remember this choice for one year.

Accept or Deny

↑上へまいりま〜す