Title: User-name shortcode not working
Last modified: August 22, 2016

---

# User-name shortcode not working

 *  Resolved [billhi](https://wordpress.org/support/users/billhi/)
 * (@billhi)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/user-name-shortcode-not-working/)
 * The user name shortcode, 4.0, isn’t working:
    [O_U user_name=”user1″][nggallery
   id=1][/O_U]
 * I’ve not used it prior to 4.0, but based on other comments, this might be a 4.0-
   release issue.
 * [https://wordpress.org/plugins/user-specific-content/](https://wordpress.org/plugins/user-specific-content/)

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

 *  Plugin Author [Bainternet](https://wordpress.org/support/users/bainternet/)
 * (@bainternet)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/user-name-shortcode-not-working/#post-5336340)
 * Just tested it and it works fine. can you help me replicate?
 *  Thread Starter [billhi](https://wordpress.org/support/users/billhi/)
 * (@billhi)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/user-name-shortcode-not-working/#post-5336355)
 * Hi,
 * I’ve a Genesis/Dynamik installation on my localhost, with two subscribers, user1
   and user2, both default except for having admin privileges disabled. The content
   comprises two nextgen galleries, via shortcodes, on a page.
 * Below is the test code. The content targeted by user1 and user2 are not displayed
   in any case. However, the galleries are displayed by the gallery shortcodes without
   any O_U shortcodes.
 * <h1>user 1 gallery</h1>
    [O_U user_name=”user1″][nggallery id=1][/O_U]
 * <h1>user 2 gallery</h1>
    [O_U user_name=”user2″][nggallery id=2][/O_U]
 * <h1>without shortcodes, both galleries</h1>
 * [nggallery id=1]
    [nggallery id=2]
 * Regards,
    BillHi
 *  Plugin Author [Bainternet](https://wordpress.org/support/users/bainternet/)
 * (@bainternet)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/user-name-shortcode-not-working/#post-5336388)
 * Ok should be fixed in 1.0.4
    thanks.
 *  [Robert Chapin](https://wordpress.org/support/users/miqrogroove/)
 * (@miqrogroove)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/user-name-shortcode-not-working/#post-5336477)
 * Hi, this might be caused by a bug we are fixing in 4.0.1. I suggest that you 
   try to replace the wp-includes/formatting.php file with this one [https://core.trac.wordpress.org/export/HEAD/trunk/src/wp-includes/formatting.php](https://core.trac.wordpress.org/export/HEAD/trunk/src/wp-includes/formatting.php)
 * Also, please tell us which version of PHP you are using.
 *  Thread Starter [billhi](https://wordpress.org/support/users/billhi/)
 * (@billhi)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/user-name-shortcode-not-working/#post-5336480)
 * I’m using PHP version 5.4.19 (localhost–Desktop Server). Thanks.
 *  [Robert Chapin](https://wordpress.org/support/users/miqrogroove/)
 * (@miqrogroove)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/user-name-shortcode-not-working/#post-5336482)
 * billhi, thank you. 5.4.19 is not affected by that PHP bug as far as we know so
   far, but you can still use the newer formatting.php file if you want to. Enjoy.
 *  Thread Starter [billhi](https://wordpress.org/support/users/billhi/)
 * (@billhi)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/user-name-shortcode-not-working/#post-5336502)
 * Yes, 1.0.4 is working for me. Thank you.

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

The topic ‘User-name shortcode not working’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/user-specific-content_ffffff.svg)
 * [User Specific Content](https://wordpress.org/plugins/user-specific-content/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-specific-content/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-specific-content/)
 * [Active Topics](https://wordpress.org/support/plugin/user-specific-content/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-specific-content/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-specific-content/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [billhi](https://wordpress.org/support/users/billhi/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/user-name-shortcode-not-working/#post-5336502)
 * Status: resolved