How To Allow Authors To Revise Published Posts in WordPress

Recently one of our users asked if they can allow authors to revise and edit published posts in WordPress. Revisions can help in improve quality of the post, and it gives the authors a feeling of ownership on your blog. In this article, we will… Read More »

The post How To Allow Authors To Revise Published Posts in WordPress appeared first on WPBeginner.

Recently one of our users asked if they can allow authors to revise and edit published posts in WordPress. Revisions can help in improve quality of the post, and it gives the authors a feeling of ownership on your blog. In this article, we will share how to allow authors to revise published posts in WordPress.

Allow authors to revise published posts in WordPress

When and Why You Should Allow Authors to Revise Published Posts?

WordPress comes with a powerful user role and permissions system, which allows you to add new authors and users to your website.

If you are running a multi-author or membership website in WordPress, then you may want to allow contributors to make changes in published articles.

WordPress allows you to let contributors edit their published posts and update them without getting an approval from an editor or administrator. However, we do not recommend giving such permissions to contributors. An administrator should review the post and publish the changes, so the editorial quality is always up to par.

Luckily there is a solution that allows contributors to make changes and submit for editorial review. Once approved, the editor can easily merge the changes to the live post.

Let’s take a look on how to easily allow authors to revise published posts in WordPress.

Allowing Authors to Revise Published Posts in WordPress

First thing you need to do is install and activate the Revision Manager plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit Settings » Revision Manager TMC page in your WordPress admin area.

In the general settings, you need to select edit_posts under ‘Copy creation capability’ dropdown and published_posts in ‘Acceptation capability’ dropdown. This will allow users with the contributor user role to create a duplicate copy of a published post.

The role for notification should be assigned to an Administrator or Editor who will review the changes and publish the post.

Revision manager settings

After adding the capabilities, you need to scroll down and select the post types where you want to allow authors to submit revisions.

Select post types

Next, you can edit notification settings to get notified when a contributor submits a post revision. You can select a template and customize it to meet your requirements.

Notification for revision manager

Once you are done, click on the Update settings button to store your changes.

Now that you are done with the revision settings, you need to login from a contributor account in WordPress.

Once logged in, visit Posts » All Posts page and take your mouse to any published post. You will now see an option to ‘Create revision draft’ below each post.

Hint: you can instantly switch between user accounts while testing the settings for post revisions.

Create revision draft

Once a contributor click on the Create revision draft link, the plugin will create a duplicate version of the published post and open it for editing. An author can revise the post, make changes, and submit it for review.

Submit post revision

Upon submission, the administrator will receive a notification to review and publish the post.

You can now switch to the Administrator account in WordPress and go to Posts » All Posts page. Here, you’ll see the duplicate post with a message that a revision is waiting for acceptance.

Post revision waiting for acceptation

You can click on this revision post and review the changes. After reviewing, click on the Publish button.

Publish revised post

Once published, it will override the original post content and delete the duplicate revision post automatically. Now, you can go back to Posts » All Posts page in WordPress, and it will only show the original post.

Original post with no revision

Keeping your old content up to date is a great way to add value to your users, and it also helps boost WordPress SEO rankings.

We hope this article helped you learn how to allow authors to revise published posts in WordPress. You may also want to see our guide on how to prevent authors from deleting posts in WordPress.

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 Allow Authors To Revise Published Posts in WordPress appeared first on WPBeginner.

How to Import External Images in WordPress

Do you want to import external images in WordPress? If you have recently moved your website from one platform to another, then there is a good chance that you may have external images embedded on your pages. In this article, we will explain how to… Read More »

The post How to Import External Images in WordPress appeared first on WPBeginner.

Do you want to import external images in WordPress? If you have recently moved your website from one platform to another, then there is a good chance that you may have external images embedded on your pages. In this article, we will explain how to properly import those external images in WordPress.

How to import external images in WordPress

When and Why You Need to Import External Images?

External images are images embedded in your content that load from another website or URL different from your main site.

Most commonly, WordPress users come across external images issue after migrating their website from other platforms like Blogger, Weebly, Joomla, or WordPress.com.

By default if you use one of the WordPress importers, then it will try to import images. You can see the imported images by visiting Media » Library page in your WordPress admin area.

If you see that all your images are already there, but the post URL is linking to the old source, then you don’t need this article. Instead, you need to update URLs using Velvet Blues Update URLs plugin.

