WPBeginner http://www.wpbeginner.com Beginner's Guide for WordPress Mon, 25 May 2015 13:25:19 +0000 en-US hourly 1 http://wordpress.org/?v=4.2.2 How to Cloak Affiliate Links on Your WordPress Site http://www.wpbeginner.com/wp-tutorials/how-to-cloak-affiliate-links-on-your-wordpress-site/ http://www.wpbeginner.com/wp-tutorials/how-to-cloak-affiliate-links-on-your-wordpress-site/#respond Mon, 25 May 2015 13:25:19 +0000 http://www.wpbeginner.com/?p=27907 Do you want to cloak affiliate links on your WordPress site? Not sure what does link cloaking means? In this article, we will explain what is link cloaking, and how you can cloak affiliate links in WordPress. What is Link Cloaking and When do you… Read More »

To leave a comment please visit How to Cloak Affiliate Links on Your WordPress Site on WPBeginner.

]]>
Do you want to cloak affiliate links on your WordPress site? Not sure what does link cloaking means? In this article, we will explain what is link cloaking, and how you can cloak affiliate links in WordPress.

Link Cloaking

What is Link Cloaking and When do you need it?

Link cloaking is a technique used to make long affiliate links into a shorter and more branded link.

Often affiliate links are lengthy, hard to remember, and show your affiliate username or ID like this:

http://www.affiliatesite.com/products/?product_id=123&affiliate=123

Link cloaking allows you to shorten these lengthy ugly link into branded URLs like these:

http://www.yoursite.com/refer/productname

You can use anything as base URL. We use refer in our cloaked links on WPBeginner. Some other popular URL bases are out, go, recommends, etc.

If you are someone who uses affiliate links in your blogs to make money, then you should to cloak links. Many site owners cloak links to properly manage their affiliate links.

Link cloaking allows you to create easy to understand URLs for your outgoing affiliate links. It can also help you add an additional layer of click tracking to ensure you are getting paid for every sale you refer.

You can also protect your affiliate links from getting hijacked by using link cloaking. Lastly, cloaked links allow you to easily manage your affiliate links from your WordPress admin interface.

How to Cloak Affiliate Links in WordPress

Since affiliate marketing is an important source of income for many bloggers, there are many WordPress plugins available that allows you to cloak your affiliate links and easily manage them.

We have hand-picked some of the best WordPress link cloaking plugins for you.

You can use any one of these plugins to easily add your affiliate links into WordPress and cloak them to get maximum benefits.

1. ThirstyAffiliates

ThirstyAffiliates is one of the best affiliate link manager and link cloaking plugin for WordPress. It allows you to easily add your affiliate links in WordPress and manage them from one single dashboard.

You can insert your affiliate links in any WordPress posts or pages from the buttons on the post editor screen.

Another great feature is that you can automatically replace selected keywords with affiliate links. Aside from that you can choose the base URL, automatically nofollow links, A/B test your offers, geo-target your offers, get stats, and so much more.

We use ThirstyAffiliates on WPBeginner. See our guide on how to add affiliate links in WordPress using ThirstyAffiliates.

2. Pretty Link Lite

Pretty Link Lite

Pretty Link Lite is another WordPress link cloaking plugin. It allows you to easily manage your affiliate links. You can auto add nofollow tag to affiliate links, shorten links, and redirect them properly.

Pretty Link Lite also provides analytics with an easier way to purge older hits from your database. This ensures that these hit logs don’t take too much space on your database and backup files.

3. Easy Affiliate Links

Easy Affiliate Links settings

Easy Affiliate Links is an easy to use link cloaking plugin for affiliate marketers. It allows you to cloak links, add and manage all your affiliate links from a single dashboard.

Basically it has all the features that you would want from a link management plugin with a nicer and easier interface.

4. WP Wizard Cloak

WP Wizard Cloak

WP Wizard Cloak is another WordPress affiliate link management plugin. It comes with all the whistles and bells you would need from an affiliate link management tool.

It provides URL shortening and link cloaking with easy to use tools to add and manage your affiliate links in WordPress.

5. Links Auto Replacer

Link Auto Replacer

Links Auto Replacer is a bit different than most other plugins in the list. As the name suggests, its main use is to automatically add links for certain keywords. You can manage your links and add new links just like any other link management plugin.

6. WooCommerce Cloak Affiliate Links

WooCommerce Cloak Affiliate Links

As the name suggests, WooCommerce Cloak Affiliate Links plugin is for eCommerce sites built on WooCommerce platform.

This plugin cloaks all external links on a WooCommerce site automatically. You can choose a URL slug by visiting Settings » Permalinks page. You can also change the redirect type. But that’s about it, this plugin is not a link manager so you cannot use it to add or manage your affiliate links.

7. Affiliate Link Manager

Affiliate link manager

Affiliate Link Manager plugin takes a different approach for link cloaking. It does not add a URL base like most other plugins in the list. Instead it allows you to use a keyword as the URL slug for the cloaked link. In terms of features it is very limited, but it does the job. It also offers some basic stats for your cloaked link views.

We hope this article helped you learn how to cloak links on your WordPress site. You may also want to check out our list of the 10 best affiliate marketing tools 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.

To leave a comment please visit How to Cloak Affiliate Links on Your WordPress Site on WPBeginner.

]]>
http://www.wpbeginner.com/wp-tutorials/how-to-cloak-affiliate-links-on-your-wordpress-site/feed/ 0
How to Import and Export Custom Post Types in WordPress http://www.wpbeginner.com/wp-tutorials/how-to-exportimport-custom-post-types-in-wordpress/ http://www.wpbeginner.com/wp-tutorials/how-to-exportimport-custom-post-types-in-wordpress/#comments Fri, 22 May 2015 12:00:36 +0000 http://www.wpbeginner.com/?p=25834 It is extremely easy to move your WordPress site using a backup plugin. But what if you only wanted to move a custom post type? In this article, we will show you how to import and export custom post types in WordPress. We will also… Read More »

To leave a comment please visit How to Import and Export Custom Post Types in WordPress on WPBeginner.

]]>
It is extremely easy to move your WordPress site using a backup plugin. But what if you only wanted to move a custom post type? In this article, we will show you how to import and export custom post types in WordPress. We will also show you how to import any custom taxonomies associated with your post types.

There are two steps involved in exporting and importing a custom post type in WordPress. First step involves migrating the actual custom post type and taxonomies. The second step is to import the post type data.

Often custom post types in WordPress are associated with their own custom taxonomies. We will show you how to export/import your custom taxonomies along with your post type.

Migrate Custom Post Types

Exporting Custom Post Types and Taxonomies in WordPress

Some users prefer to create their custom post types and taxonomies by adding code in their theme’s functions.php file or a site-specific plugin. In that case, all you need to do is copy that code and paste it on the site where you want to import them.

However, in some cases you may not be able to locate the code. Don’t worry you can still create the same custom post type on the new site.

All you need to know is the post key value. This is the name used for the post type in your WordPress database. You can find it by simply visiting the post type in your WordPress admin area.

Getting the post type key

Once you have the post key, visit the site where you want to import the post type and use Custom Post Types UI plugin to create your custom post type.

Creating post type in CPT UI

You can also get custom taxonomy key by simply viewing the custom taxonomy in the admin area.

Getting taxonomy key in WordPress

Use CPT UI plugin to create the same taxonomy on the target site where you want to import the taxonomy.

Create Taxonomy in CPT UI plugin

Repeat the process for all custom post types and taxonomies that you want to import.

Bonus Tip: If you used the CPT UI plugin to create your post type, then you can also use it to migrate them. But this only works if the original custom post type was created using this plugin. Visit the Import / Export section in the plugin settings and follow onscreen instructions.

Custom Post Types & Taxonomies Created by Plugins

Many popular WordPress plugins use custom post types and taxonomies to handle custom content types. For example, Soliloquy uses them to create sliders, eCommere plugins use them to create products, etc.

If you want to keep using those plugins, then you don’t need to import CPTs. Simply install the plugin on the target site, and you will have the custom post types and taxonomies ready on your site.

Many such plugins come with their own import/export features but if a plugin does not have that feature you can still export the data.

Exporting / Importing Custom Post Type and Taxonomies Data in WordPress

WordPress comes with a powerful import/export tool which allows you to export and import WordPress data. Simply go to Tools » Export.

Exporting custom post type in an XML file using WordPress built in export tool

You will see all your post types listed there. Select the post types you want to export and press the Download Export File button.

WordPress will now prepare an XML export file and your browser will start downloading it.

Now switch to your target site where you want to import this data. Go to Tools » Import. You will see a number of options, click on WordPress.

WordPress import tool

This will bring up a popup asking you to install WordPress importer plugin. Click on the install button and then click on Activate Plugin & Run importer link.

Installing WordPress importer plugin

On the importer screen, you need to click on the choose file button and then select the XML file you downloaded earlier. Next, click on the upload file and export button.

