@suraj jadhav
one of the last communication from your end says
I don’t have WordPress backend knowledge
That’s why i didn’t recommended phpMyAdmin option.
Also you gave some information about site as
I was able to use that images (uploads in new directory) before itheme security new update. as of now I can’t use any of image from directory
It means you have an existing site. iThemes Security feature for changing wp-content directory name is not recommended for existing site, but for new site installation only.
In your last communication you mentioned that changing upload_path though phpMyAdmin resolves your issue. But actually it is a partially solution for your issue. By changing upload_path though phpMyAdmin, you can upload and link any attachment for the posts you are going to publish in future. But existing attachments still contains default wp-content instead of newly changed app-data (your custom directory name) in database.
Since you can access with phpMyAdmin, follow the following instructions:
- Goto wp-posts table
- sort table by clicking post_type
- verify all that says attachment
- look at urls under guid, all they have still point to old or default directory wp-content
If you have more attachments in the existing site, then you need to change all wp-content occurrences, but just changing upload_path is not sufficient enough.
Best solutions is one of the following:
- First option: in phpMyAdmin, you need to change all occurrences of wp-content in all possible tables using SQL queries or manually change just like you did for upload_path
- Second option:
- backup database.
- drop all tables but not database.
- open backup database with notepad.
- replace all occurrences of wp-content with newly changed directory name, and save it with new name
- then upload newly saved data to the existing database name