However if you don’t see images imported to your WordPress media library, then continue reading and we will show you how to import those external images.

Importing External Images in WordPress

First thing you need to do is to install and activate the Auto Upload Images plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit Settings » Auto Upload Images page to review the plugin settings.

Auto upload images settings

The default settings would work for most users, but you can change them as needed.

The plugin will import images to your default WordPress media uploads folder. You can change that by providing a different base URL. Other than that, it also allows you to set filename, image alt tag, image size, and exclude post types.

Once you are done, don’t forget to click on the Save Changes button to store your settings.

Next, you will need to update the posts or pages containing the external images. Since this is a manual process, it can be tedious if you have a lot of content.

Luckily, there’s a quick way to update all posts with external images. Simply go to Posts » All Posts page and then click on the Screen Options button at the top.

Show more articles

You need to increase the number to 999 in the ‘Number of items per page field’ field and click on the Apply button.

WordPress will reload the page, and this time it will show 999 posts at a time. Next, you need to select all your posts and then select Edit under the bulk actions menu.

Select all your posts

After that you need to click the Apply button. WordPress will show you a quick edit box with all selected posts. You just need to click on the Update button, and WordPress will update all your posts.

Remember, don’t change any of the settings in the bulk edit settings that you see. You just need to click Update.

This process will trigger the plugin to check all selected posts and import external images as it finds them.

If you have more than 999 posts, then you will need to visit the next page to select remaining posts.

We hope this article helped you learn how to import external images in WordPress. You may also want to see our guide on how to fix common image issues in WordPress.

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 Import External Images in WordPress appeared first on WPBeginner.

How to Exclude Specific Pages, Authors, and More from WordPress Search

Do you want to exclude specific pages, authors, and more from WordPress search? By default, WordPress search includes all posts and pages in the search results. In this article, we will show you how to easily exclude specific pages, posts, authors, categories, and more from… Read More »

The post How to Exclude Specific Pages, Authors, and More from WordPress Search appeared first on WPBeginner.

Do you want to exclude specific pages, authors, and more from WordPress search? By default, WordPress search includes all posts and pages in the search results. In this article, we will show you how to easily exclude specific pages, posts, authors, categories, and more from WordPress search results.

Exclude pages, authors, category, tag, and more from WordPress search

Why Exclude Items from WordPress Search?

The default WordPress search feature shows results from all WordPress posts, pages, and custom post types. This is acceptable for most websites and does not affect WordPress SEO or performance.

However if you are running an online store, then there are some pages that you may not want to appear in search results. For example, the checkout page, my account page, or a thank you page after successful downloads.

Similarly, if you are running a WordPress membership website, or a LMS plugin, then there would be pages and custom post types on your website that you may want to exclude from search results.

Some website owners may want to hide a category or taxonomy, while others may want to hide posts from specific authors. Optimizing your site-search by excluding unnecessary items offers a better user experience and improves your website’s usability.

That being said, let’s take a look at how to easily exclude items from WordPress search.

1. Exclude Specific Posts, Pages, and Custom Post Types from Search

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

Upon activation, edit the post, page, or custom post type that you want to exclude from the search result. On the edit screen, you will see a search exclude box.

Exclude from search box

Simply check ‘Exclude from Search Results’ checkbox and don’t forget to save your post/page. This particular post/page will not appear in WordPress search results anymore.

To view all the items that you have excluded from search, go to Settings » Search Exclude page. Here you will see a list of items you have excluded from WordPress search results.

Content you have excluded from WordPress search

If you want to remove the restriction, simply uncheck the box next to the item you want to add back and click on the save changes button.

2. Exclude Specific Category, Tag, Custom Taxonomy From WordPress Search

This method requires you to add code to your WordPress website. If you haven’t done this before, then check out our guide on how to copy and paste code snippets in WordPress.

First, you need to find the category ID that you want to exclude.

Next, you need to add the following code to your theme’s functions.php file or a site-specific plugin.

function wpb_search_filter( $query ) {
	if ( $query->is_search && !is_admin() )
		$query->set( 'cat','-7' );
	return $query;
}
add_filter( 'pre_get_posts', 'wpb_search_filter' );

Don’t forget to replace 7 with the ID of category you want to exclude.

Now, let’s suppose you want to exclude more than one category. This is how you will modify the code to exclude multiple categories.