Importing WordPress using XML export file

WordPress will now import your custom post type data. All the custom post types you selected earlier will be imported. WordPress will also automatically add terms to the custom taxonomies.

That’s all, we hope this article helped you import and export custom post types and taxonomies 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.

To leave a comment please visit How to Import and Export Custom Post Types in WordPress on WPBeginner.

]]>
http://www.wpbeginner.com/wp-tutorials/how-to-exportimport-custom-post-types-in-wordpress/feed/ 3
14 Best Featured Image Plugins and Tutorials for WordPress http://www.wpbeginner.com/plugins/14-best-featured-images-plugin-and-tools-for-wordpress/ http://www.wpbeginner.com/plugins/14-best-featured-images-plugin-and-tools-for-wordpress/#comments Wed, 30 Nov -0001 00:00:00 +0000 http://www.wpbeginner.com/?p=27911 Featured images play an important role in most modern WordPress themes. While you can find beautiful royalty free images to use on your WordPress site as featured images, there is a lot more you can do with featured images. In this article, we will show… Read More »

To leave a comment please visit 14 Best Featured Image Plugins and Tutorials for WordPress on WPBeginner.

]]>
Featured images play an important role in most modern WordPress themes. While you can find beautiful royalty free images to use on your WordPress site as featured images, there is a lot more you can do with featured images. In this article, we will show you some of the best featured image plugins and tools for WordPress.

1. Soliloquy

Soliloquy featured content slider

Soliloquy is the best WordPress slider plugin on the market. It comes with a featured content add-on that allows you to easily add featured content slider to any WordPress theme.

It automatically gets the featured image from your article and uses it as the slide with your post’s title and excerpt. See our tutorial on how to add featured content slider in WordPress for step by step instructions.

2. Quick Featured Images

Bulk edit featured images in WordPress

Quick Featured Images is a powerful WordPress plugin that lets you perform bulk editing actions on your featured images. You can replace, remove, or add featured images with bulk actions.

You can also set a default image to be used as featured image or instruct the plugin to automatically use the first image in a post as the featured image. Take a look at our tutorial on how to bulk edit featured images in WordPress for more detailed instructions.

3. Multiple Post Thumbnails

Multiple Featured Images

As the name suggests, this plugin allows you to add multiple featured images or post thumbnails in your WordPress posts. You will need to edit your theme files to display the secondary featured image.

See this tutorial on how to add multiple post thumbnails in WordPress for step by step instructions.

4. Require Featured Image

Require Featured Image

Many WordPress themes are designed in a way that your posts look strange without a featured image. Sometimes you or other authors on your site may forget to add featured image for a post.

This plugin simply stops authors on your site from publishing a post without a featured image. Take a look at how to require featured images for posts in WordPress for more instructions.

5. Featured Image Column

Featured image column

By default, WordPress does not tell you whether a post has featured image or not until you open the post in the post editor. This plugin simply adds a featured image column on your WordPress posts page.

It makes it easy for you to quickly see featured images set for posts. The plugin works for all post types, and you can exclude post types where you don’t want to display a featured image column. See our tutorial on how to add a featured image column in WordPress for details.

6. Default Featured Image

Default Featured Image

It is possible to display a default featured image in WordPress by adding code into your WordPress theme. However, many beginners don’t want to edit their theme. Default Featured Image plugin provides an easy way to do that.

Simply add a default featured image from WordPress media library. To learn more, take a look at our tutorial on how to set a default featured image in WordPress using a plugin.

7. Easy Add Thumbnail

Setting up featured images for old posts that do not have a featured image can be tricky. Easy Add Thumbnail plugin solves this problem by automatically setting up the first image in a post as featured image. Even if you or other authors on your site forget to set a featured image, this plugin will automatically set one for you.

For older posts, it sets a featured image when the post is viewed on the front-end. See our tutorial on how to add post attachment as featured image in WordPress.

8. Video Thumbnails

Video Thumbnails

If you are creating a video site with WordPress, then you may want to show video thumbnails as featured images for your posts. Video Thumbnails plugin automatically checks your posts for a YouTube, Vimeo, or DailyMotion video and then automatically sets video thumbnail as the featured image for the post.

See our guide on how to add thumbnails for YouTube videos in WordPress.

9. Featured Video Plus

Featured Video Plus

If you run a site where your main content is in video format, then you might want to set featured videos instead of featured images. Featured Videos Plugin allows you to easily add YouTube, Vimeo, or DailyMotion videos as featured videos.

