This tutorial is also available in video form: Enable Users To Add Content From The Front End Without Logging Into WordPress – Frontend Admin Tutorial Video
Overview
In this guide, we’ll walk you through the process of allowing your authors to submit posts directly from the front end of your WordPress site using the Frontend Admin plugin. This feature eliminates the need for authors to log into the WordPress dashboard, streamlining content creation.
Prerequisites
- WordPress installed
- Frontend Admin plugin installed and activated
- User roles set up (e.g., Author)
Steps to Enable Frontend Post Submission
1. Block Access to the WordPress Dashboard for Authors
To prevent authors from accessing the WordPress dashboard, follow these steps:
- Log in as an administrator.
- Hover over Frontend Admin in the admin menu and click on Settings.
- Navigate to the Dashboard section.
- Under Hide by Role, select the Author role (you can also hide Subscribers and Contributors).
- Set the redirection URL (default is the homepage).
- Click Save Settings.
Result
Authors will no longer see the WordPress dashboard and will be redirected to the homepage.
2. Create a New Post Form
Now, we will create a frontend form that allows authors to add new posts.
- Still in the admin panel, hover over Frontend Admin and select Forms.
- Click Add New Form.
- Name the form New Post Form.
- Select New Post Form as the form type and click Publish.
- The form will include fields for post title, post content, post excerpt, featured image, post status, and a submit button.
3. Configure Form Permissions
By default, only administrators can access the form. To allow authors to see the form:
- Scroll down to Form Submissions.
- Under the Permissions tab, uncheck Submissions List.
- Under Select by Role, add the Author role.
- Click Save Changes.
4. Set Up Modal Window for the Form
To create a user-friendly popup for the form:
- Go to the Modal Window tab.
- Enable Show on Modal and set the button text to Add New Post.
- Click Save Changes.
5. Add the Form to the Homepage
Now, we will add the form to the homepage:
- Copy the shortcode provided for the New Post Form.
- Navigate to Pages and edit the Homepage.
- Add a new block (e.g., Paragraph) and paste the shortcode.
- Click Update.
6. Testing the Frontend Form
- Visit the homepage as an author.
- You should see the Add New Post button.
- Click the button to open the modal popup.
- Fill out the form fields (title, content, excerpt, and featured image).
- Submit the form.
Result
After submission, the page will reload, and the new post will appear, demonstrating that authors can now add content without logging into the WordPress dashboard.
Conclusion
By following these steps, you have successfully enabled frontend post submissions for authors on your WordPress site using the Frontend Admin plugin. This not only simplifies the process for users but also enhances the overall content management experience.
For further assistance or feature requests, reach out to us at Support@DynamiApps.com