Custom function to display content in user page
-
Hi, I’m working on a project where I want to display unique posts based on a users detailed info. Using the form builder I created a set of questions I would like the user to answer when visiting their profile page. I have a unique meta key for each question and would like to perform some calculations based on the users answers.
I’m assuming I can use something like
<?php $all_meta_for_user = get_user_meta( currentID ); print_r( $all_meta_for_user ); ?>
To get all of the metadata including the answers to the questions. If this is the case, can I then write a custom function in um-user.php or um-profile.php that will process the data and display the posts unique to each user?
- The topic ‘Custom function to display content in user page’ is closed to new replies.