How To Stop Comment Spam On Your WordPress Media Attachment Pages

Learn how to prevent spammers posting comments on your WordPress media file attachment pages …

How To Stop Comment Spam On Your WordPress Media Attachment Pages

How To Stop Comment Spam On Your WordPress Media Attachment PagesAre you getting comment spam on your WordPress media attachment pages?

This step-by-step tutorial will show you how to delete comment spam from your media attachments and how to prevent this from happening in the future.

Spammers can be quite devious when it comes to finding new ways to spam your site. Recently, while doing some administration work, I received an automated email notification message from one of my sites that a spam comment had been posted on a media file attachment page …

WordPress comment notification email

(WordPress comment notification email)

My first thought was “How did spammers get to my media files?”

After logging into the site, clicking on the ‘Comments’ menu and verifying that the spam comment had indeed been posted on a media file attachment page, my second thought was … “Oh no! I’ve uploaded a bunch of media files to this site, so I need to shut down hundreds of pages that spammers can target!”

WordPress Comments section

(WordPress Comments section)

I then checked some of the media file attachments pages on the site and saw that the “comments” section was enabled …

Media file attachment page - Comments enabled

(Media file attachment page – Comments enabled)

This was a new site that I had quickly set up and hadn’t finished fully configuring. To prevent further comment spam from being posted on the site through its media attachment pages, I now had to disable the ‘Discussions’ feature for all existing media items.

The tutorial below will show you how to delete comment spam posted to existing media file attachment pages and how to prevent new comment spam from being posted to these pages in the future

How To Delete Comment Spam On Existing Media File Attachment Pages

Useful Tip

Normally, the best way to prevent comment spam is to configure your discussion settings as shown in the tutorial below:

Also, unless certain plugins or features installed on your site require you to upload and use images from the WordPress Media Library, we recommend storing and serving all media used on your website from a media storage and delivery service like Amazon S3.

How To Delete Comment Spam On Existing Media File Attachment Pages Manually

To delete comment spam from existing media file attachment pages, log into your WordPress admin, go to the main menu in your dashboard and select Media > Library …

WordPress Menu: Media > Library

(WordPress Menu: Media > Library)

This brings you to the Media Library screen.

Media Library Grid View

The screenshot below shows items uploaded to your media library displayed as a grid.

To disable comments on media files in the grid view, click on a media element …

WordPress Media Library - Grid Layout

(WordPress Media Library – Grid Layout)

This brings you to the Attachment Details screen.  Click on the ‘View attachment page’ link …

Attachment Details - View attachment page

(Attachment Details – View attachment page)

We need to turn comments off on this page. To do this, click on ‘Edit Media’ in your WordPress admin toolbar

WordPress admin toolbar - Edit Media

(WordPress admin toolbar – Edit Media)

In the Edit Media screen, scroll down to the ‘Discussion’ section and untick the ‘Allow comments’ checkbox to disable comments for that media element’s page …

Edit Media - Discussions

(Edit Media – Discussions)

If you can’t see the Discussion section, scroll to the top of your page and click on the Screen Options tab …

Screen Options tab

(Screen Options tab)

Make sure that the ‘Discussion’ checkbox is enabled in the ‘Boxes’ section …

Screen Options - Boxes > Discussion

(Screen Options – Boxes > Discussion)

After disabling the ‘Allow comments’ checkbox, click Update to save your new settings …

Comments disabled. Update to save your settings

(Comments disabled. Update to save your settings)

Make sure that your media file has been updated. Comments are now disabled for your media attachment page.

Media file updated

(Media file updated)

Useful Tip

Note: If you have sharing features enabled for your media files through a plugin, you may also want to consider disabling sharing options on you media attachments pages (unless you need to leave these turned on) …

Consider disabling sharing features on media attachment pages

(Consider disabling sharing features on media attachment pages)

If using a plugin like Jetpack, for example, you can configure your sharing options to make sure that buttons don’t appear in places where they are not useful or required …

Jetpack Sharing Options

(Jetpack Sharing Options)

Media Library List View

A quicker way to edit your media files attachment pages is to display your media library in ‘List’ view. This way, you can go to the Edit Media screen directly by clicking on the ‘Edit’ link in the Quick Edit menu …

Media Library - Quick Edit > Edit

(Media Library – Quick Edit > Edit)

In the Edit Media screen, disable the ‘Allow comments’ checkbox in the Discussion section to disable comments, then resave the page to update your settings …

