Frontend Publishing Pro

Starter guide


In this section you will learn how to install the plugin and create a simple frontend publishing form with it. Just follow these steps:

1. Go to Plugins > Add New in your WordPress site's admin panel and click on the Upload link at the top of the screen.

2. Upload the plugin's zip file. Once the file has been uploaded, activate the plugin.

3. Access the plugin control panel located at Frontend Publishing Pro > Forms.

4. To create a new form just enter a suitable name, description and post type and click 'Create Form'. After a few seconds the newly created form should show up on the right side of the screen.

Control Panel

5. The form is now ready for use and can be integrated into any post or page. Just create a new page and add [wpfepp_submission_form form="X"] in the content area. Replace X with the form ID. The form should look something like this:

A sample form created with the plugin

6. On a different page use the shortcode [wpfepp_post_table form="X"]. This shortcode will create a list of posts with edit and delete links. The list will contain all the posts of the post type supported by form X.  It should look something like this:

A list of posts generated by the plugin

If you want to customize an existing form then here are the basic steps that you need to follow:

1. Go to Frontend Publishing Pro > Forms.

2. In the list table located at the right side of the screen you will see all your existing forms. Hovering over a form name should make the 'Edit' link visible. Click on this link to start modifying the appearance and behavior of the form.

List of forms

3. On the next screen you will see a list of form fields. You can drag and drop these fields to rearrange them or click on a field to change its settings.

Form settings page
4. Once you are fully satisfied with your form save your changes and see them in action on the frontend.

One of the things that sets Frontend Publishing Pro apart from the multitude of form plugins available on the Internet is that it allows you to define restrictions such as word range, maximum links, number of comma separated sections and so on. A post is not created until all the requirements are met.

To define restrictions for a particular form field:

1. Go to Frontend Publishing Pro > Forms and start editing the form for which you want to define restrictions.

2. On the next screen click on any field to slide open its settings. In this case we will use the Content field as an example. This is what it looks like on the settings page:

Now you can drag and drop validators and sanitizers onto this field to add restrictions. For instance you could add the Min Words validator to the field and the user will not be able to create a post until it meets the word requirement.

IMPORTANT

There are a few things that you need to keep in mind:

- If you do not want to define a particular restriction just leave it empty or remove it. For instance if you don't want to set a maximum word count limit then just leave the area empty.

- HTML tags are removed from submitted content just before it is inserted into the database. No errors are shown to the user. Same goes for nofollowing of links.

If you want to save a user-entered value as post meta then you should create a custom field. Here's how you can do so:

1. Go to Frontend Publishing Pro > Forms and start editing the form for which you want to create a custom field.

2. On the right side of the page you will notice a box titled 'Custom Fields'. Its looks like this:

Enter a label along with a valid meta key and hit the Add button. Your new custom field will show up under the default form fields.

Let's say you want to give your users the ability to submit a byline along with each post. All you have to do is create a custom field by entering a label and a valid meta key like 'byline' or 'about_the_author'. After that you can get the byline for each post by using something like this:

<?php $byline = get_post_meta$post_id, 'byline', true ); ?>

reCaptcha is Google's popular service that allows you to protect your website from automated bots. Frontend Publishing Pro uses the latest version of this service i.e. the no captcha reCaptcha. To add a captcha to your forms you need to follow these steps:

1. Go to Frontend Publishing Pro > Settings > ReCaptcha and enter your site key and secret in the given fields. These items can be obtained here.

2. Once you have added your info you can add the captcha to any form by going to that form's settings.

You can easily translate the plugin into your language by using the POT file included in the languages folder. Here are the steps that you will have to follow:

1. Open strings.pot located in the languages folder with the help of your translation software (POEdit etc).

2. Translate the plugin's strings.

3. Save the resulting po/mo files in the lanugages folder. The names of these files should be in this format: frontend-publishing-pro-cs_CZ.mo