Aventyret / solarplexus

Wordpress Block that is useful when building news sites
GNU General Public License v2.0
6 stars 1 forks source link

Handpicked blocks can receive sticky posts that are not hand picked #87

Closed perarnborg closed 1 year ago

perarnborg commented 1 year ago

We should probably set ignore_sticky_posts for hand picked blocks:

$args['ignore_sticky_posts'] = true;

See https://wordpress.stackexchange.com/a/396391

perarnborg commented 1 year ago

We should probably not do as above for dynamic blocks since this causes the sticky behaviour to stop working. But we need to remove posts from the end of the posts array if there are sticky posts added to the start of the array (for dynamic blocks).