Skip to main content

Overview

Visual Portfolio includes intelligent SEO optimization features that automatically handle robots meta tags, canonical URLs, and duplicate content prevention for filtered, sorted, searched, and paginated portfolio pages.

Core SEO Strategy

The plugin implements a “noindex, follow” strategy for dynamically filtered content to prevent duplicate content issues while maintaining crawlability.

Key Principles

  • Main portfolio pages: Fully indexable with canonical URLs
  • Filtered/sorted pages: Noindex to avoid duplication
  • Paginated pages: Noindex beyond page 1
  • Link equity: Maintained through “follow” directive

Robots Meta Tags

Automatic Implementation

The plugin automatically adds robots meta tags to filtered, sorted, searched, or paginated pages:

URL Parameters Monitored

Priority and Timing

Robots meta tags are added early in the wp_head hook:
Priority 1 ensures the meta tag appears before SEO plugins process the page.

Archive vs. Non-Archive Handling

Archive Detection

The plugin differentiates between Visual Portfolio archives and regular pages:

Why This Matters

  • Portfolio embedded in page content
  • Filtering changes URL parameters
  • Noindex prevents duplicate content
  • Original page remains indexed
  • Dedicated portfolio archive URLs
  • Proper URL structure (e.g., /portfolio/page/2/)
  • Should remain indexable
  • Different SEO strategy needed

URL Optimization

Clean URL Structure

The plugin optimizes URLs for SEO and user experience:

Canonical URLs

For archive mappings, pagination URLs are converted to friendly format:

SEO Plugin Compatibility

Yoast SEO Integration

Rank Math Integration

All in One SEO Integration

Sitemap Integration

The plugin includes sitemap functionality:

Sitemap Configuration

  • Portfolio items can be included in XML sitemaps
  • Respects WordPress sitemap settings
  • Proper priority and change frequency
  • Filtered/paginated pages excluded

Schema Markup

While not explicitly shown in the SEO optimization class, portfolio items can support schema markup through filters and hooks.

Custom Schema Example

Duplicate Content Prevention

The Problem

Without proper SEO handling:

The Solution

Performance and Caching

Cache Compatibility

The plugin works with popular caching plugins:
  • WP Rocket: class-wp-rocket.php
  • SG Optimizer: class-sg-cachepress.php

Cache Considerations

SEO Hooks and Filters

Disable Robots Meta

Completely disable robots meta tag addition:

Custom Robots Rules

Implement custom logic:

Modify URL Optimization

Best Practices

  • Keep URLs clean and descriptive
  • Use semantic URL parameters
  • Implement breadcrumbs for navigation
  • Consider archive mapping for better URLs
  • Write unique descriptions for main portfolio pages
  • Use meaningful filter category names
  • Optimize portfolio item titles and content
  • Include alt text for all images
  • Ensure fast loading times
  • Implement lazy loading for images
  • Use proper heading hierarchy
  • Test with Google Search Console

Monitoring and Testing

Google Search Console

  1. Check for “duplicate content” warnings
  2. Monitor indexed pages count
  3. Review crawl errors
  4. Verify robots.txt isn’t blocking portfolio URLs

Testing Tools

WordPress SEO Plugins

Verify compatibility with:
  • Yoast SEO breadcrumbs
  • Rank Math schema
  • All in One SEO sitemap

Common Issues and Solutions

Issue: Filtered Pages Still Indexed

Solution: Clear search engine cache and wait for re-crawl

Issue: Main Page Not Indexed

Solution: Verify no conflicting SEO rules

Issue: Canonical URL Conflicts

Solution: Ensure SEO plugins respect Visual Portfolio’s canonical URLs

Advanced Configuration

Custom Archive Indexing

Regional SEO