Custom Post Types and Stickies
-
Love this plugin, but I have a particular challenge with getting one grid to work right.
I have a Custom Post Type setup, and have assigned 3 of those CPTs as “sticky” posts (using a plugin that puts the “stick this post to the front page” option on CPTs).
In my grid, which I have setup to display three tiles in one row, I want to show these three sticky custom posts.
I can get the grid to show the custom posts without problem, but it’s ignoring the “sticky” designation, and just showing the three most recent posts.
I’ve tried incorporating some of the needed query arguments in the shortcode, like this:
posts_query=”post_type=my_custom_post_type&post__in=get_option(‘sticky_posts’)&ignore_sticky_posts=1&posts_per_page=3″
BUT that isn’t working right….I know I can add the query to my functions.php file to return the needed posts, but then how would I use the query results in the shortcode?
Any help will be most appreciated!
- The topic ‘Custom Post Types and Stickies’ is closed to new replies.