• Felipe

    (@felipeovalle)


    Hello. I just have a question.

    I know in the settings of the plugin I can deactivate the featured images for all post, but it’s possible to do or implement into the AMP editor? Doing it individually per post?

    Thanks. Greetings.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    You can add this filter in the functions.php file to achieve your requirement.

    The following code will help you to achieve your requirement.

    add_filter('ampforwp_modify_featured_image','ampforwp_featured_image_date'); 
     function ampforwp_featured_image_date($image)
    {
      if (  HERE YOU NEED TO ADD THE ID OF THE POST ON WHICH YOU WANTS TO HIDE FEATURED IMAGE )
      { 
        $image = '';
      } 
      return $image; 
     }
    Thread Starter Felipe

    (@felipeovalle)

    Thank you for the answer. I will try this. I hope you can add a filter like this (in the future) into the AMP editor in the post for non coding users. Greetings.

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Give it a try and let us know back if you need any assistence.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can I hide featured images per post?’ is closed to new replies.