Title: Help Needed Getting URL Shortcode Working Post-4.2.3
Last modified: August 30, 2016

---

# Help Needed Getting URL Shortcode Working Post-4.2.3

 *  [John](https://wordpress.org/support/users/mav3000/)
 * (@mav3000)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/help-needed-getting-url-shortcode-working-post-423/)
 * Hi, I am using a simple shortcode to output the URL of my site for use in URLs
   in my theme. e.g:
 * `
    ... img src="[rs-get-site-url]/wp-content/themes/theme_1.0/image.png" alt=""...
 * This is the shortcode code, in functions.php:
 * `
    add_shortcode('rs-get-site-url', 'rs_get_site_url_func');
 *  function rs_get_site_url_func() {
    return get_site_url(); }
 * Since the WordPress 4.2.3 update this has stopped working, but because I am not
   using bad quotes or variables, I don’t know why. How can I get this working in
   WordPress 4.2.3?
 * My site is not working until I get this working again.
 * Any help appreciated,
 * Mav3000 🙂

The topic ‘Help Needed Getting URL Shortcode Working Post-4.2.3’ is closed to new
replies.

 * 0 replies
 * 1 participant
 * Last reply from: [John](https://wordpress.org/support/users/mav3000/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/help-needed-getting-url-shortcode-working-post-423/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
