AppThemes Docs

Create Checkout Forms for Other Post Types

You can use PayToPost to allow users to pay to enter a variety of data into a WordPress site. PayToPost can be customized to work with any post type, including posts, pages, and custom post types, and will automatically create the correct post type.

Creating Forms with Different Post Types

PayToPost creates checkout forms using a WordPress Shortcode. You can customize parts of PayToPost by adding attributes to this short code. By default the shortcode looks like this:

[pay_addpost post_type="post"] //The default post type is 'post'

You can change the post type attribute to show a form that will create a different type of post:

[pay_addpost post_type="page"]

PayToPost will automatically use the post type you give it, and will detect whether that post type exists, and supports things like a title, category, tags, or content editor. PayToPost will only display input boxes for things that the post type supports. For instance, pages do not support tags, so users are not given the option to input tags on a page form.

Because you can place shortcodes in multiple pages, you can use Pay2Post to create as many forms as you’d like, tailoring each one to the type of content you’d like to collect.

Your rating: none
Rating: 4.3 - 3 votes