Categories
Website

How to Exclude Specific Categories from WordPress RSS Feed

Do you want to exclude specific categories from RSS feed on your WordPress site? Many site owners use some categories for content that they don’t want to appear in the RSS feed of their site. In this article, we will show you how to exclude specific categories from WordPress RSS feed.

exclude category exclude specific category RSS feed feed

Method 1: Exclude Specific Categories from WordPress RSS Feed Using Plugin

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

Upon activation you need to visit Settings » Category Exclusion to configure plugin settings.

Category excluder

The settings page will display all categories on your WordPress blog with options to hide them from front page, RSS feeds, archive pages, and search results.

Simply select the exclude from feed box next to the categories that you want to exclude from your RSS feed.

Don’t forget to click on update button to save your settings.

That’s all, posts filed under your selected categories will disappear from your WordPress RSS feed.

Method 2: Manually Exclude Specific Categories from WordPress RSS Feed

This method requires you to paste code in your WordPress files. You can use this method if you are comfortable with pasting code snippets from web into WordPress.

You need to add this code to your theme’s functions.php file or a site-specific plugin.

function exclude_category($query) {
	if ( $query->is_feed ) {
		$query->set('cat', '-5, -2, -3');
	}
return $query;
}
add_filter('pre_get_posts', 'exclude_category');

This code simply excludes categories that match the given IDs. Simply replace the category IDs in the code with the IDs of categories that you want to exclude.

See our guide on how to find category IDs in WordPress.

If you just want to exclude a single category, then change the code like this:

function exclude_category($query) {
	if ( $query->is_feed ) {
		$query->set('cat', '-15');
	}
return $query;
}
add_filter('pre_get_posts', 'exclude_category');

Replace -15 with the ID of category that you want to exclude from RSS feed.

We hope this article helped you learn how to exclude specific categories from WordPress RSS feed. You may also want to see our list of 10 most wanted category hacks and 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.



Source link

Categories
Website

How to Automatically Add Watermark to Images in WordPress

Do you want to add watermark to your images in WordPress? Many photographers and artists use watermark to prevent misuse of their images. In this article, we will show you how to automatically add watermark to images in WordPress.

Watermark images in WordPress

Method 1: Adding Watermark to Images in WordPress Using Envira Gallery

Envira Gallery is the best WordPress gallery plugin in the market. It allows you to create beautiful and mobile friendly image galleries into your WordPress site.

Envira comes with a watermarking addon that makes it easy to add watermark to your WordPress images.

WPBeginner readers can use the Envira Gallery coupon code: WPB25 to get 25% Off on their purchase.

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

Upon activation, you need to visit Envira Gallery » Settings page to enter your license key.

Envira Gallery license key

You can get this key from your account dashboard on Envira Gallery website.

After verifying your license key, you can head over to Envira Gallery » Addons page. Scroll down or search to locate the Watermarking Addon, and then install and activate it.

Watermarking addon

You are now ready to add your images into responsive galleries with watermark. Simply go to Envira Gallery » Add New to create your first image gallery.

Scroll down on the page and you will notice the watermarking tab. Clicking on it will show you settings for watermarking.

You need to click on the checkbox next to ‘Enabled’ to see more options.

Settings for watermarking addon in Envira Gallery

After that click on ‘Choose Watermark’ button and upload an image that you want to use as watermark. You can also change position and margin of the watermark image.

After adding a watermark image, you can now move on to adding images into this gallery. Scroll up, and then click on ‘Select files from computer’ or ‘Select files from other sources’ button.

Creating a new Envira Gallery

For detailed instructions, see our guide on how to easily create responsive WordPress image galleries with Envira.

After adding a few images to your gallery, you can publish it.

Now you can add this image gallery into any WordPress post or page. Simply edit a post or page and then click on the ‘Add Gallery’ button.

Add gallery to a post or page

Clicking on the button will bring up a popup where you need to select the image gallery you just created and then click on the insert button.

You will notice the Envira Gallery shortcode appear in the post editor. You can now save or publish your post/page.

Go ahead and visit your website to see the watermarked image gallery in action.

An image gallery in WordPress with watermarked images

Method 2: Adding Watermark to Images in WordPress Using Easy Watermark

First thing you need to do is install and activate the Easy Watermark 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 » Easy Watermark page to configure plugin settings.

Easy Watermark plugin settings

The settings page is divided into three tabs. The first option on the General settings tab is to automatically add watermark to all image uploads. You can also choose which image file types to auto watermark.

Next option is backup, you should check this if you want to save original uploads on your server too. You can also select which image sizes to add watermark to.

You also need to select watermark type. The plugin allows you to add text, image, or both to be used as watermark.

Review rest of the options on the page, and then click on save changes button to store your settings.

Now you can click on the Image tab on the plugin’s settings page. This is where you can upload the image you want to be used as watermark.

Upload watermark image

If you selected image+text or just the text as your watermark type, then you need to click on the text tab.

Here you can add the text you want to be displayed as watermark. You can select font, font size, watermark alignment, transparency, and color.

Watermark text

Don’t forget to click on the save changes button to store your settings.

You can now add watermark to images you add to your WordPress site.

Adding Watermark to Your Old Images in WordPress

To add watermark on the old images, you need to go to Media » Easy Watermark click on start button under Bulk Watermark section.

Add watermark to old images

Important: Please note that this process is irreversible. We strongly urge you to backup your WordPress site particularly your media uploads directory.

If you selected the option to keep a backup of your original uploads, then you can also use the restore option on this page, which will remove watermark from all images that have them.

Adding Watermark to Images Manually

In case you don’t want to automatically add watermark to all uploaded images, Easy Watermark gives you the manual option as well.

First thing you need to do is to go to Settings » Easy Watermark and make sure that the checkbox next to Automatically add watermark to images is unchecked.

After that you can go to Media » Library. You will need to switch to the list view to see the Add Watermark option next to each image in the library.

Manually add watermark

We hope this article helped you add you add watermark to images in WordPress. If you come across any issues, don’t forget to check our guide on common WordPress image issues and how to fix them.

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.



Source link

Categories
Website

WPBeginner Exclusive – Bluehost $2.95 / month + Free Domain (Limited Time Deal)

Looking to start a new blog, switch hosting providers, or transfer from WordPress.com? Let us make it easy for you. Our friends over at Bluehost has agreed to offer all WPBeginner users a limited time deal: 60% discount and a free domain name.

Bluehost 2.95 Special

This super exclusive offer expires on July 26th, 2016 (11:59 PM MST) and is only being offered through WPBeginner.

You can start your blog for as low as $2.95 / month which is their lowest price ever → Claim this Offer ←

Why Bluehost? Because they are an official WordPress recommended hosting provider.

Bluehost is one of the oldest web hosting companies on the web (started in 1996 – older than Google). They are the largest brand name in WordPress hosting and host millions of websites including several of our own.

Full Disclosure: When you purchase using our referral link, at no additional cost to you, we will receive a small commission. We would get this referral fee for recommending just about any other company, but we only recommend products that we personally use and/or believe will add value to our readers.

Who is this offer great for?

Well everyone, but in particular: those starting a new blog or switching from WordPress.com to a self-hosted WordPress.org blog.

We have written a full article on WordPress.com vs WordPress.org, but here’s the summary of why you should use self-hosted WordPress:

  • You get a free domain name (only if you go with Bluehost)
  • You have access to more themes and design customization options.
  • You can install plugins.
  • You can run your own ads without any restrictions.
  • You can create your own store.
  • You own and control your content (whereas on WordPress.com you are restricted to their Terms of Service, and they often show ads to your users unless you pay them not to).

Not convinced yet?

Bonus offer: Our expert team will help you get started. Bluehost promised us that if you signup using our referral link, then they will compensate us to do the blog setup for you. We will even migrate your WordPress.com blog over to self-hosted WordPress. Here’s how to claim this offer:

1. Signup using our referral link

2. Fill out the form on this page and that’s it!

Who Shouldn’t Use this Offer?

This offer is not good for everyone. Our goal at WPBeginner is to guide the users to make the best decision regardless of whether we get paid or not.

The biggest catch here is the term “unlimited space and bandwidth”, and we want to explain that.

The way these shared hosting companies are able to offer such affordable prices is by allowing multiple users to share a large server. By having multiple sites on the same server, it allows them to reduce costs for everyone.

Think of the savings as riding a bus vs your own car.

Having that said, there is no such thing as unlimited. While it says unlimited, you still have usage restrictions. If your site starts to take up substantial server load, then they will politely force you to upgrade. If they don’t take this action, then it has negative effects on the overall performance of every other site sharing the same server.

As conventional wisdom goes, your overhead costs will grow with your business!

If your website is getting millions of pageviews per month, then this $2.95 hosting plan won’t work for you. You should look into getting a VPS or even managed WordPress hosting.

However if you are just starting out or have a small business website, then there is no reason for you to pay hundreds of dollars each month for resources you won’t use. You should absolutely definitely take advantage of this shared hosting offer.

→ Signup with Bluehost Now ← – Lowest prices ever + a free domain name.



Source link

Categories
Website

How to Add Security Questions to WordPress Login Screen

Most financial institutions and large companies require you to add security questions on your account for identity verification. Recently one of our readers asked if it was possible to add security questions in WordPress to add an additional security layer. In this article, we will show you how to add security questions to WordPress login, registration, and reset password page.

Adding security questions to WordPress login page

Why Add Security Questions to Login & Registration Forms in WordPress?

There are many ways to protect WordPress admin area from unauthorized access. However, if you run a multi-user or WordPress membership site, then it becomes difficult to choose between security and user experience.

Adding a security question to your WordPress site’s login screen acts like an additional password. Your users can choose a question from a list of random questions and then add an answer to that question.

This makes it difficult for hackers to enter a website using compromised password or email address.

Having said that, let’s see how you can easily add security questions to your WordPress site.

Video Tutorial

Subscribe to WPBeginner

If you don’t like the video or need more instructions, then continue reading.

Adding Security Questions to Improve WordPress Login Security

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

Upon activation, you need to visit Settings » Security Questions page to configure the plugin settings.

Edit, remove, or add security questions

You will see a list of security questions already setup. You can add your own security questions by clicking on the “Add more” button at the bottom. Alternatively you can also edit or remove the existing questions.

At the bottom of the settings pages, you will find the options to enable security questions on login, registration, and lost password pages.

Enable security questions on login, registration, and lost password pages

Don’t forget to click on the save settings button to store your changes.

That’s all. From now on all users on your site will be asked to select and answer their security question on the login page.

Login form with security question

Your WordPress site’s registered users can visit their Profile page to select a security question and add their answer to it.

Users can select a question and add answer on their profile edit page

Users who do not set a security question will still be able to login by just using their username/email and password.

If you enabled security questions on registration page, then new users will be able to select a security question during registration.

WordPress user registration with security question

Enabling security question on forgot password page will ask users to answer their security question to get the password reset email.

If a user’s email address is compromised, then this would stop someone from gaining access by resetting password.

Forgot password

At WPBeginner, we use Sucuri to protect our website from malicious attacks and login attempts. Sucuri is a web security company that offers website monitoring and firewall services.

See how Sucuri helped us block 450,000 WordPress attacks in 3 months.

We hope this article helped you learn how to add security questions to your WordPress login screen. You may also want to see our guide on how and why you should limit login attempts 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.



Source link

Categories
Website

How to Properly Add Your Business Address in WordPress

Do you want to display your business address in WordPress? Usually you can just type the address on your contact page or in a sidebar widget. But this approach is not search engine optimized. In this article, we will show you how to properly add your business address in WordPress with a map and other useful information.

Adding a business address in WordPress

When and Why You Need Business Address in WordPress

Usually most business websites add their address on their contact page. They use a contact form plugin like WPForms to add a contact form.

