question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pinned post support

See original GitHub issue

Content editors should be able to pin a blog post using the WordPress editor

In WordPress this feature is called “Sticky”

I’ve gone ahead and made the post with slug i-love-you-buddy sticky. If you look in the JSON response, the post that’s sticky has an attribute of sticky: true.

http://54.243.240.9/wp-json/wp/v2/posts

You can make multiple posts sticky.

We probably will want to find the posts that are sticky within the posts array, pull them out, and append them to the top of the posts list when rendering them to the page

We should additionally add some kind of icon to identify a sticky post. Maybe a pin icon? I’m open to suggestions. The project includes react-icons and currently makes use of Font Awesome. We should use an icon that matches that style.

Questions

  • Should the “sticky” posts show twice? Once at the top and once in it’s natural location? How does Twitter handle pinned Tweets? What does a typical WP site do?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
colbyfayockcommented, Oct 16, 2020

awesome 💪 thanks @GuilleAngulo

0reactions
GuilleAngulocommented, Oct 19, 2020

Great! I will pay attention

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pin items to the top of your Facebook Page
If you have Facebook access to a Page, you can pin or unpin posts to the top of your Page. To pin a...
Read more >
Pinned post - Social Media Marketing & Management ...
A pinned post is a social media post saved to the top of your page or profile on Facebook or Twitter. Pinning a...
Read more >
Pinned posts - Tumblr Help
Note that you can only pin one post at a time, so pinning a new post will replace whatever is currently pinned. Return...
Read more >
How to Pin a Post on Facebook - ShareThis
The first thing to know about pinning Facebook posts is that you can't do it on your personal timeline – pinning is only...
Read more >
When to Use Pinned Posts - Article - AIMG
Having problems with a critical service? Maybe your site is down or a key application is offline? The first thing anyone does is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found