• Resolved Julian

    (@juliangk)


    Hello Denis,

    as stated in the other thread, I have the problem, that I can attach files as admin (in the comment edit mode) but not in the comments directly.

    I am working with a very old custom theme and can not use any other theme. I would appreciate some help with tracking the issue, if you can help?

    Which functions could be interfering with your “save_attachment()” function?
    I have been disabling function one by one in the theme to get other things working, but this one is a tough one, which I wasn’t able to solve.

    Any input would be highly appreciated!

    Thank you!

    regards
    Julian

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Denis Yanchevskiy

    (@denisco)

    Hello @juliangk,

    Sorry for delay with answer.

    The save_attachment function uses the standard WP function media_handle_upload. This function exists in the core since 2.5.0. Thus, it should work well with old themes.

    Perhaps the reason is not the theme? Have you checked the Tools -> Site Health page?

    You can also try troubleshooting mode in the Health Check & Troubleshooting plugin to find the cause of the problem.

    quecodigo

    (@quecodig)

    Hi,
    I have this same problem but with the Astra Theme.
    Which does not upload the attachment and leave it only as text
    regards

    Plugin Author Denis Yanchevskiy

    (@denisco)

    Hello @quecodig,

    Have you tried the recommendations from my previous answer?

    P.S. Please create a separate topic for a separate question next time. This makes navigation a lot easier. Thanks.

    Thread Starter Julian

    (@juliangk)

    Hello Denis,

    We finally found the problem, the old theme developer deregistered jQuery, that is why it was not working.

    It is working as intended now.

    Plugin Author Denis Yanchevskiy

    (@denisco)

    Hello juliangk,

    Glad to hear that you solved your problem!

    Thanks for sharing the solution.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Images do not upload in custom theme’ is closed to new replies.