How do I filter the view based on the username and not based on the userID?

By: Fatima Bernette Diones | Asked: 10/22/2024
ForumsCategory: General questionsHow do I filter the view based on the username and not based on the userID?
Fatima Bernette Diones asked 5 days ago

I am trying to create a view to display the profile of the specific user, so the profile link would be shareable. However, the only option for me is the filtering of user_ID field.

With this, I need to append the user_id of the user

example: /user-profile/?user_id=11

How do I fix this to display the first and last name instead of user_ID?

1 Answers
Victor Font answered 5 days ago
You can pass any parameters you want through a query string. You would us functions to convert the user name to a user id so you can filter the view. Formidable stores user ids in the database and has functions to display them as names.
Fatima Bernette Diones replied 10 hours ago

Thank you Victor, I am really new to this, could you let me know how can I do it?

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right