-
Author
-
January 7, 2016 at 08:20 #96838AlamSyedParticipant
I am really liking this wordpress theme, I should say this is my very first theme.
I am trying to do something very simple. I am trying to figure it out some setting I need for my custom page on my website, hopefully one of you seasoned professionals can shed some light on this work.
1. I create a html form for entering information from a user about a project. I add this page to menu-my accounts, how do I make it appear only for logged in registered users ? Some attribute tag setting I guess ?
2. There is a processMyForm.php script file that does the processing of that form with post type, but I want to know who the logged in user is ? I mean who has entered in this form, and how do I find what is the username and password of the user in my php script file ?
Can you guys/ gals guide me where/ what to look to achieve the above features, please ?
I am still dabbling with web technologies, so if possible be more descriptive in your answer.
January 7, 2016 at 15:49 #96900sharmstrModerator1 – You need a plugin that will conditionally show a menu item. There a few out there. Here is one of them https://wordpress.org/plugins/nav-menu-roles/
2 – There are several ways to find the user.
https://codex.wordpress.org/Function_Reference/get_current_user_id
https://codex.wordpress.org/Function_Reference/get_currentuserinfoHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
January 7, 2016 at 19:07 #97051AlamSyedParticipantAbout the nav menu roles plugin, is there a way to do it with Kleo theme code, as the nav menu options Login/Logout links have this functionality in-built ?
Another question, are these solutions designed for wordpress users ? I am only looking for subscribers (my website’s users) level settings. How can one distinguish ?
January 7, 2016 at 19:14 #97056sharmstrModeratorNo. The approved way is to use a plugin.
I dont understand your question. All users are wordpress users. Plugins like Woocommerce, Buddypress, bbpress and Paid Membership Pro all use the built in wordpress user accounts.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
January 7, 2016 at 19:25 #97064AlamSyedParticipantOk. Thanks.
If all users are wordpress users then that answers my question. Sorry, I don’t know much about this, that’s why there was confusion.
Thanks for the prompt reply shamstr.
January 7, 2016 at 19:31 #97073sharmstrModeratorNo problem.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
-
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.