Using custom fields to enable CPT sticky posts
-
My original question was posted on http://wordpress.stackexchange.com/q/131078/41479
My Goal: I am using the custom post type ui pluging as well as Advanced Custom Fields to display a list of custom post type employee profiles. The content authors want the capability to make one employee profile “sticky”. While there are some plugins available, including seamless sticky custom post types and sticky custom post types, it appears that sticky-posts are a feature only available for use on the home pages, and I don’t wish to make my employee profile page, my homepage or front page.
Resources:
- This trac ticket discusses a similar feature request, and provides helpful information
- This post and this post suggest that one could use custom fields to solve a similar problem.
- Here, on line 3006, the class query seems to state that sticky_posts only works when the condition is_home evaluates to true.
The Question: Is it true that in my case, I could somehow use Custom Fields to allow me to make my employee profile page, support the sticky posts feature? If so, would you please provide additional information that might get me started.
Otherwise, if my problem can’t be solved as such, what other solutions might I consider? For example, could’nt I achieve a similar affect with JavaScript DOM manipulation?
The topic ‘Using custom fields to enable CPT sticky posts’ is closed to new replies.