サポート » 使い方全般 » メディアの画像が別の月のフォルダに入ってしまう

  • 解決済 saisa333

    (@saisa333)


    いつもお世話になります。

    メディアからアップロードした画像やPDFがすべて2021年12月のフォルダに入ってしまいます。
    メディアからのアップロードで現在の月のフォルダに入るようにしたいのですが、
    対処方法をご存知の方、ご教授いただけませんでしょうか。

    メディアの設定では、アップロードしたファイルを年月ベースのフォルダに整理するように設定しています。

    下記がいくつか検証してみた内容です。

    ■ダッシュボードのメディアからアップロード
     → すべて2021年12月のフォルダに入る

    ■公開済みの投稿ページからアップロード
     → ファイルをドロップしてアップロードした場合、そのページを公開した月のフォルダに入る
     → ファイル名を選択してアップロードした場合、現在の月のフォルダに入る

    ■公開済みの固定ページからアップロード
     → 公開日に関係なく、現在の月のフォルダに入る

    こちらのページに似たような質問がありましたが、現象は異なるようです。
    https://teratail.com/questions/252810

    WordPressのバージョンは6.1.1
    PHPのバージョンは7.4.33
    使用テーマはAffinger6 EX
    (同じテーマを使用している別のサイトでは同様の現象は起きず、メディアからのアップロードで現在の月のフォルダに入ります。)
    プラグイン、テーマ、WordPress本体すべて最新バージョンです。

    プラグインをすべて無効にして試しても同じでした。

    サイトの運用を始めたのが2021年12月なのですが、
    それも関係しているのでしょうか。

    メディアからのアップロードで現在の月のフォルダに入る対処方法をご存知の方、
    ご教授よろしくお願いします。

4件の返信を表示中 - 1 - 4件目 (全4件中)
  • こんにちは

    問題解決のためのチェックリスト」は試されたでしょうか?
    デフォルト テーマでも同じ現象が再現しますか?

    トピック投稿者 saisa333

    (@saisa333)

    ishitaka様

    ご返信ありがとうございます。

    「問題解決のためのチェックリスト」に沿って
    検証してみましたところ、

    デフォルトのテーマでは正常に現在の月のフォルダに画像がアップされたため、
    使用しているテーマが関係しているようです。

    各バージョンなどの情報と、
    デバッグモードで各ページに表示されたエラーメッセージを
    記載させていただきます。

    この情報で何かわかりますでしょうか?

    —————
    ・WordPress のバージョン 6.1.1
    ・使用テーマ Affinger6 EX バージョンは最新
    ・PHPのバージョン 7.4.33
    ・MySQL のバージョン mysqlnd 7.4.33
    ・サーバー環境 Xサーバー
    ・OS Windows11
    ・ブラウザ Chrome、Edgeで同じ現象

    プラグインをすべて無効にしても同じ現象が発生

    —————
    ・エラーメッセージ
    【トップページ】
    You see the following because WP_DEBUG and WP_DEBUG_DISPLAY are enabled on this site. Please disabled these to prevent the display of these developers’ debug messages.

    Is frontpage, TOC is not enabled.
    Is frontpage, TOC is not enabled.
    Is frontpage, TOC is not enabled.
    Is frontpage, TOC is not enabled.
    false

    The the_content filter applied.
    The the_content filter applied.
    The the_content filter applied.
    The the_content filter applied.
    The the_content filter applied.
    The the_content filter applied.
    The the_content filter applied.
    The the_content filter applied.
    The the_content filter applied.
    The the_content filter applied.
    true

    Post eligible.
    Post eligible.
    Post eligible.
    false

    ———
    【最新記事一覧ページ】
    Post type is.
    Post type is.
    Post type is.
    Post type is.
    page

    Is supported post type?
    Is supported post type?
    Is supported post type?
    Is supported post type?
    true

    Is auto insert for post types?
    Is auto insert for post types?
    Is auto insert for post types?
    Is auto insert for post types?
    false

    Auto insert enabled and disable TOC is not enabled in post meta.
    Auto insert enabled and disable TOC is not enabled in post meta.
    true

    The the_content filter applied.
    The the_content filter applied.
    The the_content filter applied.
    The the_content filter applied.
    true

    Post eligible.
    Post eligible.
    Post eligible.
    false

    Not supported post type or insert TOC is disabled.
    Not supported post type or insert TOC is disabled.
    false

    ——————–
    【固定ページ】
    Post type is.
    Post type is.
    Post type is.
    Post type is.
    page

    Is supported post type?
    Is supported post type?
    Is supported post type?
    Is supported post type?
    true

    Is auto insert for post types?
    Is auto insert for post types?
    Is auto insert for post types?
    Is auto insert for post types?
    false

    Not supported post type or insert TOC is disabled.
    Not supported post type or insert TOC is disabled.
    Not supported post type or insert TOC is disabled.
    Not supported post type or insert TOC is disabled.
    false

    The the_content filter applied.
    The the_content filter applied.
    The the_content filter applied.
    The the_content filter applied.
    true

    Post eligible.
    Post eligible.
    Post eligible.
    false
    ———————
    【投稿ページ】
    Post type is.
    Post type is.
    Post type is.
    post

    Is supported post type?
    Is supported post type?
    Is supported post type?
    true

    Is auto insert for post types?
    Is auto insert for post types?
    Is auto insert for post types?
    true

    Auto insert enabled and disable TOC is not enabled in post meta.
    Auto insert enabled and disable TOC is not enabled in post meta.
    Auto insert enabled and disable TOC is not enabled in post meta.
    true

    The the_content filter applied.
    The the_content filter applied.
    The the_content filter applied.
    The the_content filter applied.
    true

    Post eligible.
    Post eligible.
    true

    ———————-
    【カテゴリーアーカイブページ】
    エラーなし

    テーマが原因と思われます。
    有償テーマですので、このフォーラムではサポートすることができません。専用フォーラムもあるようですので、そちらで質問された方が的確な回答を得られると思います。

    トピック投稿者 saisa333

    (@saisa333)

    お返事が遅くなりすみません。
    テーマの制作元に問い合わせをし、解決いたしました。
    ありがとうございました。

4件の返信を表示中 - 1 - 4件目 (全4件中)
  • トピック「メディアの画像が別の月のフォルダに入ってしまう」には新たに返信することはできません。