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 );
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.