Results 1 to 9 of 9
  1. #1
    baldidiot is offline Private Member
    Join Date
    January 2010
    Posts
    5,096
    Thanks
    432
    Thanked 2,333 Times in 1,555 Posts

    Default Using php within wordpress

    Does anyone know of a decent/bulletproof plug in for wordpress that allows you to use php code within posts/pages etc.. I did a quick search and there seem to be quite a few options, but some haven't been updated for a while so looking for recommendations of stable options.

    Basically something like this but for wordpress: https://www.nonumber.nl/extensions/sourcerer
    onlinegamblingwebsites.com - Formally known as goodbonusguide.

    Gambling Domains: Small clear out of some of the domains we've been hoarding - see the spreadsheet here.

  2. #2
    DanHorvat's Avatar
    DanHorvat is offline Private Member
    Join Date
    November 2008
    Location
    Actual location may vary.
    Posts
    1,993
    Blog Entries
    3
    Thanks
    1,417
    Thanked 1,318 Times in 782 Posts

    Default

    These plugins are so simple that they don't really need to be updated once they're created. They're just simple workarounds. Just use any. I kind of like this one:
    http://www.willmaster.com/software/W...structions.php
    https://wordpress.org/plugins/insert-php/
    Professional bizdev can help you, the affiliate, to negotiate better terms with casinos. PM for details and a free evaluation of what I can do for you. All geos.

  3. #3
    baldidiot is offline Private Member
    Join Date
    January 2010
    Posts
    5,096
    Thanks
    432
    Thanked 2,333 Times in 1,555 Posts

    Default

    Ok cool cheers!
    onlinegamblingwebsites.com - Formally known as goodbonusguide.

    Gambling Domains: Small clear out of some of the domains we've been hoarding - see the spreadsheet here.

  4. The Following User Says Thank You to baldidiot For This Useful Post:

    Miles_FTA (9 September 2015)

  5. #4
    universal4's Avatar
    universal4 is offline Forum Administrator
    Join Date
    July 2003
    Location
    Courage is being scared to death...and saddling up anyway. John Wayne
    Posts
    33,875
    Thanks
    4,510
    Thanked 9,268 Times in 5,958 Posts

    Default

    If the methods others have recommended do not work, there is a way to use a text widget.

    You have to add a few lines of code in the functions file, stop and start the site and from there on any php code you would normally put in a text widget will execute. I found it far easier than some of the php code widgets and plugins I tried.

    Rick
    Universal4

  6. #5
    baldidiot is offline Private Member
    Join Date
    January 2010
    Posts
    5,096
    Thanks
    432
    Thanked 2,333 Times in 1,555 Posts

    Default

    Quote Originally Posted by universal4 View Post
    If the methods others have recommended do not work, there is a way to use a text widget.

    You have to add a few lines of code in the functions file, stop and start the site and from there on any php code you would normally put in a text widget will execute. I found it far easier than some of the php code widgets and plugins I tried.

    Rick
    Universal4
    Ok cool, cheers. Can you insert text widgets into posts though? I want to use it to make geo targetted tables that pull the info from a data file/database.
    onlinegamblingwebsites.com - Formally known as goodbonusguide.

    Gambling Domains: Small clear out of some of the domains we've been hoarding - see the spreadsheet here.

  7. #6
    Renee's Avatar
    Renee is offline Sponsor Affiliate Program
    Join Date
    August 2005
    Posts
    9,072
    Blog Entries
    6
    Thanks
    6,642
    Thanked 3,543 Times in 2,206 Posts

    Default

    You may have already tried these, but there are a few plugins that will allow php to be used within posts and pages.

    hxxps://wordpress.org/plugins/allow-php-in-posts-and-pages/
    hxxps://wordpress.org/plugins/exec-php/
    hxxps://wordpress.org/plugins/php-execution-plugin/

    Some allow you to use the PHP within the visual editor as normal. Some make you use a BBcode type of syntax.

    I've never used these myself, but either way hopefully they should help.

    Cheers
    __________________
    Renee, Affiliate Program Manager
    http://www.RewardsAffiliates.com
    Affiliate Program for CasinoRewards.com
    Best Affiliate Manager - CAP Awards 2008
    Best Casino Affiliate Manager - CAP Awards 2009
    Best Casino Affiliate Manager - iGB Affiliate Awards 2010

  8. #7
    baldidiot is offline Private Member
    Join Date
    January 2010
    Posts
    5,096
    Thanks
    432
    Thanked 2,333 Times in 1,555 Posts

    Default

    Cheers Renee, will try a few out and see which works best.

    From the reading I've done so far there are issues with some of them parsing certain types of code correctly once the wordpress editor gets its mitts on it and mucks things up. Looks like trial and error of the suggested plugins may be the solution!
    onlinegamblingwebsites.com - Formally known as goodbonusguide.

    Gambling Domains: Small clear out of some of the domains we've been hoarding - see the spreadsheet here.

  9. #8
    universal4's Avatar
    universal4 is offline Forum Administrator
    Join Date
    July 2003
    Location
    Courage is being scared to death...and saddling up anyway. John Wayne
    Posts
    33,875
    Thanks
    4,510
    Thanked 9,268 Times in 5,958 Posts

    Default

    I think that you can in fact insert text widgets in posts, but would have to test that out to be sure.

    I have found some of the php execute plugins to be buggy depending on the theme used and I am a firm believer in only using additional plugins when necessary and if a simply adding a few lines to the functions file allows wordpress to do what you want in native mode, that is less calls to the database.

    Using this method, you may have to add the lines again after a wordpress update if it over-writes the functions file.

    Rick
    Universal4

  10. The Following 3 Users Say Thank You to universal4 For This Useful Post:

    -Shay- (10 September 2015), baldidiot (14 September 2015), Renee (13 September 2015)

  11. #9
    TravG's Avatar
    TravG is offline Private Member
    Join Date
    September 2008
    Posts
    2,069
    Thanks
    34
    Thanked 179 Times in 131 Posts

    Default

    I use this one without any real big issues hxxps://wordpress.org/plugins/exec-php/

    You just have to make sure you are in "text mode" or your lines of php disappear or you have to correct them.
    Live Casino USA - the best USA live online casinos. Play USA online slots and other casino games like USA online blackjack. Play See USAlegalcasinos.com to find the best USA online casino. Want to play USA online poker? Find the best poker sites at 4DeucesPoker.com.

  12. The Following User Says Thank You to TravG For This Useful Post:

    baldidiot (14 September 2015)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •