The default author permalink is:
http://domain.com/author/{username}
How can I do something like this ?
http://domain.com/author/{username}/songs
http://domain.com/author/{username}/books
http://domain.com/author/{username}/movies
If someone visit songs permalink, wp should display songs of the respective author. If someone visit books permalink, wp should display books of the respective author, and so on! Any idea about how can I do this !?
Later edit
mySQL table: favs
- id
- post_id
- author_id
- fav_type (song, book, movie)
Assuming you are using custom post types for songs, books etc:
Try the query strings above “index.php?post_type=songs&author=username” and make sure you get the correct post listing you are after on your site (you might need to disable permalinks to test them).
Then you can add the rules in to the function (taking note of the paged rule for each post type).
I am doing exactly this on a live site now, so it is possible – just requires a bit of patience to get the rules correct.
If you are not using custom post types you can change the query strings above from post_type=xxx to taxonomy=tagname or whatever you need to get the listing you want.