サポート » 使い方全般 » カスタムフィールドの値を置換して表示したい

  • 解決済 nobita

    (@nobita)


    こんにちは、

    カスタムフィールドの値を置換して表示したいのですが hook を見つける事が出来ません。

    以下のような事をしたいのですが、

    カスタムフィールドの値:http://www.example.com/news/%5Btoday%5D

    add_filter("some_custom_field_hook","my_custom_rewrite");
    
    function($custom){
    //$customは、配列かもしれませんが、、、、
    
    if(is_string($hoge[$custom])){
     $hoge[$custom] = str_replace('[today]',date('ymd'),$custom);
    }
    …
    }

    hookを教えてください

  • トピック「カスタムフィールドの値を置換して表示したい」には新たに返信することはできません。