WordPress.org

Ready to get started?Download WordPress

Forums

Some kind of session management? (3 posts)

  1. jaro_aut
    Member
    Posted 7 years ago #

    I'm writing on a wp-photoblog plugin which allows to additionally post images and uses the post_type field to mark this posts as photoblog entries.

    To my question: I'd like to programm a filter which only shows a certain kind of post_type posts in the wordpress loop once activated (Buttons on page: Only show images, Only show worpress posts, show both). I think i need some kind of session management to achieve this?

    Anyone an idea what wordpress mechanism i could use? The filter should stay activated no matter what the user does - Until he selects another option and i want to use as much wordpress code as possible.

  2. Medizinische Abkuerzungen
    Member
    Posted 7 years ago #

    I don't know a plugin.

    Do you know php?

    There are tqo ways: cookies and php-sessions.

  3. jaro_aut
    Member
    Posted 7 years ago #

    > Do you know php?
    > There are tqo ways: cookies and php-sessions.

    Surely i know how to start and maintain a session - But wordpress doesn't use it - So i don't want to use it.

    I thought of something like custom url's like http://www.mydomain.com/images/page/x. This is a mechanism both search engine and bookmarkfriendly.

    I'll read some code to see how others have done this.

    greets,

    Johannes

Topic Closed

This topic has been closed to new replies.

About this Topic