Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: ‘Favourite’ content


Alex
Participant

@hempsworth

Yeah I definitely think this should start as a BP component. A route I was looking at was taking the URL of that item, because every item has a unique URL; comments, blog posts, forum posts etc.

What I was thinking was having a link next to each one which saves that URL (using AJAX) into a table as a new row: user_1_favourites.

Each item would have three pieces of data,

* the item name

* the item URL

* what type it is (forum topic, blog post etc)

Then the user could visit example.com/user/favourites and see/manage their favourites.

But… I’m a PHP newbie and haven’t even written a WP plugin before… help? lol

Cheers,

Alex

Skip to toolbar