function wpb_search_filter( $query ) {
	if ( $query->is_search && !is_admin() )
		$query->set( 'cat','-7, -10, -21' );
	return $query;
}
add_filter( 'pre_get_posts', 'wpb_search_filter' );

We have simply added the category IDs that we want to exclude separated by commas.

Exclude Specific Tags from WordPress Search

If you want to exclude posts filed under specific tag, then you can use the following code.

if ( $query->is_search && !is_admin() )
		$query->set( 'tag','-19' );
	return $query;
}
add_filter( 'pre_get_posts', 'wpb_search_filter' );

Don’t forget to replace 19 with the ID of tag you want to exclude.

Similarly, you can modify the code to exclude multiple tags as well.

if ( $query->is_search && !is_admin() )
		$query->set( 'tag','-19, -27, -56' );
	return $query;
}
add_filter( 'pre_get_posts', 'wpb_search_filter' );

Excluding Specific Terms in a Custom Taxonomy From WordPress Search

If you want to exclude a term in a custom taxonomy from WordPress search results, then you will need to add the following code.

function wpb_modify_search_query( $query ) {
	global $wp_the_query;
	if( $query === $wp_the_query && $query->is_search() ) {
		$tax_query = array(
			array(
				'taxonomy' => 'genre',
				'field' => 'slug',
				'terms' => 'action',
				'operator' => 'NOT IN',
			)
		);
		$query->set( 'tax_query', $tax_query );
	}
}
add_action( 'pre_get_posts', 'wpb_modify_search_query' );

Don’t forget to replace ‘genre’ with the custom taxonomy and ‘action’ with the term you want to exclude.

3. Exclude Specific Author From WordPress Search

If you want to exclude posts created by a specific author from WordPress search result, then there are two ways to do that.

If the author has just a few posts, and you are sure they will not be adding any more posts, then you can just use the first method in this article to exclude their posts from WordPress search.

However if there are a lot of posts written by an author, then you can use the following code to exclude all of them from WordPress search results.

function wpb_search_filter( $query ) {
	if ( $query->is_search && !is_admin() )
		$query->set( 'author','-24' );
	return $query;
}
add_filter( 'pre_get_posts', 'wpb_search_filter' );

Don’t forget to replace 24 with the user ID of the author you want to exclude.

You can also use the same code to exclude multiple authors by adding their user IDs separated by comma.

function wpb_search_filter( $query ) {
	if ( $query->is_search && !is_admin() )
		$query->set( 'author','-24, -12, -19' );
	return $query;
}
add_filter( 'pre_get_posts', 'wpb_search_filter' );

We hope this article helped you learn how to explude specific pages, authors, and more from WordPress search. You may also want to see our list of the best WordPress search plugins to improve your site search.

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 Exclude Specific Pages, Authors, and More from WordPress Search appeared first on WPBeginner.

How to Create a Net Promoter Score® (NPS) Survey in WordPress

Do you want to create a Net Promoter Score (NPS) survey in WordPress? Net Promoter Score is a popular method to measure customer loyalty, so you can improve your brand image. In this article, we will show you how to easily create a Net Promoter… Read More »

The post How to Create a Net Promoter Score® (NPS) Survey in WordPress appeared first on WPBeginner.

Do you want to create a Net Promoter Score (NPS) survey in WordPress? Net Promoter Score is a popular method to measure customer loyalty, so you can improve your brand image. In this article, we will show you how to easily create a Net Promoter Score® Survey in WordPress, and how to properly use it to improve your business.

Creating Net Promoter Score survey in WordPress

What is Net Promoter Score?

Net Promoter Score is a management tool that helps businesses measure customer loyalty. The idea was first introduced in 2003, and since then more than two-thirds of Fortune 1000 companies have adopted it.

Here is how it works.

It is based on a single question, ‘How likely is it that you would recommend our company/product/service to a friend or colleague?’.

The answer is provided on a scale of 0 to 10.

Customers who respond with a score of 9 or 10 are called ‘Promoters’. These are your brand’s most loyal customers and are highly likely to purchase again and recommend your business to others.

Users who answer with a score between 0-6 are considered ‘Detractors’. These are the customers who are unhappy with your business and are least likely to purchase or recommend your business.

Customers responding with a score of 7 or 8 are called ‘Passives’. They can be either promoters or detractors and are less likely to actively recommend your business and products to their friends or colleagues.

Your final NPS score is calculated by subtracting the percentage of detractors from the percentage of promoters. The overall score ranges from -100 to 100.

A -100 score means all customers are detractors and a full 100 score means all customers that took part in the survey were promoters. Normally, a score of positive numbers (0-40) is considered good, and a score of 50 or above is considered excellent.

Due to the popularity of NPS surveys among businesses, there are numerous very expensive survey tools that will charge you hundreds of dollars per month. These solutions are not very affordable for small businesses.

Luckily, you can use a WordPress survey plugin by WPForms which helps you create powerful NPS surveys at a fraction of the cost.

Let’s take a look at how to create a Net Promoter Score survey in WordPress.

Creating a Net Promoter Score (NPS) Survey in WordPress

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

WPForms is a paid plugin, and you will need at least their Pro plan to access their surveys addon used in this tutorial.

Upon activation, you need to visit WPForms » Settings page to enter your license key. You can find this information under your account area on WPForms website.

WPForms license

After entering your license key, you need to visit the WPForms » Addons page and locate the ‘Surveys and Polls Addon’. Go ahead and click on the ‘Install Addon’ button.

Install surveys addon

WPForms will now install the addon. Once finished, you need to click on the ‘Activate’ button to start using the addon.

You are now ready to create your first Net Promoter Score survey form.

Head over to WPForms » Add New page to create a new form. First, you need to provide a title for your form, and then select ‘Survey Form’ from the templates below.

Create a new survey form

WPForms will now load the form builder interface with some typical survey form fields. This is a drag and drop form builder where you can just point and click to edit any existing form fields or add new fields from the left column.

Delete all form fields

Net Promoter Score survey usually has just one question, which means we don’t need all these fields. Simply take your mouse over to each field and then click on the delete button to remove them.

After deleting all fields, click on the ‘Net Promoter Score’ field under the left column to add it in your form.

Add Net Promoter Score field

Your Net Promoter Score survey form is now almost ready. Simply getting the score is not very helpful because you don’t know why these customers are unhappy or happy.

Let’s add some smart conditional fields to the form to get more helpful feedback from users.

Adding Conditional Logic to Net Promoter Score Survey Form

WPForms comes with a smart conditional logic feature which allows you to show or hide form fields based on user’s answers to previous form fields.

You can use that feature to ask users for more feedback based on their answer. For example, you can ask users who select a score between 0-6 to give you another chance to make things right. These customers are unhappy and asking them for an opportunity to make things right will help you improve your relationship with these customers.

Similarly, you can also ask users giving a score between 9-10 to leave a testimonial and ask for their permission to share it on your website. These are your most loyal customers, and their testimonials can help you add social proof to your website.

Let’s add these conditional fields to your NPS survey form.

First, click on the ‘Paragraph Text’ field under the left column to add it in your form. After that click on the form field to edit the label.

Add paragraph text field and edit the label

We only want to show this field to users responding with a score between 0 and 6. To do that, we will add conditional logic to this form field.

Click to select the form field and then click on the ‘Conditionals’ menu from the left column. Now, click the checkbox next to ‘Enable conditional logic’ option.

Using conditional logic to hide feedback field

Now WPForms will display conditional logic rules. We will add rules to show this field if ‘Net Promoter Score’ field is not between 8 and 10.

You will need to add a rule for each value. You will also need to add a rule to only show this field when the survey field is not empty.

You can also repeat the process to add another Paragraph Text field to be displayed when users give a score between 9 to 10.

For those giving a score of 7 or 8, you should have a similar paragraph text field asking them for their top suggestion to improve the product. Typically these customers are happy with the overall product, but need one or two things to turn them into promoters.

Adding Your Net Promoter Score Survey in WordPress

WPForms makes it super easy to add forms to any post or page on your website.

Simply create a new page or edit an existing page. On the page edit screen click on the ‘Add Form’ button.

Add form button

This will bring up a popup where you need to select the survey form you created earlier and click on the ‘Add form’ button.

Select survey form

WPForms will now add the required shortcode to display the form in your page edit area. You can now save your changes and visit your website to see the form in action.

Net Promoter Score survey preview

Now, whenever a user selects a score between 0 to 6, they will see another form field asking for their feedback.

NPS survey form with feedback field

Viewing Your Net Promoter Score Results

After your form is live WPForms, will start calculating your Net Promoter Score based on survey results. You can send the NPS survey link to your customers using an email marketing service to encourage them to fill it out.

After a few users have filled the form, you can go ahead and check your score.

To do that, head over to WPForms » All Forms page. Click on the ‘Survey result’ link under your Net Promoter Survey form.

Net Promoter Score survey results

WPForms will now display your total Net Promoter Score along with the number of promoters, detractors, and passives. It will also break down the results in beautiful charts, bars, and graphs.

You can use the feedback from users to improve your product, add new features, as well as offer support to unhappy customers and turn them into loyal brand evangelists.

We hope this article helped you learn how to easily create a Net Promoter Score (NPS) survey in WordPress. You may also want to see our article on how to enable customer tracking in WooCommerce with Google Analytics.

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 a Net Promoter Score® (NPS) Survey in WordPress appeared first on WPBeginner.

7 Best WordPress Accordion Plugins (2018)

Are you looking for the best accordion plugins? An accordion is a neat web design technique which allows you to display content in collapsible tabs. In this article, we have hand-picked the 7 best WordPress accordion plugins that you can use on your website. Why… Read More »

The post 7 Best WordPress Accordion Plugins (2018) appeared first on WPBeginner.

Are you looking for the best accordion plugins? An accordion is a neat web design technique which allows you to display content in collapsible tabs. In this article, we have hand-picked the 7 best WordPress accordion plugins that you can use on your website.

Best WordPress accordion plugins

Why Do You Need to Add Accordions in WordPress?

Accordions allow you to display more content on your posts and pages without adding long scrolls. If you want to shrink the length of a page, then you should consider adding your content in an accordion element.

You can add vertical or horizontal accordions with the text inside each tab. When users click or mouseover on the tab, it expands to reveal the content.

Example of accordion used on a website

Accordions are most commonly used to add a frequently asked questions (FAQs) section, by displaying questions as tabs. However, you can use them to add any kind of content where you want to save users from scrolling.

That being said, let’s take a look at some of the best WordPress accordion plugins that you can use on your WordPress website.

1. Accordion

Accordion plugin

Accordion is a handy WordPress plugin which allows you to add beautiful accordions in your pages, posts, template files, and anywhere on your site using shortcodes. It has a responsive design and displays your content beautifully on all devices. Accordion has Font Awesome icon font support which allows you to use beautiful icons to your accordion tabs.

You can add unlimited accordions on your site using this plugin. It allows you to change styles for the opened and closed accordion, hide the accordion without deleting, text alignment for content, and more.

2. Accordion FAQ

Accordion FAQ

Accordion FAQ is another accordion plugin for WordPress sites. It has a drag and drop builder that helps you easily add accordions anywhere on your WordPress blog. You can sort the accordions and manage their placement by dragging them up or down in the backend.

It has multiple templates, unlimited color options, Font Awesome icons support, bootstrap framework for responsive design, and more. Accordion FAQ loads faster which is great for search engine rankings of your site.

3. Tab – Accordion, FAQ

Tab accordion FAQ

Tab, Accordion and FAQ is a WordPress plugin that allows you to add beautiful animated tabs and accordions in WordPress. You can easily add responsive horizontal, vertical, animated, and other accordions to WordPress posts, pages, and sidebar widget areas.

It has multiple transition effects, different layouts, drag and drop functionality for sorting tabs, and more.

4. Arconix Shortcodes

Acronix shortcode

Arconix Shortcodes is a multipurpose WordPress plugin based on different style shortcodes to add tabs and accordions on your site. It displays your content in accordions and appears neatly on all mobile devices.

You can create unlimited accordions and add them anywhere with the help of shortcodes. The plugin also comes with a compatibility mode which allows you to prevent shortcode name conflicts.

5. Easy Accordion

Easy accordion

Easy Accordion is another WordPress accordion plugin that allows you to set up unlimited accordions and add them on your pages, posts, widget areas, and template files.

If you buy their premium version, then it comes with additional features like advanced shortcode system, accordions from WordPress categories and custom taxonomies, themes, unlimited colors support, and more.

6. Shortcodes Ultimate

Shortcodes ultimate

Shortcodes Ultimate is a comprehensive WordPress plugin that comes with a set of shortcodes to add multiple features. You can use this plugin to add accordions on your site with its 1-click shortcode insertion and live preview.

