質問

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