WordPress.org

Ready to get started?Download WordPress

Forums

Allow PHP in Posts and Pages
use shortcode in Allow PHP (2 posts)

  1. xinaurri
    Member
    Posted 1 year ago #

    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/

  2. gverhaeg
    Member
    Posted 8 months ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.