Thursday, November 21, 2019

How to Restrict Your WordPress Forms to Logged-in Users Only

Are you looking for an easy way to restrict your WordPress form submissions to logged-in users only?

If you have a membership site, online store, or another type of website that has registered users, then you may want to restrict certain forms access to only logged in users.

In this article, we will show you how to restrict your WordPress forms access so only logged in users can fill out and submit them.

Restrict Form Access in WordPress

When and Why You Need to Restrict Access for WordPress Forms?

There could be a number of scenarios when you would need to restrict access to certain WordPress forms to logged-in users only.

For example:

  • You may be hosting a private members event, and you only want registered users on your site to RSVP.
  • You may restrict access to support for members only, and by restricting it to logged-in users only, you can dynamically populate certain information from their profile.
  • You might want to run an employee survey or poll, and you want to restrict access to your internal team only.
  • You are running a customer NPS survey that you only want to be submitted by logged-in users only.
  • You might have a special prize claim form that you want to be accessed by only certain logged-in users.

These are just some examples, but there could be literally hundreds of other use cases where you want to restrict form access to registered users only.

With that said, let’s take a look how to restrict your WordPress form access to logged-in users only.

Method 1: Restrict Form Access with WPForms Form Locker Addon

This method is easiest and most powerful, so we recommend it for all beginner users. We will use the WPForms plugin and their Form Locker addon to completely lock down WordPress form access.

WPForms is the best WordPress form plugin used by over 2 million websites. It was created by WPBeginner’s founder, Syed Balkhi, to have all the features we needed for running our business.

The first thing you need to do is install and activate the WPForms plugin. For more details, see this step by step guide on how to install a plugin in WordPress.

Upon activation, you need to enter your license key and then add over to the WPForms » Addons page to install the Form Locker Addon.

WPForms Form Locker Addon

Now you’re ready to create a new form that has restricted access for logged-in users.

To do this, go ahead and create a new form by going to WPForms » Add New. This will open the WPForms form builder where you will be presented with the option to either choose a form template or start with a blank one.

WPForms drag & drop form builder is extremely easy to use, so you can add or remove fields and customize the form to your liking.

WPForms Form Builder

Once you have added all the necessary fields, you need to go to the Settings Tab and click on Form Locker.

WPForms Form Locker Settings

On this tab, you will see the option to enable password protection for your WordPress forms, set total entry limits, enable form scheduling, and enable restricting entries to logged-in users only.

Form Locker Logged in User Only

Once you check the box, you will see a new Message field where you will need to draft a message that will appear to all users who are not logged in to your site.

WPForms Form Locker Restrict Access Message

Once done, you can tweak other form settings that you might need and then click the Save button.

Now you can embed this form on any WordPress post or page on your site by using the WPForms shortcode in the Classic Editor or by using the WPForms block in the Gutenberg editor.

Simply go to Post or Pages, and then click on the Plus icon to select a block. Next, type WPForms in the block search.

Add WPForms block to WordPress post or page

Once the WPForms block is added, select your form to embed and you’re done. Congratulations, you have successfully created a WordPress form that’s restricted to logged-in users only.

Method 2: Restrict Form Access with Password Protected or Private Pages

Another way to restrict form access in WordPress is by using the default WordPress visibility settings. You can use this method with the free version of WPForms or any other contact form plugin.

Simply create a Page or Post where you want to embed the form. After that click on the Visibility settings on the right panel.

WordPress Page Visibility Settings

You have the option to either make the whole page private or make the whole page password protected.

Private pages can only be seen by the Administrators and Editor level users on your website.

If you set a password for the page, then you will have to share that password with everyone who you want to give access to.

While this method works, there are several downsides to it.

First, the entire page is hidden not just the forms area. You lack the finer controls, and there’s no way for you to see which logged-in user submitted the form (if you’re using the password protected setting).

Method 3: Use Advanced Membership Plugins to Restrict Form Access

If you’re using an advanced WordPress membership plugin like MemberPress, then it comes with a lot of access control features built-in.

You can simply go to MemberPress » Rules to create a new permissions rule.

Add new rules in MemberPress

The rule edit page allows you to select different conditions and associate them to a membership plan.

For example, you can select all content that matches a particular tag or category to be available only to members with the silver subscription plan.

Add a rules set to MemberPress

You can also create more specific rules. For example, a single post or page, child pages, or a specific URL.

Once you have set the rules, you can use it in combination with any WordPress contact form plugin to restrict form access to logged-in users only.

