Skip to content

Developer Prospect

  • My Portfolio
  • My WordPress Plugins
  • About Me
  • Contact Me
  • Questions & Answers
    • Ask A Question
    • QA Account

Tag: SEO

Wordpress

How to Stop Google from Indexing your WordPress Image Attachment Pages ?

hazrarupam January 17, 2018January 17, 2018

Just add the below code to your functions.php. First of all this code checks if the attachment is related post or not if related then it redirect to the particular post else it is redirect to your home page. function media_redirect_attachment_page() { if ( is_attachment() ) { global $post; if ( $post && $post->post_parent )

Read more → 

Recent Posts

  • Music Player using Python
  • Create a custom directive on angular 2.
  • Set angular 2 dynamic page title
  • How to create and use of a custom component to angular Js 2 ?
  • Make secure contact form from Spam Robot

Recent Comments

    Archives

    • August 2018
    • June 2018
    • May 2018
    • February 2018
    • January 2018
    • December 2017
    • August 2017
    • July 2017

    Categories

    • Angular JS 2
    • CodeIgniter
    • Database
    • htaccess
    • Jquery
    • Laravel
    • Mysql
    • Mysqli
    • PHP
    • Python
    • Wordpress

    Tags

    angular 2 (2) angular js (2) Codeigniter (3) Conact Form 7 (1) custom link (1) database (3) HMVC (1) htaccess (1) Javascript (3) Jquery (3) Laravel 5.4 (2) mysql (3) oop php (3) php (7) php 7 (1) python (1) SEO (1) seo clean url (1) WordPress (8)