How to allow users to submit articles to your WordPress site

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

Now many sites have users to submit the button of the article, your WordPress site want to also have this function? In this article, the author tells the method. This submission is divided into the need for user registration and does not require user registration. Choose the method that suits you according to your needs. This feature is useful for those sites that want to accept submissions from users, submit albums, etc.

Allow registered users to submit articles

WordPress is built on user roles and functions. If you run a multiple-author site. This is a simple way for users to register and create content. First to the WordPress background settings» General, check that anyone can register, in the user role of the option author or contributor can.

  

Now the user can register at your site, next you want to let the user know can register. The easiest way to do this is to drag the function to the sidebar in the appearance» gadgets.

  

With this sidebar function, users can easily login and register at your site. Then submit the article based on the character you choose. Of course, the role you can also create through a number of plug-ins to give different roles different functions.

Ii. allow non-registered users to submit articles

Many webmaster to WordPress itself backstage very criticized, so do not want them to visit the WordPress backstage. Just want users to submit their content at the front desk. Now this method can be implemented by creating a submission or submitting a content template. However, assuming that the user does not have the code capabilities of PHP, then we use plug-ins in the way implementation is the simplest. One of the plug-ins I want to introduce today is user submitted Posts. First download and install activation. After activation, configure this plugin to the settings»user submitted Posts.

  

In the option to set the page, you can configure which users are allowed to add. You can select which fields appear in front of the user and which fields are hidden. Including user name, article address, article label, article classification, article content, article image and validation. It is recommended that you create a guest new user, so that the articles submitted by the visitors are under this user. If you have the option to display an article image, you can also set the size of the image allowed to upload.

  

In order to display the content submission form, you need to create an article or page, enter the title and paste the following simple code into it:

[User-submitted-posts]

At your front desk you will see the following display:

  

See, and WordPress backstage post the form of the article basically similar.

Hint: This plugin does not have gadgets, but you can add a text widget, then paste the code above, and add the following to the functions.php to support simple code:

Dd_filter (' Widget_text ', ' do_shortcode ');

This article is a point gold theme net Www.dianjin123.com original article, welcome reprint.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.