Title: use shortcode in Allow PHP
Last modified: August 21, 2016

---

# use shortcode in Allow PHP

 *  [xinaurri](https://wordpress.org/support/users/xinaurri/)
 * (@xinaurri)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/use-shortcode-in-allow-php/)
 * Hi !
    First sorry for my bad english…
 * i’m using Allow PHP in Posts and Pages for my website and i use MemberShip Manager
   to manage members.
 * In an post or page i can use the shortcode [member login] to customize posts.
   For example, i can write “Hello [member login] !” in back-end and in front i 
   can see “Hello Brian !”
 * I need to use the login of connected member in a snippet but i can’t do it.
    
   I like to put this code at the beginning of a snippet `$login = [member login];`
   but if i do it i have an error
 * > Parse error: syntax error, unexpected ‘[‘ in /homepages/29/d264815325/htdocs/
   > wp-content/plugins/allow-php-in-posts-and-pages/allowphp.php(373) : eval()’
   > d code on line 5
 * thank you for your help !
 * [http://wordpress.org/plugins/allow-php-in-posts-and-pages/](http://wordpress.org/plugins/allow-php-in-posts-and-pages/)

Viewing 1 replies (of 1 total)

 *  [gverhaeg](https://wordpress.org/support/users/gverhaeg/)
 * (@gverhaeg)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/use-shortcode-in-allow-php/#post-3999932)
 * I have the same problem
 * I use WordPress 3.5.1 and the plugin Version 3.0.4
 * Many thanks to resolve this problem asap

Viewing 1 replies (of 1 total)

The topic ‘use shortcode in Allow PHP’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/allow-php-in-posts-and-pages_edefed.
   svg)
 * [Allow PHP in Posts and Pages](https://wordpress.org/plugins/allow-php-in-posts-and-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/allow-php-in-posts-and-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/allow-php-in-posts-and-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/allow-php-in-posts-and-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/allow-php-in-posts-and-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/allow-php-in-posts-and-pages/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [gverhaeg](https://wordpress.org/support/users/gverhaeg/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/use-shortcode-in-allow-php/#post-3999932)
 * Status: not resolved