I have a dynamic page setup using elementor on wordpress. It shows up the data of a logged in user including their name, profile photo and other custom fields the user has. All is working well.
I was thinking if it's possible to change this content by passing the user id of the user via the URL.
So let's say the page url is. mysite.com/profile and if I want to show user data of user with ID "56", is it possible for me to pull their data by passing user id via URL? Like.. mysite.com/profile/?userid=56 ? Can this be done on wordpress?
Thanks for your time in advance.
Related
I want to view user id and page views in one report as the below:
client id with page views
I have created custiome user id and in the report I can't get pages users viewed. How can I do that?
This is not possible by deafult the only way you can archive this is creating a Custom Dimention and storing the UserID there.
Hope it helps!
I'm working with a job vacancies site with drupal. There's a content type named CV and there are specific profile pages for specific users(I use Profile2 module).
What I want to do is when admin add a new CV for a specific user, that cv is posted on that user's profile page.
I can create cv content but can't link to that user's profile page.
I've find possible answers on google and can't find the right one.
Using the Views module, you can create a page view that displays nodes of type CV and uses the User ID (from logged in user or URL) as a contextual field, then set the path to something like "user/%/CV".
I have used profile2 module and have created a separate profile type.
The case is that, i have a profile edit form for the profile type named restaurant. Once the user logged in( with the role restaurant), he will be redirected to the profile edit page, where the user have to fill all the required fields of the profile form. If the user clicks any other links on the page he must be redirected to the same form with a msg (U have to complete the form ) till the user fill all the fields in the profile edit form.
i have done with redirecting the user to the profile edit form. Now i have to do the other part( links redirect with set msg). Is there any module i can use to get the above scenario or i have to do it by custom code. Please help me out if i have to do this by custom code..
Thanks in advance....
To make it working on all the pages and links, you should write some profile field value checking code in hook_page_alter or hook_page_build. If the values are empty, you should redirect the user.
i would like to autoasign every user that comments a custom webpage ex: http://example.com and make every username clickable.
I want it to be automatically, so they cannot complete the website field
I want to create pages in WordPress, which should show to a specific user only not for specific role.
if a page is created for a specific user like "john". it should be viewed by only john, no other users could not see that page.
My Questions are:
How to create a page for a specific user? (from admin).
Note: while creating page we should assign that page to specific user like "john".
Is there any plugins for this?
Is there any way to do this.
-Srikanth.
I know that it is a bit late but still want to answer in case you need. Try to use http://wordpress.org/extend/plugins/user-specific-content/ plugin. You can customize your pages.
Just an idea:
Why not make a page template for that page? get current user id in the template then show the details depends on the user id? You can check is_user_logged_in() and pull all contents under the if statement and under the else statement you can redirect the user to the login page or just show the message to logged in.
Let me know if everything is clear. Thanks!
This can be done with ease using nav menu plugin and roles creator plugin.you can create roles with names of your clients and show menu items of user pages to specific roles/person