I have a question today. I am looking for a solution to make sticky post available on my website. But, i just got it work on homepage with the code below.
I’ve got a custom
WP_Query loop based of meta_value variables:
We all know that ignore_sticky_posts is used to exclude sticky post from your custom query.
In wordpress 3.1 they finally added the option of allowing posts belonging to a custom post type to be marked as “sticky”… what I can’t figure out though is how to enable this so the admin menu option shows up.
pre_get_posts to adjust the number of posts displayed on my homepage.
I would like 7 posts showing on my homepage. I would like to be able to manually choose those posts by stickying them.
I have a baseball related website with multiple authors. I use the “Stick this post to the front page” to denote an “Editor’s Pick” on an article. I would like to add a link/button to allow editor to do this from the front end. The method can either be in the article itself or in the Admin Bar. I do not really have a preference.
I’ve got a custom query on my homepage showing all posts in a certain category. I need this query to respect sticky posts, but it seems from my research that category queries ignore stickyness. My question is two (and a half) fold: