Title: Help with inserting code
Last modified: August 30, 2016

---

# Help with inserting code

 *  Resolved [kwss](https://wordpress.org/support/users/kwss/)
 * (@kwss)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/help-with-inserting-code/)
 * Hello.
    Please help me with inserting PHP code. I want soon to migrate from localhost
   to my server, and im afraid i will have to change every img and href source manually
   after i move my site from localhost. I want to insert in actual html code:
 *     ```
       <img src="http://localhost/wordpress/wp-content/uploads/2015/07
       /ppoz.jpg"/>   <-- something like PHP path to attachement
   
       short code: http://localhost/wordpress/?p=81
       (i copied and paste this path manually...)
   
       and here:
        <a href="http://localhost/wordpress/sprzet-ppoz/">
       Zobacz więcej</a> <- and here PHP path to page with id,
   
       shortcode: http://localhost/wordpress/?p=53
   
       i was trying with:
       $actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]?p=53";>
       ```
   
 * but dont know how to get it with it
 * here are some helpfull screenshoots:
    [http://postimg.org/image/7nazdmwwr/](http://postimg.org/image/7nazdmwwr/)

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

 *  Plugin Author [wipeoutmedia](https://wordpress.org/support/users/wipeoutmedia/)
 * (@wipeoutmedia)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/help-with-inserting-code/#post-6324876)
 * Hi kwss,
 * Thanks for taking the time to write this, however I am really sorry but I can’t
   assist you with this support question. I really hope someone out there can.
 * Kind Regards,
    Damian
 *  Thread Starter [kwss](https://wordpress.org/support/users/kwss/)
 * (@kwss)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/help-with-inserting-code/#post-6324883)
 * actually found solution at:
    [https://codex.wordpress.org/Linking_Posts_Pages_and_Categories](https://codex.wordpress.org/Linking_Posts_Pages_and_Categories)

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

The topic ‘Help with inserting code’ is closed to new replies.

 * ![](https://ps.w.org/css-javascript-toolbox/assets/icon-256x256.gif?rev=3132209)
 * [CSS & JavaScript Toolbox](https://wordpress.org/plugins/css-javascript-toolbox/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/css-javascript-toolbox/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/css-javascript-toolbox/)
 * [Active Topics](https://wordpress.org/support/plugin/css-javascript-toolbox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/css-javascript-toolbox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/css-javascript-toolbox/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [kwss](https://wordpress.org/support/users/kwss/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/help-with-inserting-code/#post-6324883)
 * Status: resolved