How to add support for a Custom Post Type on Yet Another Related Posts Plugin (YARPP)

One of the most popular related posts plugins for WordPress is YARPP with more than 200.000 active installations. It says it supports Custom Post Types (CPT), but not out of the box. You’ll need to do some extra things in order for your CPT to be supported.

If you have access to the functions that register the CPT, then the solution is simple. You’ll just need to include the argument ‘yarpp_support’ and set it to true when you register it.

https://gist.github.com/carmoreira/2d59b7aa2393d133e55473c0bcd269d3

If you don’t have access to the code where the CPT if registered, maybe because it’s a third-party plugin that is creating it, you can still try to manipulate the arguments used to create that CPT and add the ‘yarpp_support’ argument. You can use the code below:

https://gist.github.com/carmoreira/a377c38521bfe142189f7f0690a39a12

You should replace ‘my_custom_post_type’ with the identifier you need and add the code to the functions.php of a child theme or your own plugin. This seems to work well on my projects.

Hope this helps someone!

Interactive Maps in Elementor Page Builder

Elementor Page builder is one of the most popular WordPress plugins of it’s type. It has tons of widgets available, but you might need something different for your project. If you need to create an interactive map of the world or of any country, but need something different than Google Maps, you might want to try the Interactive World Maps plugin. These are some examples of maps created with this plugin.

All Countries Placeholder
All Countries
Map Markers Placeholder
Map Markers
US Map Placeholder
US Map

The plugin is fully compatible with the Elementor Page Builder. After you create your map you can easily add it to your page using the Shortcode widget. Below we’ll explain how you can do this with some very simple steps.

1) Install the Plugin

The plugin is for sale exclusively on Envato Market for only $21 with 6 months support included and all future updates. Once you have the plugin zip file, you can install through the Plugins > Add New > Upload interface in your administration. Once you have the plugin installed you’ll see the new ‘Interactive Maps’ menu entry in your administration menu.

2) Build your Map

The plugin comes with more than 300 maps, where you can colour regions or add markers. Both regions and markers can be interactive, displaying tooltips on hover and perform actions on click, like opening a new page or display information on a lightbox or next to the map. Follow the onscreen instructions and create the map to fit your needs. There’s a video tutorial available for beginners also.

Once you have your map saved, you’ll have a unique shortcode. That shortcode will be used to add the map to your page.

3) Add the Map to your Elementor page

The current version of the plugin will not add a new map widget to Elementor builder. However you can use the map shortcode on the existing Shortcode Widget. Just add the shortcode widget to the place on the page where you want the map to display and add the map shortcode there. The preview will not display the map immediately, but once you save your page and preview it, you should see your map.

And that’s it. You can create as many maps as you want and add them into different shortcode widgets. You can also add the map shortcode together with normal text in a text editor, but the Elementor preview will not display the map placeholder, just the shortcode itself, but once published, the map will also display.

If you have any question about Elementor or the Interactive World Maps plugin leave a comment and I’ll try my best to help.

Get Interactive World Maps plugin for only $21

One time fee. All future updates included and 6 months support.

How to change WooCommerce Products per Page with Divi

For a recent project I needed to change the default number of products displaying in the WooCommerce shop page. Usually this is set in the ‘Settings > Reading > Blog pages show at most’ option. So I was confused when I changed the value there and there was no change in the shop page. I searched within the WooCommerce settings, the customizer, searched for plugins and I found nothing, except this code snippet from the WooCommerce official documentation, but I found it strange that such small feature wouldn’t exist and we would need to add custom code.

Turns out I forgot to search in the most obvious place: the settings page for Divi itself. Here’s where you can find the option to change the number of products per page on the shop:

Divi Theme Options > General > Number of Products displayed on WooCommerce archive pages

Hopefully this will be useful to someone who will need to do the same and doesn’t find the option straight away.

The Best WordPress Plugins for Travel Blogger Websites

