Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Sami Ahmed Siddiqui

    (@sasiddiqui)

    Hi @oblanda004

    Sorry for the delay in my response. Can you tell me what exactly do you want to do?

    Do you want the plugin does not print schema for your home and category pages? Is that so?

    Kindly clarify so i can help you in it.

    Regards,
    Sami

    Thread Starter oblanda004

    (@oblanda004)

    Do you want the plugin does not print schema for your home and category pages? Is that so?

    Yes

    Plugin Author Sami Ahmed Siddiqui

    (@sasiddiqui)

    Hi @oblanda004

    There is a filter which may help you.

    
    function yasglobal_exclude_post_types( $post_type ) {
      if ( ( is_front_page() && ! is_home() ) || is_archive() ) {
        return '__false';
      }
      return '__true';
    }
    add_filter( 'schema_for_article_exclude_post_type', 'yasglobal_exclude_post_types');
    

    Add this filter in your functions.php file and check the pages.

    Let me know your feedback.

    Thanks,
    Sami

    Thread Starter oblanda004

    (@oblanda004)

    This is not helpful at all, you just copy that code that i try to use and that not work for me. You can read I guess what I wrote in first comment. If you not want to help that’s OK but not make reply just to make reply that is not helpful it is BS. I already tell you that code not work for me and ask you few questions. Thank you for free plugin but this answer shame

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Filter code not work for my wp theme’ is closed to new replies.