crowdfavorite / wp-post-formats

An admin interface and structured post meta for WordPress post formats.
362 stars 78 forks source link

integrate into theme #26

Closed ghost closed 12 years ago

ghost commented 12 years ago

hi how to integrate plugin into theme like : require ( get_template_directory() . '/includes/crowdfavorite-wp-post-formats-5718433/cf-post-formats.php' is it possible?

FutureMedia commented 12 years ago

Same question here. Which is best way to include the plugin's functionality in a theme that will be distributed for free?

pdewouters commented 12 years ago

Create a subfolder in your theme. Put all the files folders from this repo in there. In functions.php, you can filter the plugin base URL: https://gist.github.com/3945797

jondavidjohn commented 12 years ago

http://alexking.org/blog/2012/07/09/include-plugin-in-wordpress-theme

pdewouters commented 12 years ago

thanks @jondavidjohn , I updated the gist accordingly

FutureMedia commented 12 years ago

Sorry, but the suggested code is not working, at least in my case.

FutureMedia commented 12 years ago

Ok, I found what was missing. The filter function for the new address:

function change_cfpf_base_url() { return get_template_directory_uri().'/inc/plugins/wp-post-formats/'; }