• Resolved Jessica Santos

    (@jessica-santos)


    Hello everyone. I’m new to wordpress. I know html, javascript, css, jquery, mysql and a bit of php.
    I’ve installed wordpress on localhost and i’m using WAMP.
    I have questions about this:

    ?1 – I’ve made the code to a support form of my website and when i run it, it shows this message: this page was not found.
    -> Does that mean that because i’m running the website locally it
    doesn’t shows the correct page? Or probably i need to use an auxiliary variable?

    ?2 – Can i install the current wordpress that i’m using in Computer A (at Work) in to Computer B (at Home) so that i can continue programming in Computer B what left to do in Computer A? And how can i do that?!

    ?3 – In this moment i’m trying to set a different profile picture to each user level in wordpress.
    -> Can i do that? Or better, where can i write the code so i can set to each user level a different profile picture? Oh, and what can i write so that only me (the Admin) can add those different profile pictures to each user level?

    Thanks for the Help in advance!! ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • ?2 – Can i install the current wordpress that i’m using in Computer A (at Work) in to Computer B (at Home) so that i can continue programming in Computer B what left to do in Computer A? And how can i do that?!

    Assuming I have correctly understood the work installation as being localhost in WAMP, you can duplicate that at home by doing the necessary installations (WAMP and WordPress) at home and then “moving (copying) WordPress” from work to home by importing the work database and adding the content of the /wp-content/ folder:
    https://www.google.com/search?q=moving+wordpress

    To do that, carrying things home on a stick might be the simplest way rather than trying to use an FTP/SFTP connection to either machine, and then you might or might not have to do some database updating if the drive paths on the two are not identical…

    note: Edit ‘pref’ (three places below) to your own table_prefix and change ‘https://www.olddomain.com’ and ‘https://www.newdomain.com’ as required (three places each and with no trailing slashes)

    UPDATE pref_options SET option_value = replace(option_value, 'https://www.olddomain.com', 'https://www.newdomain.com') WHERE option_name = 'home' OR option_name = 'siteurl';
    UPDATE pref_posts SET guid = replace(guid, 'https://www.olddomain.com', 'https://www.newdomain.com');
    UPDATE pref_posts SET post_content = replace(post_content, 'https://www.olddomain.com', 'https://www.newdomain.com');

    Disclaimer: The above is all theoretical since I have never actually done that.

    As to syncing the two installations on an on-going basis, no problems should arise from using a stick or whatever to transfer (copy) /wp-content/themes/ and /wp-content/plugins/ from one machine to the other, but /wp-content/uploads/ and the database would be a different matter since uploads must be registered in the database and the simplicity or complexity of syncing the two databases would be dependent upon the above. In my own case, I often just copy-and-paste from the page/post editor at one site to another while having the two side-by-side in a browser, and you might be able to do something similar (and then also deal with the matter of any new upload/s) if actual content is what you are trying to sync.

    Thread Starter Jessica Santos

    (@jessica-santos)

    Thanks @leejosepho i think i undestood what you meant. Probably the “best” is really copy and paste the DB and the files from WAMP in computer A to the B and from B to A also.
    I’m using the same “domain”. In my case i installed the website in localhost, so it’s: localhost/wp-login.php when i need to go to my website. So in both computers i’m going to do the same.

    >>I’m going to try that and tell you how it went.

    Now, just need to understand the ?1 e 3? questions i’ve made :^)

    Thread Starter Jessica Santos

    (@jessica-santos)

    I’m going to create another Post. Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WordPress on localhost’ is closed to new replies.