If you’re starting a travel blog with WordPress and are looking to find the best plugins to help you succeed, this list might be helpful. We visited the websites of the most popular and high ranking travel blogs and checked what plugins they were using and compared them with alternatives to come up with the list of the best essential plugins for travel blogger websites. Depending on the strategy you want to apply for your website, some plugins might be more useful than others, but usually for travel websites, you want to reach  a vast audience, engage them with useful content about the different destinations you write about and hopefully encourage your them to share that content. Some travel bloggers might rely on affiliate marketing other on selling their own products and you’ll see plugins on this list that will help either cases.

We will not include plugins that have a more vast usage and application and are less specific to travel blogging. We still recommend a lot of these plugins, like Yoast SEO, WP Super Cache and Google Analytics Dashboard for WP, since they are also essential, but we won’t include them. We’ll write about plugins that will be particularly useful for travel websites.

This list includes what we consider to be the best, either free or premium plugins.

Social Warfare

Social Warfare is the ultimate social sharing plugin for WordPress. It’s not just another sharing buttons plugin, it contains a lot more features that will help you in the social media fighting ground. Amazing social sharing icons and sharing count with tons of display options, content protection, share count recovery options, Google Analytics Integration and much more. It’s a premium plugin, but once you have this plugin, you won’t need any other social sharing plugin.

A lot of the big players are using this one:

Interactive World Maps

Used by most of the top travel bloggers, the Interactive World Maps plugin helps you display simple maps that can help your users understand where you’ve been and where you’re going to for example. You can use it to showcase how much you’ve traveled or use it to redirect your users to content about a particular country or city. You can also display maps of individual countries to complement your posts and pages. It’s a premium plugin, but your website won’t be complete without it.

Some examples of top bloggers using it:

Mailchimp

Having your visitors emails is vary valuable. It’s a lead, a way to bring them back to your website in the future, with a carefully crafted newsletter for example. Mailchimp is an email marketing service that will help you manage your emails and provide you with online marketing tools. Integrating your mailchimp account with WordPress is easy with this plugin. It will provide you sign-up forms which are well designed, user-friendly and optimized for all platforms.

Who’s using it?

Ninja Popups

Getting your users email is great, but what’s the best way to do it? Ninja Popups plugin will allow you to build non intrusive popups and customize them so they fit right in your website. Compatible with MailChimp and other platforms, it’s one of the most popular pop up builder plugins for WordPress. Also great to incorporate contact forms, information for users, social sharing tools and anything else that would require a popup.

Using it:

Amazon Associates Link Builder

If you want to monetize your website with amazon affiliate marketing and are part of the Amazon Associates program, then Amazon Associates Link Builder plugin is what you’ll need. It will allow you to quickly find the products you want to showcase and build the affiliate links easily.

Some bloggers using it:

Yet Another Related Posts Plugin

Once your users land on an article of yours, you’ll want to keep them in your site by displaying related articules that might be interesting for them. Yet another related posts plugin is one of the plugins that will allow you to display related posts very easily. It’s not the only plugin used by the many travel blogger sites we checked, but it’s the best.

Using it:

Instagram Feed

If you’re sharing your travel photos on instagram, then Instagram Feed plugin is a mandatory plugin. It’s a free plugin with simple but powerful features. You can easily link to your instagram account and display your latest pictures on your website. Engage your audience with your pictures and potentially gain more followers on instagram.

Examples:

Slider Revolution

You want to cause an impression on your visitors and Slider Revolution is the best plugin to do it. Create amazing custom sliders, with tons of great options and responsive layouts. Use the power of beautiful images in your favor and place a great slider in your homepage or complement your blog posts with one. This plugin gained notorious popularity in the WordPress community and has raving reviews. It’s a premium plugin, but it’s worth every penny.

Check out some of the slides built using this plugin on these sites:

Disqus


Disqus is a blog comment hosting service for web sites and online communities. The Disqus plugin will allow you to have Disqus hosted comments on your website, that will get better indexed by search engines and are proven to increase engagement by users, due to it’s many features and social networks integration. Apart from that, it’s also amazing at preventing spam comments.

Who’s using it: