wpsharks / wp-kb-articles

KB Articles for WordPress; adds a new Custom Post Type.
http://wpkbarticles.com/
2 stars 1 forks source link

Automatically convert issue link references. #64

Closed jaswrks closed 9 years ago

jaswrks commented 9 years ago

It would be nice if WPKBA could automatically convert links in an article that reference another issue in the same repo. In other words, converting links in a way that would reference the KB Article Post in the site once it is moved over into WordPress.

raamdev commented 9 years ago

+1! That would be awesome. Definitely a little tricky to do, but would certainly make cross-referencing KB Articles within the same repo (always a good idea!) a heck of a lot less work.

jaswrks commented 9 years ago

This has been implemented. Here is a diagram to help explain how this works. This functionality is enabled automatically when you start using the github-issue: key in your YAML configuration.

issue-references

raamdev commented 9 years ago

@jaswsinc Woohoo! Awesome.

I wonder: Would it make sense to look into adding integration between this feature and WP Redirects, i.e., if we add an external API to WP Redirects that allows for creating / searching for Redirects, then we could have WP KB Articles replace Issue URLs with an associated WP Redirect (that would redirect to the live KB Article).

jaswrks commented 9 years ago

Sounds like a good idea to me. If WP Redirects could also be integrated with Bitly to achieve a custom domain being used together with the redirection, that would really add a lot of value to this combo; i.e., we could use that to achieve http://wpkba.com/ee89aJk style redirects if configured for it.

jaswrks commented 9 years ago

integrated with Bitly to achieve

Scratch that. This would prevent WP Redirects from being able to keep stats, etc.

raamdev commented 9 years ago

This would prevent WP Redirects from being able to keep stats, etc.

True, but it would also allow for collecting a lot more stats, since Bitly tracks things like how many clicks from Twitter, Facebook, Google+, etc. I've opened a feature request to add Bitly support to WP Redirects; if you have further thoughts on this, please share them over there: https://github.com/websharks/wp-redirects/issues/30