Edit Media screen - Disable comments in Discussion section

(Edit Media screen – Disable comments in Discussion section)

What If You Have Too Many Media Elements In Your Media Library … ?

If you have too many media elements uploaded to the WordPress Media Library, then disabling comments for each item manually can become a long and painful task …

What if you have too many media elements to update manually?

(What if you have too many media elements to update manually?)

In this case, we recommend using a plugin.

There are a number of plugins available for WordPress that allow you to disable comments on your site. Let’s take a look at one of these …

Disable Comments

WordPress plugin - Disable Comments

(WordPress plugin – Disable Comments)

Disable Comments is a free WordPress plugin that allows site administrators to disable comments globally on any post type (posts, pages, media attachments, etc.)

It also removes all comment-related fields from edit and quick-edit screens, the WordPress Dashboard, Widgets, the Admin Menu, and the Admin Bar. On multisite installations, it can be used to disable comments on your entire network.

Note: Don’t use this plugin if you want to selectively disable comments on individual posts. This plugin should be used if you don’t want comments at all on your site (or on certain post types), as the plugin settings cannot be overridden for individual posts.

To install the plugin, go to Plugins > Add Plugins and type in “disable comments” in the ‘Keyword’ field …

Plugins > Add Plugins

(Plugins > Add Plugins)

To use the ‘Disable Comments’ plugin, locate the item and click on the ‘Install Now’ button …

Add Plugins > Install Now

(Add Plugins > Install Now)

Click on ‘Activate’ …

Add Plugins > Activate

(Add Plugins > Activate)

After the plugin has been installed and activated, visit the configuration page to configure the plugin’s settings …

Plugin activated

(Plugin activated)

You can also access the plugin settings screen by going to Settings > Disable Comments.

Select the option that best suits your needs (e.g. disable comments throughout your site or only on selected post types – in this case ‘Media’) and click ‘Save Changes’ to update your settings …

Disable Comments screen

(Disable Comments screen)

After configuring and saving your settings, it’s time to check that everything is working as it should.

Go back to your Media Library section by selecting Media > Library from the main menu …

WordPress Menu - Media > Library

(WordPress Menu – Media > Library)

Select a media element that has not been updated yet, and right-click on ‘Edit’ to open the attachment page in a new browser tab …

Media Library - Edit

(Media Library – Edit)

The ‘Discussion’ and ‘Comments’ features should be disabled on the page …

Discussion feature disabled in media attachment page

(Discussion feature disabled in media attachment page)

These features should also have been disabled in the Screen Options tab …

Discussion feature disabled in Screen Options tab

(Discussion feature disabled in Screen Options tab)

And if you visit the media attachment page itself, you should not see the Comments field displayed (No Comments field = No Comment Spam!)

No Comments field = No Comment Spam!

(No Comment!)

Hopefully, this tutorial has helped you with stopping or preventing comment spam from being posted on your WordPress media attachment pages.

How To Stop Comment Spam On Your WordPress Media Attachment Pages

Using Post Categories To Improve WordPress SEO, User Navigation & Content Layout

Learn how to improve SEO, user navigation, and the content layout of your website or blog using post categories …

Using Post Categories To Improve WordPress SEO, User Navigation & Content Layout

WordPress post categories help keep your website and your content organized, boost your search engine rankings, and make it easier for site visitors to find what they are looking for.

WordPress post categories can also be used to improve your content layout.

In this tutorial, we’ll look at ways to improve SEO, user navigation, and the content layout of your website or blog using post categories.

Info

For a detailed step-by-step tutorial on WordPress post categories and how to set up and use categories in your posts, see the tutorial below:

Improve WordPress SEO, User Navigation & Content Layout With Post Categories

Categories are normally assigned to WordPress Posts, not Pages , so we’ll focus on posts in this tutorial (if you are unsure about the difference between posts and pages, see our tutorial on WordPress Posts Vs WordPress Pages).

Tip

If you need to add categories (and tags) to your WordPress pages, you can install a plugin like Post Tags and Categories For Pages.

Planning Your Categories

Even though WordPress is flexible enough to let you add new categories ‘on the fly,’ if you don’t plan your categories (and subcategories) properly, you will find it harder to keep your site organized and manageable as more content gets added to your site.

If you need help planning your website, your content, or your categories, see our website planning tutorials and our guide on keeping your website manageable and organized.

Improving WordPress SEO With Post Categories

The simplest and easiest way to improve WordPress SEO with post categories is to:

  1. Set up permalinks to include categories, and
  2. Install and configure an SEO plugin like Yoast SEO

Include Categories In Your Permalinks

Permalinks are a feature of WordPress that lets you set up search-engine friendly URLS (for more details, see our tutorial on how to set up and use WordPress permalinks).

When configuring your permalinks, all you need to do is make sure that post categories are included in the URLs …

Include categories in your permalinks

(Include categories in your permalinks)

This will automatically display search-engine friendly URLs with your categories (and subcategories) and post title keywords …

Search-engine friendly URLs with categories and subcategories included

(Search-engine friendly URLs with categories and subcategories included)

Use An SEO Plugin

Installing an SEO plugin like Yoast SEO will not only improve the SEO of your content, it also lets you optimize your post categories, category archive pages, etc. …

Optimize your post categories with an SEO plugin

(Optimize your post categories with an SEO plugin)

Adding category descriptions will display on some WordPress themes and can help to boost your content’s SEO …

Category descriptions can help boost your content's SEO

(Category descriptions can help boost your content’s SEO)

Once your permalinks and SEO plugin settings are configured for your post categories, WordPress will then automatically start delivering you the SEO benefits of search engine-friendly URLs and better content indexing.

Improving User Navigation With Post Categories

Post categories can be used to improve user navigation on your WordPress site in different pages and different sections of your site, on site maps, menus, sidebar widgets, archive pages, even different RSS feeds.

Here, for example, are some of the ways you can help users navigate your content using post categories …

Categories Widget

Adding a categories widget to your sidebar lets users find related content assigned to a category …

Add a categories widget to your sidebar

(Add a categories widget to your sidebar)

When users click on a category link on the categories widget, they are taken to a category archive page.

Category Archive Pages

Category archive pages group together all posts assigned to a category …

Category archive page

(Category archive page)

Breadcrumb Navigation Links

Breadcrumb navigation links display on some WordPress themes.  Displaying categories in breadcrumb navigation links not only helps to improve user navigation, but also SEO …

(Display categories in breadcrumb navigation links)

Clicking on the category section of the breadcrumb link will take users to the category archive page.

Info

If you use the Yoast SEO plugin and your WordPress theme does not support breadcrumb navigation links by default, you (or your website developer) will either need to edit your theme’s templates and add a snippet of code to display breadcrumbs, or choose a WordPress theme that supports features like breadcrumb navigation links (e.g. the Avada theme) …

Themes like Avada support breadcrumbs

(Themes like Avada support breadcrumbs)

Improving WordPress Content Layout With Post Categories

Post categories and subcategories can be used to help organize and improve the layout of your content.

For example, WPCompendium.org’s WordPress tutorials are organized into the main categories below:

If you click any of the above links, you will see pages displaying a list of tutorials for each category organized in a grid view layout …

List of posts grouped by category

(List of posts grouped by category)

Some sections, like our WordPress Plugin Tutorials, display a list of post sections grouped by subcategories …

List of post sections grouped by subcategory

(List of post sections grouped by subcategory)

Clicking on an item in the ‘WordPress Plugin Tutorials’ page will take you to a page displaying all the tutorials grouped under one of its subcategories, such as:

We use post categories and subcategories to organize, filter, and display content on WP Compendium’s tutorial sections using a premium plugin called Content Views Pro.

The plugin also has a free version, called Content Views.

Content Views

Content Views - Post Grid & List for WordPress

(Content Views – Post Grid & List for WordPress)

Content Views is a free WordPress plugin that lets you organize, filter, sort, and display content from selected posts, pages, or custom post types using different views and layouts (e.g. grid, table, list) and insert these views anywhere on your site using a shortcode …

Use categories to display posts using different layouts

(Use categories to display posts using different layouts)

The plugin is very easy to use and lets you create unlimited custom views and layouts without touching code.

The free version of the plugin provides 3 basic layouts (Grid, Collapsible list, Scrollable list). The comprehensive premium version (Content Views Pro) provides the basic layouts and a whole lot more, including many advanced features  …

Display your content using different views and layouts with the Content Views Pro plugin

(Display your content using different views and layouts with the Content Views Pro plugin)

Although this tutorial focuses mostly on post categories, with Content Views Pro installed, you can create different views using posts, pages, and custom post types and filter these using a combination of different criteria including post categories, tags, publish date, post author, keywords, and custom fields.

