Category Archives: WordPress Plugins

PWACommerce Review: Turn WooCommerce Into A Progressive Web App

If you’re running a WooCommerce store, you’re probably familiar with the stats around mobile shopping. If not, now’s a good time to do some research because more than 50% of eCommerce sales happen on mobile devices in 2018. That means the mobile version of your WooCommerce store needs to be as usable and conversion-friendly as ... Read morePWACommerce Review: Turn WooCommerce Into A Progressive Web App

The post PWACommerce Review: Turn WooCommerce Into A Progressive Web App appeared first on Learn WordPress with WPLift.

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 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.

ARForms WordPress Form Builder Plugin: The Ultimate Review

ARForms WordPress form builder plugin is a popular solution for building a range of fully responsive forms: a basic WordPress contact form, a workshop registration form, surveys, a job application form, and many more plain and complex types of forms. ARForms plugin has been around successfully for more than 4 years now. During this time, ... Read moreARForms WordPress Form Builder Plugin: The Ultimate Review

The post ARForms WordPress Form Builder Plugin: The Ultimate Review appeared first on Learn WordPress with WPLift.

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, find new product ideas, and provide better customer service.

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.

How to create a 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 are you to recommend our company/product/service to a friend or colleague?’

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

NPS survey form preview

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

The 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 surveys addon used in this tutorial.

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

Entering the WPForms license key

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. WPForms will now install and activate the addon.

Install surveys and polls addon

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

Head over to WPForms » Add New from the WordPress admin panel to create a new form. First, you need to provide a title for your form, and then select a form template.

WPForms offers lots of prebuilt form templates. You can simply search for an NPS form template from the search bar on the left.

For this tutorial, we will use the ‘NPS Survey Simple Form’ template.

Select a NPS survey form template

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.

Edit your NPS survey

If you click on the existing fields in the form, then you’ll see more options for customization.

For instance, you can change the text for each question and make it a required field.

Customize each NPS survey 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 that allows you to show or hide form fields based on the user’s answers to previous form fields.

You can use that feature to ask users for more feedback based on their answers. 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, select the question after the NPS scale. Next, switch to the ‘Smart Logic’ tab from the menu on your left and click the ‘Enable Conditional Logic’ toggle to enable the option.

Enable conditional logic

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.

WPForms will add the logic by default. However, you can edit the rating for which you’d like to show the survey question.

Similarly, you can set up conditional logic for the second question in the survey. By default, WPForms will set the condition for you and only show the field when the score is between 7 and 9.

Conditional logic for second question

You can edit these conditions according to your survey needs. However, if you’re just starting out, then we recommend using the default settings.

Now repeat the process for other questions in the form. Don’t forget to save your changes.

Adding Your Net Promoter Score Survey in WordPress

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

You can simply click the ‘Embed’ button inside the form builder to get started.

Click the embed button

Next, you’ll see 2 options to embed the NPS survey. You can create a new page or select an existing page.

We’ll choose the ‘Create New Page’ option for this tutorial.

Embed a form in page

After that, a popup window will open.

Simply enter a name for your new page and click the ‘Let’s Go’ button.

Enter name for your new page

Next, you should see your NPS survey form embedded in the content editor.

Alternatively, you can also use the WPForms block to add the NPS form anywhere on your website.

Add a WPForms block in wordpress

Simply click the ‘+’ button to add the WPForms block. After that, select your form from the dropdown menu.

You can now save your changes and visit your website to see the form in action.

NPS survey form preview

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

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 out the form, you can go ahead and check your score.

To do that, head over to WPForms » All Forms from your WordPress dashboard and click on the ‘Survey Result’ link under your Net Promoter Survey form.

View survey results in WPForms

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 into 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.

View NPS survey results

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 choose the best WordPress hosting and how to get free SSL certificate for your WordPress site.

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 first appeared 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.

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.

5 Best WordPress Front End Editor Plugins For Easy Content Creation

Ever wished that you could edit and write WordPress posts from the front end of your site? If so, you’re in luck because WordPress front end editor plugins can make that dream a reality. With them, you, and potentially other users at your site, can edit posts without ever needing to look at the back ... Read more5 Best WordPress Front End Editor Plugins For Easy Content Creation

The post 5 Best WordPress Front End Editor Plugins For Easy Content Creation appeared first on Learn WordPress with WPLift.

Oxygen 2.0 Review: A Visual Website Builder For WordPress

Back in June 2017, we reviewed a new visual website builder for WordPress called Oxygen. That was Oxygen 1.0. Now, the team at Soflyy (also behind WP All Import and WP Sandbox) is back with a big update – Oxygen 2.0. Like 1.0, Oxygen 2.0 helps you build your entire WordPress site using a visual ... Read moreOxygen 2.0 Review: A Visual Website Builder For WordPress

The post Oxygen 2.0 Review: A Visual Website Builder For WordPress appeared first on Learn WordPress with WPLift.

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 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 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.