This works fine for most websites and online business. However when you have a physical business, its beneficial if you add your address in a search engine optimized format.

We recommend adding a contact form as well as other informations like maps, directions, phone number, and business hours in a SEO friendly format.

Let’s see how you can add your business address in WordPress in a SEO friendly way.

Video Tutorial

Subscribe to WPBeginner

If you don’t like the video or need more instructions, then continue reading.

Adding a Business Address in WordPress

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

Upon activation, the plugin will add a new menu item labeled Business Profile to your WordPress admin bar. Clicking on it will take you to plugin’s settings page.

Business Profile plugin settings page

First you need to select the Schema type. Schema.org is the standard micro-data vocabulary used by search engines to show rich snippets and additional information with search results.

Select a schema type that best describes your business.

Under the contact information section, you need to provide the name and address of your business. After entering the address, click on ‘Retrieve map coordinates’ link. The plugin will automatically fetch map coordinates for the address you entered.

Next, you need to provide a Google Maps API key. Generating this key is easy, click on the Get an API key link.

API key link

This will take you to the Google Developer Console website. You need to locate ‘Get a key’ button and click on it.

Get API Key button

On the next screen, simply click on the continue button to create a new project. You will have to wait for a few seconds as your new project is created.

Create a new Google Maps API project

Once your project is ready, you will be redirected to setup credentials. Enter a name for your project and the domains where this API key will be used. Use asteriks to white label your entire domain. For example,

*.example.com/*

Make sure to replace example.com with your own domain name.

API Credentials

After that click on the create button to continue. Your API Key will now be displayed in a popup.

Copy your API Key

You need to copy your API key and paste it on the plugin’s settings page.

Contact info section

You can now continue entering other contact information on plugin’s settings page. You can add a phone number, and select a page where users can contact you.

This could be a page with your contact form (See our step by step guide on how to create a contact form in WordPress).

Under the schedule section, you can enter your business hours. Simply click on add business hours button and then select days and hours you are open for business.

Enter your business hours

If you want to add multiple locations, then check the box next to multiple locations option. Click on the ‘Save Changes’ button to store your plugin settings.

Now that you are done creating your business profile, it is time to add it on your website.

Showing Business Address on Your Website

Start by creating a new page in WordPress or edit an existing one. You need to add this shortcode inside post editor where you want to display your business profile.

[contact-card]

Make sure to save your page and publish it.

That’s all, you can now visit the page to see your full business address information. It will have your business address, a link to get directions, phone number, and a map with your business location highlighted.

Business address page with contact information and map

You can also display your business address in a sidebar. To do that, go to Appearance » Widgets page, and you will see a new ‘Contact Card’ widget under the list of available widgets.

Simply add the contact card widget to a sidebar (See how to add and use widgets in WordPress).

The contact card widget allows you to choose which information you want to display in your sidebar. Simply check options you want to be displayed and then click on the save button.

Showing your business address in a sidebar widget

Adding Multiple Locations for Business Address

If you enabled the multiple locations option in plugin’s settings, then you can manage multiple business locations. Go to Locations » All Locations page and then click on Add New button.

Adding new business locations

You will now see the Add new location page which looks a lot like a post or page edit screen. That’s because your location is stored as a custom post type.

Edit location

You need to add your business name in the title and use the post editor to provide any description that you may want to add.

Next, select the Schema type and enter your contact details just like you did on the plugin’s settings page. You will also find a meta box to add your business hours.

Once you are done, you can publish your location.

All your locations can be seen on the custom post type’s archive page which will be found at:

http://www.example.com/location

Replace example.com with your own domain name.

Each location will also have its own permalink URL. You can go to Locations » All Locations and click on ‘View’ link to find a location’s page.

Location permalink

You can also manually add a particular location to a post or page using a shortcode like this:

[contact-card location=2]

Replace 2 with the location’s post id. See our guide on how to find post id in WordPress.

That’s all, we hope this guide helped you learn how to properly add your business address in WordPress. You may also want to see our list of 24 must have 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.



Source link