Firstly, what images are you referring to? The images are usually kept in the Media Library. The path will be in your pages or posts.
You can access a lot of free WordPress tutorials on this site.
I hope this helps.
My first task that I need to do is change the images path that the website uses. But I can’t find the right file.
If you want to change the default upload directory in WordPress then you need to edit the wp-config.php file located in the root directory.
For Ex:
If you want to upload your images in wp-content/img then write the following code in wp-config.php
define('UPLOADS', 'wp-content/img');
If you want the img directory to be outside wp-content folder then write the following code in wp-config.php
define( 'UPLOADS', ''.'files' );
Thank you for the replies.
The home page of the website uses a hardcoded image path (domain.org/wp-content/images/…), but since the domain name change I need to change that.
I can’t find what file I needed to modified.
You can solve this issue using SQL query or using WordPress Plugin. Before doing the following please take a backup of your database. Go to phpMyAdmin, click on your database and then click on SQL from top menu and run the below query but don’t forget to change it with your own old site and new site URL.
UPDATE wp_posts SET post_content = REPLACE(post_content, 'domain.org/', 'www.newdomain.org/');
-
This reply was modified 9 years, 1 month ago by
bswajitgiri.
Hi bswajitgiri,
My bad if I can’t keep up with yet, this is the src code:
<img title=”” class=”logo-img site-logo-img”
src=”http://oldomain.ph/wp-content/uploads/2016/05/IBI-Logo-White-Text-copy.png”>
Now I open my phpMyAdmin in bluehost, I check the database, there is no wp_post table.
The default Table Prefix of WordPress is wp_
In your case I don’t know what the developer set the prefix during WordPress installation. The default table is wp_posts.
If your developer set the prefix as xy. Then the table is xy_posts.
I hope this one helps you to solve your issue.
-
This reply was modified 9 years, 1 month ago by
bswajitgiri.
Yeah I saw the table now it was replaced as wp_svol_posts. However, I search the said image, its not there.
I saw the corresponding image in wp_svol_option, now I updated still not working. In WordPress database, does updating one table have a connection to other table?
-
This reply was modified 9 years, 1 month ago by
funkysloth.
Can anyone help me out here. Thank you