For more details, see our step by step guide on how to restrict content access in WordPress.

We hope this article helped you learn how to restrict your WordPress forms to logged-in users only. You may also want to see our list of best WordPress plugins for business websites.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Restrict Your WordPress Forms to Logged-in Users Only appeared first on WPBeginner.


November 21, 2019 at 08:37PM

How to Make the Most Out of WPBeginner’s Free Resources

Often new WPBeginner readers ask us how can they get maximum benefits from all the free resources available on our website.

WPBeginner is the largest free WordPress resource site for beginners. We have been publishing free WordPress guides, how-to tutorials, and videos since 2009.

In this article, we will show you how to make the most out of WPBeginner’s free resources.

Taking advantage of WPBeginner's free WordPress resources

If you haven’t started a website yet, then please take a look at following guides:

If you already have a website, then follow the resources below:

1. Subscribe to WPBeginner Newsletter

Subscribe to WPBeginner newsletter

Signing up for the WPBeginner newsletter is the best way to stay updated with WPBeginner’s new posts and resources. When we write a new article, it will land directly in your email inbox (weekly).

You’ll also get links to our other resources that you may have missed.

2. Signup for Our FREE Video Tutorials

WPBeginner video tutorials

If you are just starting out with WordPress, then our WordPress Beginners Videos should be your first destination.

We hate to see many big companies selling such basic education for hundreds of dollars. This is why we decided to make it available for Free.

These HD quality videos are built for beginner level users. Our 23-step easy to follow video tutorials cover from the basics to advanced WordPress topics and will help you get started with WordPress in no time.

3. Join Our Facebook Group (WPBeginner Engage)

WPBeginner Facebook Group

With more than 20,000+ members, our Facebook group, WPBeginner Engage is one of the fastest-growing WordPress group on Facebook.

It is the most casual and often the fastest way to get WordPress help from our WordPress experts, and other motivated website owners like yourself.

Our team members actively participate in the group to answer user questions. We also do Facebook Live sessions with our Founder and CEO, Syed Balkhi.

4. Join our YouTube Channel

WPBeginner on YouTube

With nearly 154,000+ subscribers, WPBeginner’s YouTube channel is the best WordPress channel on YouTube (over 500+ free videos).

We regularly upload new videos with useful how-to tutorials aimed at beginner level users. These videos are short, sweet, and easy to follow.

You will also get the video transcript, a text version of the tutorial, and you can even ask questions in the comments.

Joining our YouTube channel will help you stay up to date, brush up your WordPress skills, and discover new tools and plugins for your website.

5. Allow WPBeginner Push Notifications

Allow push notifications from WPBeginner

Another way to stay in touch with important content is to get push notifications from WPBeginner.

Allowing push notifications will let you receive browser notifications on your desktop or mobile devices. We only use this notification for important pieces of content (not every content). You can check the article right away or later at your convenience.

If you have push notifications blocked on your browser, then you can enable them or selectively allow WPBeginner.

Here is how to turn on notifications in major browsers:

6. Follow us on Your Favorite Social Media Network

Follow WPBeginner on Social

We do our best to be present on all popular social media platforms, so we can help you learn WordPress on your favorite platform.

You can follow us on Twitter, Facebook, LinkedIn, Pinterest, and Instagram.

This way you can participate in our community discussions, see what new posts we have published, get in touch with us, and leave your comments and feedback.

We like to hear from our users. In fact, many of our post ideas come from user requests made on Twitter, Facebook, and our other social channels.

7. Got a WordPress Question? Here is How to Find The Answer

Search WPBeginner

At the top right corner of every page on WPBeginner, there is a search box. This search box is powered by Google Custom Search. It is fast and highly accurate.

Simply type the question you wanted to ask us. There is a very good chance that we have already written about it.

Pro tip: To save time, some readers just Google their WordPress questions with wpbeginner at the end of each search term, so Google can show them the most accurate answer.

8. Can’t Find an Answer? Drop us a Line or Tweet to us

Send us a message

If you have searched WPBeginner and didn’t find an answer to your question, then you can reach us using the contact form on our website.

You can also Tweet to us @WPBeginner.

Alternately, you can post your question on WPBeginner’s Facebook Group. This way you can share as much information as you like and get help not just from our experts but other users as well.

We try our best to get back to you with an answer or point you in the right direction within 1 business day.

We love hearing from our users because that’s what keeps us motivated and inspired.

9. Need Plugin and Theme Recommendations?

Plugin and theme recommendations

