How to create a user input form with WordPress? - wordpress

I'm completely new to the whole WordPress scene so I kind of don't know the "WordPress way" of doing the desired task:
Create a form where a user would fill in some details (such as name, surname, upload a video or post a youtube iframe link)
Submit it, once it's done - an admin must verify that everything has been filled out correctly and after that the video can be seen on the website.
Should I write a plugin of some sort that would do that or how does it happen?
Thank you.

The Gravity Forms plugin allows you to do exactly what you're looking to do. With it, you can set up a form that creates a post and sets it to be 'Pending Review' in WordPress. This tutorial contains everything you need to know about what you'll need to do.
If you want to create a Custom Post Type (ie. 'User Page') to better separate user submissions, you'll need to employ this special add-on (as mentioned in the tutorial above).

Related

Within an admin menu point, set number of posts via input field

I'm quite new to Wordpress and currently working on a custom plugin.
I know how to create a new admin menu point via plugin, now I'm trying to figure out how to add a functionality, when entering the site the user shall be able to specify the number of shown posts via input field - the amount of posts shall be saved in a way that you receive a shortcode for the amount.
Hope that was clear. Thanks in advance!
I know there are a lot of Wordpress php codesnippets and shortcuts to use, but I'm uncertain which the ones are I need.

Wordpress - Proper way to manage custom users

I have a site in Wordpress.
The functionality I need is such that, I can create 'users' of the site. These users have no purpose editing the Wordpress site in any way, and don't need to know we're even using the wordpress platform.
These users need to be able to edit their contact info and upload/view/swap out their own resume, using a page that I will build for them (not the wp-admin dashboard in any way). This resume will be PDFs and WordDocs.
At first I thought I'd just use the built in Wordpress Users and Roles that Wordpress offers. However, I'm not sure how I would attach resumes to that user, and let that user edit their own resume. I know I can use the 'user_contactmethods' hook to attach basic fields. However, I'd be trying to attach a link to a file that Wordpress hosts, and would need to be able to replace that file on a whim, in php. Also, my goal is to prevent them from ever using the Wordpress dashboard or editing tools.
Next, I thought I could create a custom post type for a 'SiteUser'. That would make it easy to manage a PDF/WordDoc attached to that post type. Also, that user wouldn't have any way to access the Wordpress stuff. Before I do that though, I wanted to ask on here if this really is the right way to do this.
This solution feels hacky.
Can I get some proposed solutions to this problem that could be perceived as 'the proper way'?
Thanks
Here is a rough idea of what you are looking to do.
Step 1
Create the user role for these new users
Step 2
Set the permission for them and disable backend access and redirect all access of those roles to a custom page /account/
Step 3
Use Advance custom fields plugin to create some custom fields on the user meta. (text, file, image)
Step 4
Apply some login logic/form and Link to a /account/edit-info/ custom page with the acf frontend form. https://www.advancedcustomfields.com/resources/create-a-front-end-form/
Step 5
Use these info to display somewhere on the /account/ page
Optional
Using gravity forms instead to manage user data entry gives better control but requires more coding, and a better user experience.
Front-end Admin Steps
Repeat Step 1-2
Loop site user and list them and their custom field files Have a button that opens a Gravity form with the user ID text field pre-populated and hidden, and have a file uploader element.
Add backend hooks after validation directly replace the user meta
containing the file path or ID (however you choice to store it in
Advance custom fields)

How to use custom fields globally in Wordpress?

I'm trying to use the value of one custom field on multiple pages and posts. I'm a newbie to PHP and custom fields so what I'm trying to accomplish could possible be done using a different method.
I have a WPMU setup with all new sites created from a default blog that includes multiple custom post type templates. When users create a new site they are redirected to their site admin dashboard.
Here comes my challenge, I want users to be able to enter information into form fields contained in metabox(es) on their admin dashboard (not post editor) that will be used on the various custom post type templates. For example, a user will need to enter their company name, address, logo, etc.
Depending on the temple, the information entered into the form fields will be used on the frontend of the site. For example, the company logo will be display where the custom field or shortcode is placed on the post template.
I'm having issues using custom fields for this because each custom field is specific to each post. In addition, I'm having issues rendering a form on the admin dashboard for this.
I'm also thinking that custom fields may not be the best way to accomplish my objective because they are usually post specific. I'm really asking for a variable that will be used globally and is static unless the user updates the form.
I'd appreciate any assistance on this.
The options API is what you will need for this:
http://codex.wordpress.org/Options_API
There's also some plugins and frameworks you can use to help such as:
https://wordpress.org/plugins/options-framework/
https://wordpress.org/plugins/redux-framework/

Any Plugin or suggested Design for user to perform an Custom action on Wordpress content

I need to make a Wordpress website having lots of recipes.User will be allowed to read and click on "Cooked" button associated with that particular Article. I would like to store who all user have Cooked that recipe and show it when I am showing the Recipe.
Is there any plugin available which can store User Activities on content(like we have comments plugin) or else what should be the best way to do this?
Take a look at WP Favorite Posts plugin which allows visitors to add favorite posts.
and set the label as "Cooked" instead of "add to favorites" , this will be the easiest way to do it but if you are up for some custom coding then it's simply a matter of saving the recipe post id in the user meta using update_user_meta

One page wordpress template with subscription option

I'm new to wordpress. I have to create a one page template for my site and show a subscribe textbox on it with my own custom style. Later, I will use it to send monthly newsletters. What can be the simplest way to do that? I saw into some plugins like newsletter, subscribe2, but they are complicated and I don't know how to integrate them with my text box. They just provide some sort of widget to show on sidebar. Any tutorial or simple plugin? Please help!
You basically have three options:
a. Use a web-hosted syndication service as per the below. (Easiest to configure)
b. Install some sort of newsletter sending plugin for WordPress. (More control, but more configuration)
c. Use a web-hosted newsletter service like Constant Contact (Expensive and Ugh.).
Try using Feedburner with email subscriptions -- see: http://howtotechtips.blogspot.com/2008/05/create-feedburner-email-subscription.html. You sign up, supply your RSS feed's address, then copy-paste the resulting code where-ever in your template you like. Then, whenever you write a new post, your subscribers are sent an email.
Subscribe2 complicated?
You can do auto-download/install from the administration area, you literally only have to config a few options.
http://codex.wordpress.org/Managing_Plugins#Installing_Plugins
Maybe it's just me, but the screenshots certainly make the plugin appear to be very straight-forward.
http://wordpress.org/extend/plugins/subscribe2/screenshots/
If you are not heavy with subscription list. Then a good option can be using the MailChimp email subscription with its free option.
You can just install the plugin and place a function called mailchimpSF_signup_form() into your template's right place. And beautify it with your own CSS.
Or in Post or pages' HTML using the shortcode [mailchimpsf_form]
They also have widget to be added dynamically. How to use it?
Create a free account at MailChimp.
Create a list there.
Create an API key there
Go to your MailChimp options page http://yourwordpress.tld/wp-admin/options-general.php?page=mailchimpSF_options
Insert the API key there.
Select the list you want this subscription to be linked to.
There you are!

Resources