You can also sort and organize your content using a wide range of methods, including post or page IDs, published date, modified date, drag & drop, post slug, comment count, menu order, custom fields, and even random sort (content displays in random order every time the page is refreshed) …

Create customized views to display content on your WordPress site

(Create customized views to display content on your WordPress site)

Views are created by selecting different options in the view-building form …

Create different content views by selecting options

(Create different content views by selecting options)

You can live preview your content as you build or edit your views …

Preview as you build

(Preview as you build)

After creating and saving your views, the plugin generates a shortcode which you can use to insert into your posts, pages, widgets, etc. …

Use shortcodes to insert views into your content

(Use shortcodes to insert views into your content)

The Content Views or Content Views PRO plugin gives you complete control over how your content is grouped and displayed to visitors. Views are 100% mobile responsive and the plugin is optimized to help improve SEO.

Tip

You can also use the Content Views plugin to add an attractive site map for your visitors with post thumbnail images and descriptions. To learn more, go here:

For more details about using the plugin, check out the video below, visit the FREE version plugin page here, or check out the Content Views Pro website for a full list of features, comprehensive demo site, plugin pricing and FAQ section, and more.

(Overview of WordPress Content Views)

We hope that you have found the above information useful. Feel free to check out the tutorials on the demo view below …

WPCompendium WordPress Tutorials Chrome Extension

WordPress Tutorials Free Chrome Extension

Install WPCompendium's WordPress Tutorials extension for Google Chrome browsers and access our FREE WordPress tutorials with one-click! ...
How To Research Keywords For SEO Content

How To Research Keywords For SEO Content

Learn how to do effective keyword research and improve your content SEO in this step-by-step tutorial ...
NoteTab - Text And HTML Editor

NoteTab – Text And HTML Editor

NoteTab is a powerful text and HTML editor tool that lets you edit multiple text files simultaneously, strip HTML from code and a whole lot more ...
TreePad Plus

TreePad Plus – Content Planning And Organization Tool

Use TreePad PLUS to store all of your notes, letters, images, emails, texts, hyperlinks, passwords, code snippets, etc. and to keep all of your information easily and readily accessible, organized, and searchable ...
How To Store, Plan And Organize Your Content Ideas

How To Store, Plan And Organize Your Content Ideas

Here is a simple, inexpensive, and effective system you can use to store, plan, and organize your content ideas ...
Loading...

Get Thrive Leads for WordPress

***

"These tutorials have so much information and are easy to understand. If you use WordPress or plan to in the future these will help you with everything you need to know." - Valisa (Mesa, Arizona)

***

How To Add Your Instagram Feed To WordPress

Learn how to add your instagram feed to your WordPress website or blog without touching code …

How To Add Your Instagram Feed To WordPress

Do you run a WordPress website or blog to promote your business, products, or services?

Do you have an Instagram account where you are uploading images related to your business, products, or services?

Would you like to display your Instagram images on your WordPress website or blog automatically?

In this tutorial, you will learn how to add your instagram feed to your website or blog without touching code.

How To Add Your Instagram Feed To WordPress

If you run a WordPress site or blog related to travel, food, photography, fashion, design, or any topic that can benefit from the addition of visual elements like photos, images, or videos, then why not spice up your posts, pages, and blog sidebar with the latest images and videos from your Instagram account?

Adding content from Instagram to your WordPress site can help to increase user engagement, increase awareness of your brand or blog, add loads of visual appeal, and save you time doing the manual work of adding the same content to both your Instagram account and your website.

Add An Instagram Feed To WordPress Using A Plugin

There are many plugins available in WordPress that you can use to add an instagram feed to your website or blog.

For this tutorial, we’ll use the plugin below.

WD Instagram Feed

WD Instagram Feed

(WD Instagram Feed)

Plugin Description

WD Instagram Feed is a free WordPress plugin that lets you add Instagram feeds to display media you have uploaded to your account on your posts, pages, and sidebar area. Once set up, feeds sync automatically with your WordPress site to display your latest Instagram content uploads.

The plugin only takes a couple of minutes to set up and customize and provides settings and features that give you full control over how content from your Instagram feed display on your website.

Useful Tip

Before installing the plugin, make sure you are logged into your Instagram account.

Plugin Installation

To install the WD Instagram Feed plugin from your WordPress dashboard, go to Plugins > Add New, enter “instagram” into the Keyword search field (if you need help see our tutorial on installing WordPress plugins), and click on the ‘Install Now’ button …

Install WD Instagram Feed plugin