Many beginners are concerned about which plugins they should use on their WordPress site or how to find the perfect theme. Visit WPBeginner’s Showcase section where we hand-pick the best WordPress plugins and themes. Here are some places to look at:

Want to know which WordPress plugins and tools we use on WPBeginner? Check out WPBeginner’s Blueprint where you will find all the tools and plugins we use to run WPBeginner.

10. Lookup Terms in our WordPress Glossary (aka WordPress Dictionary)

WPBeginner Glossary

As a beginner, it’s quite intimidating to not know what a specific technical lingo means. That’s exactly why we created our WordPress glossary.

You can look up for WordPress and blogging terms in Our WordPress Glossary section. We have organized the most commonly used terms in alphabetical order with easy to understand descriptions for each term.

11. Get The Best WordPress Deals and Coupons

WPBeginner Deals

As the largest WordPress resource site, we have reached out to top WordPress companies for exclusive discounts and deals for our users.

In WPBeginner’s Deals section, you’ll find excellent WordPress hosting, theme, and plugin coupons.

We have also included special offers from most of the tools and services that we use ourselves to grow our business. All these deals will help you grow your business online with much less effort.

12. Want to Learn More About WPBeginner?

About WPBeginner

Are you curious about who runs WPBeginner? Why it’s free and how it works? Check out our about page.

We started out as a small blog to help our clients learn how to use WordPress. Since then WPBeginner has grown into becoming one of the largest free WordPress resource site for beginners.

You may also want to check out the personal website of our founder and CEO, Syed Balkhi. You can find him on Twitter as well as Instagram.

13. What Else We Do?

WPBeginner blog is managed by Awesome Motive Inc, the management company behind many other premium WordPress plugins and tools.

If you like our free tutorials, then please support us by using our premium plugins:

  • OptinMonster – Helps you get more email subscribers.
  • WPForms – Best WordPress contact form and survey plugin.
  • MonsterInsights – #1 WordPress analytics plugin (trusted by 2 million websites).
  • RafflePress – WordPress giveaway and contest plugin to help you grow your website traffic.
  • WP Mail SMTP – Fixes the WordPress not sending email issues.
  • SeedProd – Best WordPress coming soon and maintenance mode plugin.
  • TrustPulse – Helps you boost conversions with honest social proof notifications.

We hope this article helped you learn how you can make the most out of WPBeginner’s free WordPress resources. You may also want to take a look at how to learn WordPress in a week or less.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Make the Most Out of WPBeginner’s Free Resources appeared first on WPBeginner.


November 20, 2019 at 07:00PM

Tuesday, November 19, 2019

How to Create Custom Permalinks in WordPress

Do you want to create custom permalinks in WordPress for posts, pages, and other post types?

Recently one of our readers asked if it was possible to create their own custom permalinks aka page URL structure in WordPress.

In this article, we will show you how to create custom permalinks in WordPress without affecting your SEO.

Creating custom permalinks in WordPress

Since this is a comprehensive tutorial on creating custom permalinks in WordPress, we have created an easy to navigate table of content:

Permalinks are the permanent URLs of your individual blog posts, pages, and other archive pages on your WordPress site. Custom permalink is basically a URL structure applied to a specific page in WordPress without affecting the rest of your URL structure.

WordPress comes with an SEO Friendly URL structure which allows you to use an easy to understand URL structure for both humans and search engines.

For example: https://ift.tt/359PKv8

This is much better than URLs from the old days: https://ift.tt/2KCTldh

WordPress provides website owners with multiple options to choose from. You can view them by visiting Settings » Permalinks page.

Select permalink structure

Aside from changing the main permalink structure, WordPress also offers ways to customize the individual URLs of posts, pages, categories, tags, and other areas of your website.

You can also use WordPress plugins to create completely custom permalinks for specific sections of your website that overrides the default WordPress settings.

Let’s take a look at all the options one by one. We’ll start with the default built-in options that come with your WordPress website.

If you want to change the whole URL generation scheme for your website, then go to Settings » Permalinks page.

Select permalink structure

Simply select a URL structure for your individual posts. You can also use the tags shown on the screen to create a custom structure for your WordPress URLs.

Don’t forget to click on the Save Changes button to store your changes.

We recommend using a URL structure that includes the post name in the URL. This makes your URLs more SEO friendly and meaningful.

Note: You should change to a SEO friendly permalinks for all new WordPress blogs and websites. However, if you have an existing website that’s already getting traffic from search engines, then changing permalinks can affect your SEO rankings.

