Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author EjiOsigwe

    (@ejiosigwe)

    Hey,

    Based on the location you’ve noted, the following should work:

    define( ‘DBTF_PATH’, TEMPLATEPATH . ‘/inc/devbuddy-twitter-feed/’ );
    define( ‘DBTF_URL’, get_template_directory_uri() . ‘/inc/devbuddy-twitter-feed/’ );

    TEMPLATEPATH gets the path to the theme currently active in your WP installation, while get_template_directory_uri() gets the URL. The constant and function, respectively, are both native to WordPress.

    And for completeness, your functions.php file should include the main plugin file, not merely the directory that holds it:

    include TEMPLATEPATH.'/inc/devbuddy-twitter-feed/devbuddy-twitter-feed.php';

    Let me know if this works out for you.

    Thanks

    Plugin Author EjiOsigwe

    (@ejiosigwe)

    Thread marked as resolved as there’s been no response for some weeks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘example of how to amend `DBTF_PATH` and `DBTF_URL`’ is closed to new replies.