(Install WD Instagram Feed plugin)

After installing the plugin, click ‘Activate’ …

Activate the plugin

(Activate the plugin)

Configuring The Plugin

After the plugin has been installed and activated, select Instagram Feed WD > Settings from your main WordPress admin menu …

Instagram Feed WD - Settings menu

(Instagram Feed WD – Settings menu)

The plugin will ask for permission to collect usage data. Choose ‘Allow & Continue’ or ‘Skip’ to proceed …

Plugin installation process - permission request to collect usage data

(Plugin installation process – permission request to collect usage data)

This brings you to the plugin ‘Overview’ screen, where you can view a tutorial video, access the plugin user guide, contact support, etc. When you are ready to begin using the plugin, click on the ‘Start Using’ button …

Click on 'Start Using' button

(Click on ‘Start Using’ button)

This will bring you to the ‘Instagram WD Settings’ screen. Make sure that you are already logged into your Instagram account and click on the ‘Sign in with Instagram’ button to connect your WordPress site with your Instagram account …

Click 'Sign in with Instagram' button

(Click ‘Sign in with Instagram’ button)

Authorize the connection …

Click 'Authorize' to connect

(Click ‘Authorize’ to connect)

The plugin will automatically add the access token required to connect your WordPress site with your Instagram account. Click ‘Save Changes’ to continue …

Your WordPress site and Instagram account are now connected!

(Your WordPress site and Instagram account are now connected!)

To view or edit your Instagram feed, select Instagram Feed WD > Feeds from your main WordPress admin menu …

Instagram Feed WD - Feeds menu

(Instagram Feed WD – Feeds menu)

This brings you to the ‘Feeds’ screen …

Instagram Feed WD - Feeds screen

(Instagram Feed WD – Feeds screen)

Hover over your feed title and click on ‘Edit’ to edit your feed …

Click on 'Edit'

(Click on ‘Edit’)

Here you can edit and customize your feed, including feed title, layout, media settings, etc.  …

Edit and customize your feed

(Edit and customize your feed)

You can also customie your feed theme, by selecting Instagram Feed WD > Themes from your main WordPress admin menu …

Instagram Feed WD - Themes menu

(Instagram Feed WD – Themes menu)

If you are using the free version of the plugin, you will need to upgrade to the premium version to be able to customize your feed theme …

Instagram Feed WD - Customize Feed Themes

(Instagram Feed WD – Customize Feed Themes)

Using The Plugin

After configuring the plugin, you can display content from your Instagram feed on your WordPress blog sidebar or insert it into any post or page you like.

Display Instagram Feed On Your WordPress Sidebar

To display your Instagram feed on the sidebar or footer of your WordPress site, go to your Widgets section and add the ‘Instagram WD Widget’ to your  widget bar.

Configure the widget options and click ‘Save’ to update your settings …

Instagram WD Widget

(Instagram WD Widget)

Your Instagram feed should now display content where you have added the widget as configured in your widget settings …

Instagram feed added to WordPress sidebar

(Instagram feed added to WordPress sidebar)

Display Instagram Feed On Your WordPress Posts Or Pages

To add your Instagram feed to a post or page, you can copy the shortcode from your ‘Feeds’ section to your clipboard and paste it into your content …

Copy Instagram feed shortcode to your clipboard

(Copy Instagram feed shortcode to your clipboard)

Or you can use the ‘Add Instagram Feed’ menu button (1) from your content editor to insert the shortcode into your content (2) …

Add Instagram Feed - Menu Button

(Add Instagram Feed – Menu Button)

After adding the shortcode, replublish your post or page …

Add Instagram Feed shortcode to your content

(Add Instagram Feed shortcode to your content)

Preview your post or page to view your feed content  …

Display content from your Instagram feed on your WordPress site

(Display content from your Instagram feed on your WordPress site)

Useful Tip

Fine-tune the plugin’s Instagram feed settings to get your content displaying exactly how you want it. If you need advanced customization optiond, consider upgrading to the premium version of the plugin.

To learn more about using this plugin, watch the video below or visit the plugin website here: WD Instagram Feed

(Instagram Feed WD Plugin for WordPress)

Congratulations! Now you know how to add your instagram feed to your WordPress website or blog.

How To Add Your Instagram Feed To WordPress

***

"I was absolutely amazed at the scope and breadth of these tutorials! The most in-depth training I have ever received on any subject!" - Myke O'Neill, DailyGreenPost.com

***