• I am trying to use the Coinbase API to display bitcoin exchange rates on my wordpress website.
    I downloaded and installed the coinbase-php library in my wp-include folder.

    To use the functions from the library, I need to include it between the [insert_php] tags on my page. However, I cannot figure out the right path to successfully include the library. I tried,
    require_once(wp-include/coinbase-php/lib/Coinbase.php'); but that doesn’t work.

    Any help would be greatly appreciated! Thanks!

    https://ww.wp.xz.cn/plugins/insert-php/

Viewing 1 replies (of 1 total)
  • Hi joinuniversedev,

    The full path may need to be specified, something like this:

    require_once($_SERVER['DOCUMENT_ROOT'].'/WPdirectory/wp-includes/coinbase-php/lib/Coinbase.php');

    Probably it was just a typo when you asked the question, but “wp-include” should be “wp-includes”

    Will

Viewing 1 replies (of 1 total)

The topic ‘Include PHP Library?’ is closed to new replies.