سؤال

I have many sticky posts in my database. Is there any SQL function which I could use from phpMyAdmin to change (remove) sticky status of posts, if post is sticky to change it to not sicky.

هل كانت مفيدة؟

المحلول

The sticky posts info is stored in the sticky_posts option in the options table.

It's stored as serialized array e.g. a:2:{i:0;i:1272;i:1;i:1995;}

You can modify it via the Options API but there's a way to bulk edit posts in the backend:

1. Select the Sticky view:

1

2. Select all sticky posts and apply the bulk Edit action:

2

3. Make them non-sticky:

3

and press update.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى wordpress.stackexchange
scroll top