1

I am attempting to write a plugin for wordpress that partitions posts into different blocks, and then allows the user to access one block at a time. Right now I have it so I can get all the posts belonging to a block, set their block, etc. However, I need to keep track of the ID of the block the user currently has chosen. My question is, how do I set a variable specific to a user session, and then how do I access it?

If more clarification is needed, ask and I will edit to explain.

4

2 に答える 2

0

セッション :-) またはワードプレス関数add_user_metaを使用できます

于 2012-05-23T05:31:07.557 に答える
0

最終的にphpクッキーを使用しました。ここに私のような初心者向けのリンクがあります: http://www.w3schools.com/php/php_cookies.asp

于 2012-06-01T20:55:53.560 に答える