Support

Account

Home Forums General Issues Include customized excerpt filter with ACF Post Object field Reply To: Include customized excerpt filter with ACF Post Object field

  • @hube2 Thanks! That pointed me in the right direction. I made an amateur mistake and accidentally left off the parameter count on the filter. Once I added the 2 to the get_the_excerpt filter, the $post was passed in correctly and the custom excerpt value worked. Thanks again!

    add_filter( 'the_excerpt', 'my_theme_products_and_recipes_excerpt', 10, 1 );
    add_filter( 'get_the_excerpt', 'my_theme_products_and_recipes_excerpt', 10, 2 );