How to Change the Category and Tag URL Prefix in WordPress

By default, WordPress uses /category/ as the base for your category URLs and /tag/ for the tags pages. For example:

https://ift.tt/2rSvxeP
https://ift.tt/2XtQEzS

Category and tag base

You can change these base prefixes from the Settings » Permalinks page to anything that you like. For example,

https://ift.tt/2KF8RWa (for category pages)
https://ift.tt/37k09WX (for tag pages)

Once you have the permalink structure setup, WordPress uses that as a template for all links on your site. However, you do have the option to modify the URL slug aka keywords inside the URL structure for individual posts, pages, and custom post types.

You can customize the slug part of the URL from the post edit screen inside the WordPress content editor.

Simply edit the post, page, or custom post type and click on the title field. You’ll notice the Permalink field appears on top of it.

Edit post slug to create custom URL

Go ahead and click on the Edit button next to it, and then change the URL slug to a custom permalink. Once you are done, click on the Save button to store the new permalink.

Customize post permalink

You can use this method for all post types including WooCommerce products, MemberPress courses, etc.

In the earlier step, we showed you how to modify the category and tag base prefix in WordPress. In this step, we will show you how to change the URL keywords for an individual category or tag.

Simply go to Posts » Categories page and click on the Edit link below the category you want to customize.

Editing a category details in WordPress

WordPress will now load the category details. From here, you can change the category slug to customize its permalink.

Change category slug to customize permalink

Similarly, you can edit an individual tag by visiting Posts » Tags page.

Edit a tag

You can also edit any custom taxonomies using the same method.

WordPress automatically adds the ‘/author/’ base to URLs leading to author archive pages. For example:

https://ift.tt/340oCyA

The problem is that WordPress does not come with an option to change the author URL base or the slug.

Luckily, as the saying goes, there is a plugin that can help.

Simply install and activate the Edit Author Slug. For details, see our step by step guide on how to install a WordPress plugin.

Upon activation, go to Users » All Users page. Next, click on the ‘Edit’ link below a username.

Editing a user details in WordPress

On the next page, scroll down to the Edit Author Slug section, and you will be able to choose an author slug or add your own. Don’t forget to click on the save changes button to store your settings.

If you want to change the author permalink base, then simply head over to the Settings » Edit Author Slug page. Here you will see an option to change the author base and even choose different author bases for users with different user roles.

Change author base

For more details, see our guide on how to change author URL slug and base in WordPress.

All the above methods allows you to customize WordPress permalinks to a certain extent. However, they cannot help you create completely custom permalinks.

That’s because WordPress by default doesn’t offer this functionality.

Luckily, there’s a plugin that can help. If you want to override the default WordPress URL structure for specific sections on your site, then follow the steps here.

The first thing you need to do is install and activate the Custom Permalinks plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to edit the post where you want to create a custom permalink. Instead of editing the permalink field at the top, you’ll find the option to create a custom permalink below the editor.

Creating a completely custom permalink for a post

Similarly, you can also create custom permalinks for categories. Go to Posts » Categories page and click on the edit link below the category that you want to change.

Editing a category details in WordPress

On the category details page, you’ll find the option to create a custom permalink for that particular category. You can even create a URL without the category base prefix.

Editing the category permalink

You can manage and disable all your custom permalinks by clicking on the ‘Custom Permalinks’ menu in the admin sidebar.

Manage your custom permalinks

Simply select the custom permalinks you want to delete and then click on the Bulk Actions menu to select ‘Delete permalinks’ option.

After that click on the ‘Apply’ button and the plugin will remove those custom permalinks. The deleted permalink will be replaced by your default WordPress permalink scheme.

WordPress automatically handles changes made to post and page URLs. However, it may not set up redirects for your custom author permalinks or completely customized permalinks.

In that case, you’ll need to set up proper redirects to avoid 404 errors on your website.

First, you need to install and activate the Redirection plugin.

Upon activation, you need to visit Tools » Redirection page to set up redirects. You need to add the old link in the ‘Source URL’ field and the new URL in the ‘Target URL’ field.

Setup redirects

After that click on the ‘Add redirect’ button to save your changes. For more details, see our beginner’s guide to setting up redirects in WordPress.

We hope this article helped you learn how to create custom permalinks in WordPress. You may also want to see our ultimate WordPress SEO guide to get more search traffic to your website.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Create Custom Permalinks in WordPress appeared first on WPBeginner.


November 19, 2019 at 04:00PM