wpsharks / wp-kb-articles

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

Feature Request: Featured KB Articles #74

Open raamdev opened 9 years ago

raamdev commented 9 years ago

It would be extremely useful to be able to pin a specific KB Article (or multiple KB Articles) to the top of the list (in the default view of all articles when first visiting the KB and in the Category view).

This would be useful when, for example, we have a migration tutorial that we want people to easily find, or when there's a bug discovered in the software and we write a KB Article to address a frequently asked question and we know people are going to be coming there to see if there's an answer--we'd want such a thing to be pinned to the top of the list, instead of being buried somewhere in the KB.

A bonus feature to this would be the ability to assign a numerical priority when pinning a KB article; that way if we have several KB Articles that we're pinning to the top, we can have control over which order they appear.


It might be possible to use existing WordPress functionality here by adding support to the Custom Post Type, although I'm not sure how the priority feature, if that's added, would integrate with this.

2015-02-27_17-20-30


What Actions Need To Occur Here?

jaswrks commented 9 years ago

:+1: Love the idea.

jaswrks commented 9 years ago

Referencing: http://codex.wordpress.org/Sticky_Posts

jaswrks commented 9 years ago

Referencing this TRAC ticket which was discussed extensively and then closed. https://core.trac.wordpress.org/ticket/12702

jaswrks commented 9 years ago

It might be possible to use existing WordPress functionality here by adding support to the Custom Post Type, although I'm not sure how the priority feature, if that's added, would integrate with this.

No support for stickies in custom post types at the moment.

raamdev commented 9 years ago

Ah, interesting. I had not seen that Trac ticket. I just read through all the comments and I see this has been (after 4 years) shuffled off to maybelater (as recently as 2 months ago). However, after reading through all the comments, I tend to agree with leaving sticky support off CPTs for this reason:

simply making CPTs sticky is pretty lousy UX out of the box, because "sticky" is ambiguous between (a) stuck to the top of CPT archives, (b) stuck to the top of the home page when the CPT is included in the home page query, (c) stuck to the top of the home page no matter what. I'd wager that a fair number of users would expect any of these to be the behavior of the checkbox, which suggests that a checkbox is not a great UI for it.

If someone clicked a Stick this post to the front page checkbox, what would that mean? Stick it to the front page of the blog? Stick it to the front page of the site? Stick it to the front page of the KB Articles list? Which KB Articles list? All of them? Only the lists for the category that contains the KB Article?


In other words, I now feel that the existing sticky post functionality is the wrong thing to use here.

Instead, we should call this option Featured KB Article and I feel it should only get stuck to the top of the following lists:

The following should remain unaffected by this Featured option (i.e., the Featured KB Articles should not be stuck to the top on these):

This feature can simply be implemented as a Custom Field attached to the KB Article with a Meta Box to allow a site owner to enable/disable this:

2015-03-16_18-10-06

As a secondary feature, it would be nice to be able to sort KB Articles by their Featured status from the KB Articles list, so that they're easy to find.

2015-03-16_18-13-39

This is a secondary feature because with featured KB Articles stuck to the top of the main and category lists anyway, they will be easy for a site owner to find and "un-feature" by simply visiting the front-end while logged in as an Admin, clicking on the KB Article, and then editing it. It would just be nice to be able to easily find Featured articles from directly inside the WordPress Dashboard.

jaswrks commented 9 years ago

All great points and I agree also with...

simply making CPTs sticky is pretty lousy UX out of the box

I have never found a way to use stickies in anything other than bbPress when we ran it at www.s2member.com. I totally agree with the suggested approach in your last comment. Thank you.

raamdev commented 9 years ago

I have never found a way to use stickies in anything other than bbPress

I never found a use for them either, until I used it here and it was exactly what I needed (the first post is a sticky): http://independentpublisher.me

jaswrks commented 9 years ago

@raamdev writes...

http://independentpublisher.me

Nice. That's a great design there. Love that theme.

jaswrks commented 9 years ago

Adding a list of actions (↑ above) that need to occur.

jaswrks commented 9 years ago

Referencing this posted today about WP v4.2. It might have an impact on the way this is implemented; i.e., how much control we might have. https://make.wordpress.org/core/2015/03/30/query-improvements-in-wp-4-2-orderby-and-meta_query/