CarlosRios / sortable-posts

Sortable Posts For WordPress adds sorting functionality to any post type's edit screen.
GNU General Public License v2.0
4 stars 4 forks source link

When loading from plugin the CSS / JS links are 404 #8

Open bjornbjorn opened 7 years ago

bjornbjorn commented 7 years ago

When loading sortable-posts using composer / wpackagist and placing it under /plugins/myplugin/vendor/sortable-posts the CSS and JS of the plugin will not be loaded since it is referencing /wp-content/plugins/sortable-posts/assets/css/sortable-posts.css for instance.

Your docs describe how to use this plugin from a plugin, but it seems updating the CSS/JS references is the missing piece.

CarlosRios commented 7 years ago

Thanks for pointing that out Bjorn. I hadn't actually tried it as an included package for quite some time, even though initially thats what it was meant to be. In its current form, using it within a plugin or theme is only capable by installing it as a plugin, and then hiding it by returning false on the "remove_sortable_posts_settings" filter.

I'm sure it can be fixed fairly quickly but right now I'm not able to. You could always submit a PR and I'll more than likely merge it :)

bjornbjorn commented 7 years ago

That's fine & understandable Carlos, I just wanted to leave it here in case anyone else stumbles across the same issue. I actually ended up not using the plugin since I didn't need sort for this project after all. If I need this plugin on another project I'll be sure to give a fixing this issue a go if the ticket is still open :-)