• Hi All

    Tricky question – posted here as it seems to be the kind of thing that there might be a plugin/hack for. In the absence of any way of allowing a user to select multiple categories and tags to create a search result based on the combination (there’s a couple of things knocking around for this – approximately – but none seem to work too well), I’d like to be able to offer the users of my site the option to ‘flag’ any post they see, so the flagged posts could be viewed together in a single page of results – rather like a collection of links to favourite posts.

    If the list of flagged posts could then be stored for a registered user, that would be ideal but, if not, it would still be useful for what I have in mind even if the list created in a particular session was not stored, and could only be kept temporarily.

    Not sure I’ve done a great job of explaining myself there, but if any one can make sense of the above and can suggest a plugin/hack that might fit the bill or be a step in the right direction, I’d really appreciate it!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi

    I recently implemented something along this line – the gist being a series of selected posts, to be displayed in some order. In my case they had to be displayed in the order specified by the user, but in your case they could be sorted by date or whatever.

    I collected the user choices as a string of comma delimited post ID #’s which I converted to an array. With your use you could collect it as an array, as they check and uncheck boxes. I then processed the array in a foreach loop, doing a get_post() on each element, displaying the posts one by one in that sequence. If you want to sort by descending date, you’d sort the array in that order before processing it.

    There is a table called wp_usermeta that is like custom fields for users – there is not, to my knowledge, a screen interface to manage it, but there are functions to write and retrieve custom user fields, so you could store a logged in user’s choices in one of those fields and retrieve those values when they log in again.

    Thread Starter zerofeeorg

    (@zerofeeorg)

    Thanks stvwlf – I really appreciate the feedback

    I’m primarily a designer, with a very basic knowledge of PHP – without sight of this kind of thing, I’m pretty lost, but it’s very useful to know anyway.

    Thanks for your help – anyone else able to expand on this please?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Collating posts into single view by category and/or tag’ is closed to new replies.