It has a custom widget that you can use to add the accordion in any widget area of your WordPress site. Shortcodes Ultimate is easy to use and functions smoothly with modern WordPress themes.

7. Smooth Accordion

Smooth accordion

Smooth Accordion is a simple WordPress accordion plugin. Like other accordion plugins, it allows you to add accordions on your pages and posts. Smooth Accordion adds an icon in your WordPress post editor that helps in adding the accordions in your posts and pages right away.

You can customize the background color, add custom styles to accordions, and align your content easily in plugin settings.

We hope this article helped you find the best WordPress accordion plugins. You may also want to see our ultimate step by step WordPress speed and performance guide for beginners.

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 7 Best WordPress Accordion Plugins (2018) appeared first on WPBeginner.

How to Add a Search Bar to WordPress Menu (Step by Step)

Do you want to add a search bar to your WordPress navigation menu? Search form can be really helpful for your users to find what they’re looking for on your site. In this article, we will show you how to add a search bar to… Read More »

The post How to Add a Search Bar to WordPress Menu (Step by Step) appeared first on WPBeginner.

Do you want to add a search bar to your WordPress navigation menu? Search form can be really helpful for your users to find what they’re looking for on your site. In this article, we will show you how to add a search bar to your WordPress menu.

How to add a search bar to WordPress menu

Why You Should Add a Search Bar in Menu?

A search bar makes it easy for your users to find what they’re looking for without scrolling to all the pages.

If you add a search bar to your top navigation menu, then it will appear on all pages that display the menu, and your users can easily search all the content on your site.

There are multiple search plugins that you can use to add a search bar to your site. Let’s take a look on how to add a search bar to your WordPress menu.

Adding a Search Bar to WordPress Menu

First thing you need to do is to install and activate the Add Search to Menu plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to go to Settings » Add Search To Menu page in your WordPress admin area to configure search bar to your menu.

Add search to menu plugin page

On this page, you need to select the menu where you want to add the search bar. This list of menus (Primary Menu and Social Links Menu) belongs to your WordPress template. If you change the template of your site, then the list will be automatically updated with the available menus from your template.

Once selected, the search bar will be added to your navigation menu. You can define the search post types, search form style, search menu title, manage mobile display for search, and more. These settings will also help in controlling the search results for your users.

After that, you can head over to your site to see the search bar in the WordPress navigation menu.

Add search bar to menu

You can also add the search bar to all other menus of your site. Simply select the menu from plugin settings where you want to display your search form.

We hope this article helped you learn how to add a search bar to WordPress menu. You may also want to see our expert pick of the useful tips and tricks to speed up WordPress site performance and search results.

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 Add a Search Bar to WordPress Menu (Step by Step) appeared first on WPBeginner.

How to Display Yelp Reviews on your WordPress Site

Do you want to display Yelp reviews on your site? Yelp reviews are user reviews about the restaurants, brands, services, lifestyle products, hospitals, doctors and more. In this article, we will show you how to display Yelp reviews on your WordPress site for users to… Read More »

The post How to Display Yelp Reviews on your WordPress Site appeared first on WPBeginner.

Do you want to display Yelp reviews on your site? Yelp reviews are user reviews about the restaurants, brands, services, lifestyle products, hospitals, doctors and more. In this article, we will show you how to display Yelp reviews on your WordPress site for users to read general public reviews.

Yelp Reviews WordPress

Why You Should Display Yelp Reviews on Your Site?

Yelp is a public-based reviews website. It has reviews and ratings on local businesses from experienced users. These reviews and ratings are helpful for the new visitors to get a word from someone who already used the particular product or service.

Don’t have a Yelp Business page yet? Click here to Claim Your Yelp Business Page.

Like the Facebook page reviews for your business, Yelp reviews also reassure stability of your brand or service to the new visitors. However, the difference is that Facebook reviews are limited to those who follow your brand page on the social media platform whereas Yelp reviews can be from anyone who uses your brand or service.

If you own a business listing blog or membership site, then you can also display Yelp reviews for different local businesses from your town and increase organic traffic on your website.

That being said, let’s take a look at how to display Yelp reviews in WordPress.

Showing Yelp Reviews on Your WordPress Site

First thing you need to do is to install and activate the Yelp Reviews Widget plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to go to Appearance » Widgets page in your WordPress admin area. You need to drag and drop Yelp Reviews Widget in the Sidebar widget area.

Add Yelp reviews widget in sidebar

Next, you need to create a new app from Yelp developers page and get an API key to launch Yelp business reviews in this widget.

Once the API key is added, you can search for the brand or service in Yelp reviews widget by adding the name and location of the business. A list of businesses will be displayed, and you can select your business to show reviews in the sidebar widget area of your site.

Search business and select from the list

After selecting your business from the list, you can click on the Save Business and Reviews button. You need to add the title for this widget too. It allows you to change business photo for your brand or service.

Save business reviews

You can expand the settings one by one to display Yelp reviews on your site. By default, Yelp can only return 3 reviews, but you can check the setting to try and get more than 3 reviews. It also allows you to enable Google rich snippets, pagination, sorting and more.

Yelp review settings

In display settings, you can hide business photo and user avatars, change theme to dark, add character limit to reviews and manage the widget theme.

The advance options allow you to open links in new window, use no follow links in reviews, lazy load images, and more.

Yelp display and advance settings

Once you are done, make sure to save the widget settings and go to your website to see your Yelp business reviews in the sidebar.

Yelp reviews in WordPress sidebar widget

The plugin also allows you to create shortcodes for Yelp reviews and display them anywhere on your site. For this, you need the Yelp Reviews Pro plugin.

Once activated, simply go to the Settings » Yelp Reviews Pro page and go to the Shortcode Builder tab. Like the Yelp reviews widget, you can search the for a brand or service with its name and location.

Create shortcodes for Yelp reviews

You need to select your business from the list and save the reviews. The other 3 sections to manage Yelp reviews are similar to the settings in the Yelp reviews widget.

After you save these reviews, it will automatically update the shortcode box on the right side of the screen.

Copy Yelp reviews shortcode

Next, you need to go ahead and paste this shortcode in WordPress blog post or page. After that head over to your site to see the Yelp reviews in action.

Display Yelp reviews in WordPress posts and pages

We hope this article helped you learn how to display Yelp reviews on your WordPress site. You may also want to see our expert pick of the best product review plugins for WordPress.

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 Display Yelp Reviews on your WordPress Site appeared first on WPBeginner.

How to Allow Users to Upload Images in WordPress Comments

Images and comments are both powerful tools to boost user engagement on your site. This is one of the reasons why Facebook allow users to upload images with their comments. What if we tell you that you can add the same functionality to WordPress comments?… Read More »

The post How to Allow Users to Upload Images in WordPress Comments appeared first on WPBeginner.

Images and comments are both powerful tools to boost user engagement on your site. This is one of the reasons why Facebook allow users to upload images with their comments. What if we tell you that you can add the same functionality to WordPress comments? Depending on your site’s niche and target audience, this can significantly increase user engagement on your site. In this article, we will show you how to allow users to upload images in WordPress comments.

How to Allow Users to Upload Images in WordPress

Allow Users to Upload Images in WordPress Comments

First thing you need to do is install and activate the Comment Attachment plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to go to Settings » Discussion page in your WordPress admin area and scroll down to Comment Attachment section.

Comment Settings

On this page, you can manage the settings to display image attachment field in the comments section of your WordPress posts and pages. These settings include the position of comment field, field title, required option, file types, image attachment size, and more.

You can also allow your users to attach a document, PDF, powerpoint presentation, excel spreadsheet, and more. Simply check the file type options in the comment attachment settings.

Allowed File Types

Once you are done, click on the Save Changes button to store your settings.

After that head over to any post page on your WordPress site, and you will see an image upload field in the comments area like the screenshot below:

Add Attachment in Comment

All images uploaded by users are stored in your WordPress media library. If you want to delete an image uploaded by a user, then you need to go to Media » Library, locate the image, and then delete it.

Note: This will delete the image from the comment without affecting the comment text.

It will be good to add some comment posting guidelines on your site to let users know what kind of attachments they can upload. You can check WPBeginner’s comment policy page for an example. You can then add a link to your comment policy text in the WordPress comment form.

Due to the nature of images, you may want to moderate all comments before they appear on your site. You can do this by enabling comment moderation and notify users when their comment is approved on your site.

You can also display the total number of comments to engage more users on the WordPress posts or pages.

To further boost media capabilities in your comments, you can enable oEmbed support for comments in WordPress. This will allow your users to embed YouTube videos, tweets, flickr photos, and more alongside with the images they upload.

We hope this article helped you learn how to allow users to upload images in WordPress comments. You may also want to see our tips on getting more comments on your WordPress blog posts .

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 Allow Users to Upload Images in WordPress Comments appeared first on WPBeginner.

How to Create an Event Registration Page in WordPress

Do you want to add an event registration page on your WordPress site? Recently one of our readers asked if they can allow users to sign up and buy tickets online for their events. In this article, we will show you how to easily create… Read More »

The post How to Create an Event Registration Page in WordPress appeared first on WPBeginner.

Do you want to add an event registration page on your WordPress site? Recently one of our readers asked if they can allow users to sign up and buy tickets online for their events. In this article, we will show you how to easily create an event registration page in WordPress and sell tickets online.

Creating an event registration page in WordPress

Why Create an Event Registration Page in WordPress?

There are plenty of third-party event registration and ticketing tools available in the market. You can also add Facebook events to your WordPress site.

However, many third-party event registration and ticketing services will charge a small fee for each ticket you sell. This quickly adds up, and you could end up paying a lot more than expected.

You will have limited options to promote your event on social media and even on your own website. Some event management services will insist on displaying their branding in your event emails, widgets, and tickets.

You can avoid some of these issues by creating your own event registration page in WordPress. This will allow you to collect online payments directly, store attendee information on your website, and use your own brand name when promoting the event.

That being said, let’s take a look at how to easily create an event registration page in WordPress.

Creating an Event Registration Page in WordPress

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

WPForms is a paid plugin, and you will need at least their PRO plan to access the PayPal add-on, which we will be using in this tutorial.

Upon activation, you need to visit the WPForms page in your WordPress admin area and click on the Add New button.

Add New Form

On the form builder, first you need to enter a title for your event registration form. Below that, you will see a list of ready-to-use form templates that you can select. Click on the Billing / Order Form template to continue.

New Event Registration Form

This template will set up a basic online order form asking users for their information like name, email, phone, address, available items, and more.

You can point and click on any field to edit or delete it. You can also add new form fields from the column on your left.

Billing / Order form template

To add tickets, click on the available items field and change it to attendees or tickets.

Add Tickets / Attendees Details

Your users will see the calculated price in the Total Amount field. Next, you need to set up the payment method.

Let’s go ahead and connect your event registration form to a payment service provider.

You need to click on the Payments tab in the left column and then click on the ‘Addons page’ link.

Note: You can also visit the addons page from your WordPress admin area by going to WPForms » Addons.

Install Payment Addon Service

This will take you to the addons page. WPForms comes with addons for PayPal and Stripe. You can install either or both of them.

Note: In order to use Stripe, your website must have HTTPS / SSL enabled.

Click on the install button below the addon and then click on the activate button.

Once activated, you need to go back to Payments section to configure payment services on your form. Select your payment service and enable it.

You need to add the details like PayPal email address, mode, payment type, cancel URL, and more.

Edit Payment Service

If you are using Stripe, then you will need to enter the API keys. For detailed instructions see how to use the Stripe addon with WPForms.

You will also need to enter a credit card field to your form before you can set up Stripe. Simply switch to the ‘Fields’ section and add a credit card field.

Add a credit card field to the form

After setting up payments, let’s set up notification emails for both you and your users.

Simply go to Settings » Notifications and click on the Add New Notification button.

Add New Email Notification

In the Send To Email Address section, you need to select user’s email from Smart Tags to send the ticket receipt.

Add Users Email

Now you need to scroll down to the Message section and add your custom message with the fields that you created for the registration from using Smart Tags.

Custom Message for Tickets

Once you are done, you can save your changes and close the form builder.

You can display this form on any page on your WordPress site. Let’s create a new event registration page in WordPress to display the form.

On the page edit screen, you will see a new button labeled ‘Add Form’ just above the editor.

Add form button

Clicking on it will bring up a popup where you will be able to select and insert the event registration form you created earlier.

Insert event registration form

The plugin will now add the required shortcode to your page editor. You can save your changes and click on the preview to see your event registration page in action.

Event registration form preview

We hope this article helped you learn how to create an event registration page in WordPress. You may also want to see our list of the best WordPress booking plugins.

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 an Event Registration Page in WordPress appeared first on WPBeginner.