Using a 3rd party free theme that is called IsleMag.
I am wanting to develop it in order to allow users to customise it to see football news that they want to see.
In terms of screenshots, I'm starting the news block from scratch... I'm printing the screenshot below as evidence that I've copied the code you requested into my functions.php file...
I am confused though where to put this line of code: "$data = get_the_author_meta( 'user_categories', $user->ID );"
**Please help! :) **
I've tried looking up this solution but haven't got anywhere, even with this guide (can't seem to locate what to put on the index.php file)...
Its for a football news site that I've designed and am running and looking to allow users (football fans) to customise their own homepage to show news articles that are specifically of their chosen post category(ies) (which are teams) - to display news articles (posts) from that category(ies) only.
The web addy is: www.entirelyfootball.co.uk -- please help ASAP!! :)
What I'm basically trying to do is:
1) Add fields in the form of radio (check) boxes in "Your Profile" (individual user profiles) with options like: (1) West Ham United (2) Norwich City 3) Arsenal FC - and allow more than one to be ticked/selected - all of these will be post categories
2) Depending on which fields/options the user has checked (ticked) in their profile, I want to grab this/these category's ID and create a block of news articles on my index.php file that will display the post title, post thumbnail post excerpt (limited to a certain number of characters - say 25) and a link to the individual post... But this must be grabbed by that user's ID and must remember to load the same correct layout the next time the user logs back in.
3) If no fields have been selected, I need an opening if and else(?) statement so that I can fill a default homepage block of news articles that are grabbed from all categories - where none has been set/ticked - so the same layout: post title, post thumbnail, post excerpt (limited to a certain number of characters - say 25) and a link to the individual post.
Can this be done with a PHP if and else statement????
...similar to this (couldn't find the solution in the form of code to put in my index.php file) (removed due to not allowing me to post more than 2 links)