• Hi, I created my portfolio site on a local host first (Mamp)…
    – I completely finished it (many pages using a slideshow plugin)…
    – then I changed the site url (using advice from this forum), and then my site wouldn’t load anymore on my local host…
    – but since I was ready to upload it to my godaddy server, I followed all advice from this forum, also used their tech support
    – and got everything up and running.
    …Except, none of my pages and content are there.
    …The only thing that shows up is a home page and a sample page and it’s styled by the style.css settings in my wp-content folder.
    …GoDaddy support is clueless and I’m completely frustrated.
    Here’s the url: https://alteredbliss.com/
    Thanks in advance for any suggestions!
    Andreas

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator t-p

    (@t-p)

    changed the site url (using advice from this forum),

    Have you followed instructions here: https://codex.www.ads-software.com/Changing_The_Site_URL

    It appears that all you did was just install the default WP on your site, probably with the GD one-click install. Unfortunately, that’s not how it works when moving a local site ??

    You have to realize that WP stores in and retrieves from the database the pages, posts, settings, etc. and that these are not stored in files. The only files that are created are stored in the wp-content folder. These include media, themes and plugins. Keep in mind that settings relating to these are also stored in the db.

    So when you move a WP site, you must move two “things”: the database and the wp-content folder.

    Here is how to get your local site on your GD site (assuming you installed WP to the root of your hosting account AND that you still have the live site URLs in your local site):

    – from the MAMP Start Page, select phpMyAdmin
    – select the WP database from the left pane and then click the Export tab in the right pane
    – in Export Method, click Custom
    – in Output select Save output as file
    – accept all the other items, scroll down and click ‘Go’
    – you will now have a db export file (db_name.sql) in your Downloads folder
    – using the GD File Manager, find and delete the entire wp-content folder
    – on your local install, create a ZIP of the wp-content folder and upload it to the root
    – unarchive it there so that there is a wp-content folder in the root of the account with the contents of the local site wp-content folder; you could also use FTP to do the same thing, file by file
    – from your GD hosting control panel (HCP), create a new, empty database
    – once it shows “set up”, click the pencil icon to go and get the unique hostname for the db; also note the user name and password (NOTE: these are for the DATABASE, and NOT the login for your WP Dashboard)
    – click the Manage (I believe that’s the link) for the db to bring up the phpMyAdmin login and use the credentials you just retrieved
    – select the Import tab (right pane), click choose file, browse to your exported file, select it , click Open and then click ‘Go’
    – you should get a ‘X number of queries’ completed (or some such message)
    – in the GD file manager, locate and edit the wp-config.php with the new db credentials for db_host, db_user and db_password
    – that’s that part ?? … you should now have the contents of your local site on your GD site

    But you are not done yet ?? … you have to adjust the URLs of any images, links etc. that you created locally as WP uses absolute URLs.

    There are two popular tools to search and replace your db to change the URLs to match the current location. Which one to use depends upon what type of data is to be replaced. The most complete one, which includes serialized string replacement, is the one I use, but make SURE to thoroughly read the instructions! ??

    https://interconnectit.com/products/search-and-replace-for-wordpress-databases/

    That’s it ??

    It looks like a lot, but should not take more than “10 minutes” ??

    Thread Starter brigfelt

    (@brigfelt)

    Thank you very much! It worked. I really appreciate your help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘My site content doesn't show up’ is closed to new replies.