Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    ah, sure, there are lots of filters 😉

    something like this should work:

    add_filter( 'autoptimize_filter_noptimize','noptimize_archive', 10, 1 );
    function my_ao_noptimize( $flag_in ) {
    	if ( is_archive() ) {
    		return true;
    	} else {
    		return $flag_in;
    	}
    }

    enjoy your weekend,
    frank

    Thread Starter Michael

    (@michael8888)

    Thanks a lot! That works! You just to make sure that the function names match.

    Wish you a great weekend as well!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    That works! You just to make sure that the function names match.

    ah, indeed, forgot to change the function name on line 2 🙂

    Thanks a lot!

    you’re welcome, feel free to leave a review of the plugin and support here! 🙂

    Thread Starter Michael

    (@michael8888)

    Just posted a review.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Exclude all archive pages’ is closed to new replies.