문제

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