The plugin will display your featured video in your WordPress theme where it displays featured images. See our tutorial on how to add featured video thumbnails in WordPress for more details.

10. Post Thumbnail Editor

Post Thumbnail Editor

Many WordPress themes automatically crop an image from the middle which ruins your featured image. Post Thumbnail Editor plugin allows you to edit featured images and crop them inside WordPress.

You can then use your cropped image as the featured image. See our tutorial on how to crop and edit WordPress post thumbnails for detailed instructions.

11. Default Fallback Featured Image in WordPress

An easier way to display a placeholder image for posts that do not have a featured image is by adding a default fallback featured image. Beginners can use the Default Featured Image plugin. But if you want to do it without installing a plugin, then here is what you need to do.

Simply upload your default image to your theme’s images folder and rename it to default-image.jpg. Now you will need to edit your theme files and in templates where it displays post thumbnail you will need to replace it with this code.

<?php if ( has_post_thumbnail() ) {
the_post_thumbnail();
} else { ?>
<img src="<?php bloginfo('template_directory'); ?>/images/default-image.jpg" alt="<?php the_title(); ?>" />
<?php } ?>

For a more detailed explanation check out our tutorial on how to set a default fallback image for WordPress post thumbnail.

12. Fallback Featured Image by Category

Fallback featured image based on category

One problem with setting up a single image as the default fallback featured image is that one image does not fit all posts. However, if you set a fallback featured image based on post’s category, then it can solve that problem.

First you would need to create your category images. Then upload all category images to WordPress using the default media uploader. This will allow WordPress to prepare image sizes used by your theme. Now you need to download all category images and their sizes to your computer.

Create a new folder and name it category-images. Upload this folder to /wp-content/uploads/ directory on your website using FTP. Finally, you need to add this code in your theme files where post thumbnails are displayed.

<?php if ( has_post_thumbnail() ) : ?>

<div class="entry-thumbnail">
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a>
</div>

<?php else : 
$category = get_the_category(); 
?>
<div class="entry-thumbnail">
<a href="<?php the_permalink(); ?>"><img src="<?php bloginfo('url'); ?>/wp-content/uploads/category-images/<?php echo $category[0]->category_nicename ; ?>-150x150.jpg" alt="<?php the_title(); ?>" /></a>
</div>

<?php endif; ?>

For more detailed explanation, take a look at our tutorial on how to set fallback featured image based on category in WordPress.

13. Post Thumbnails in WordPress RSS Feeds

By default, WordPress does not display featured images or post thumbnails in RSS feeds. However, this can be easily resolved by adding this simple code snippet in your theme’s functions.php file or a site-specific plugin.

function rss_post_thumbnail($content) {
global $post;
if(has_post_thumbnail($post->ID)) {
$content = '<p>' . get_the_post_thumbnail($post->ID) .
'</p>' . get_the_content();
}
return $content;
}
add_filter('the_excerpt_rss', 'rss_post_thumbnail');
add_filter('the_content_feed', 'rss_post_thumbnail');

Troubleshooting Featured Images and Post Thumbnail Issues in WordPress

Post thumbnails and featured images are handled by WordPress media library. Many issues related to the display of featured images in WordPress can be solved by solutions described in our troubleshooting guide on how to fix common image issues in WordPress. However, there are some specific issues that you may come across.

14. Regenerate Thumbnails

When you upload an image, WordPress automatically stores several copies of the same image in different sizes. Some of these sizes are defined by your theme and used as post thumbnail or featured image.

However, if you change your WordPress theme and the new theme uses a different size, then your older posts will show the wrong post thumbnail size.

Regenerate Thumbnails resolves this issue by generating new image sizes in WordPress. For detailed instructions take a look at our tutorial on how to regenerate thumbnails and create new image sizes in WordPress.

15. Fix Facebook Incorrect Thumbnail Issue in WordPress

Facebook incorrect thumbnail issue

One of the most common issues with featured images in WordPress is that sometimes Facebook does not pick up the right image when a post is shared. To resolve this issue, you can use Yoast’s WordPress SEO plugin’s social feature to explicitly tell Facebook which image to use as post thumbnail.

See our tutorial on how to fix Facebook incorrect thumbnail issue in WordPress.

We hope this article helped you find the best WordPress featured image plugins and tutorials. You may also want to take a look at 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.

To leave a comment please visit 14 Best Featured Image Plugins and Tutorials for WordPress on WPBeginner.

]]>
http://www.wpbeginner.com/plugins/14-best-featured-images-plugin-and-tools-for-wordpress/feed/ 4