WordPress.org

Ready to get started?Download WordPress

Forums

Allow PHP in Posts and Pages
[resolved] [closed] Hours and hours wasted - Plugin DOESN'T WORK (9 posts)

  1. simonnicol
    Member
    Posted 1 year ago #

    I typed in this code; Easiest code in the world huh and yet it doesn't work. I have tried everything and does it work? NOPE. I've spent around 8 hours on this and all it ever prints is 'Good Evening' and all the time I was thinking it was my fault, but no. It's this flipping plugin not working properly!

    [php]

    $hour = date('G');
    echo "$hour ";

    if ($hour >= 0 && $hour <= 11)
    {
    echo 'Good morning ';
    }
    else if ($hour >=12 && $hour <=17)
    {
    echo 'Good afternoon ';
    }
    else if($hour >=18 && $hour<= 24)
    {
    echo 'Good evening ';
    }

    [/php]

    http://wordpress.org/extend/plugins/allow-php-in-posts-and-pages/

  2. simonnicol
    Member
    Posted 1 year ago #

    Just switched to another PHP plugin and BAM!! All my code instantly started working!

    I can't believe the hours I spent with this useless plugin - download ANYTHING else but this.

  3. mr_aguilera
    Member
    Posted 1 year ago #

    @simonnicol Would You mind to tell me the name of the other php plugin please?

    Thanks.

  4. bernardberry646
    Member
    Posted 11 months ago #

    @simonnicol Why say you found another working plugin, but dont say what it is? SMH

  5. simonnicol
    Member
    Posted 11 months ago #

    Sorry about that. It's called Insert PHP - and works perfectly!

    http://wordpress.org/plugins/insert-php/

  6. bernardberry646
    Member
    Posted 11 months ago #

    Ironically, I'm literally looking at it now.. thanks for responding so timely though!

  7. bernardberry646
    Member
    Posted 11 months ago #

    Well, I have tried both, and when i revisited this plugin, I found it to work just like advertised. This one is far better than Insert Php.

  8. simonnicol
    Member
    Posted 11 months ago #

    "This one is far better than Insert Php."

    Well it either works or it doesn't. "far better" is meaningless.

    I found this plugin didn't work with the code I was using, so I beg to differ your opinion.

    If you're happy with this - super. Just thought it responsible of me to report that this plugin has bugs - if you haven't found them, then super.

    :)

  9. bernardberry646
    Member
    Posted 11 months ago #

    Well, if you read my post it was based of 'my' use and comparison of the two in regards to their ease of use and features and to let other readers that for "me" it did and does work.

    I never said it didn't work. And "far better" is meant as a comparison between it and Insert PHP which doesn't work like this one nor does it have the feature set like this one. Which would allow the next reader to also, maybe, compare the two like such.. feature set.

    As far as you simply saying "it doesn't work" is actually meaningless for others because, well, it doesn't work for "you".

    Would like to see if you could pass variables from content area to sidebar, actually anywhere on any page with Insert PHP.. it cant do it.

    Can it pass variables or any values for that matter OUTSIDE of the php block u create with it? Like say, have a variable in the content area WHILE using the same variable in a sidebar widget.. or footer widget?
    Nope.. So, I'll keep this plugin, its working great.

    :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic