388 reputation
210
bio website copterlabs.com
location Portland, OR
age 30
visits member for 3 years, 8 months
seen 7 hours ago

7h
comment apply_filters() and the_excerpt are giving unexpected results
@QuantumDynamix This is designed to modify the get_the_excerpt handling to mimic the_excerpt, so you can call: apply_filters('get_the_excerpt', $content);.
Mar
9
comment How to empty wordpress custom post Database table
You should consider accepting this answer to help out future Googlers.
May
19
comment Plugin scans for images in post_content, how about “featured image”?
Have you looked at the code to see if there's a way to filter the output? Something like add_filter('yoast_seo_sitemap', 'my_custom_add_featured_image'); — Yoast usually does things the WordPress way, so you should probably start there.
Jan
11
comment Multi Quick Edit - Possible Or Impossible?
Glad it helped!
Jan
2
comment apply_filters() and the_excerpt are giving unexpected results
No worries. I always fear I'm not making sense when I ask questions. I was pulling from the database, but I didn't want to open a whole 'nother loop since I have things like get_the_title($post->ID) available. The final line of code was $description = wp_trim_excerpt(get_post($post->ID)->post_content);
Jan
1
comment apply_filters() and the_excerpt are giving unexpected results
Thanks for the link. I knew I could set up an additional loop, but it seems like overkill. My solution was adding a filter. I see it as a little elbow grease now for a lot less code later.
Dec
31
comment apply_filters() and the_excerpt are giving unexpected results
From the Codex entry on the_excerpt: "it will display an automatic excerpt which refers to the first 55 words of the post's content." I'm looking to mimic that behavior outside of the loop.
Dec
31
comment apply_filters() and the_excerpt are giving unexpected results
That returns blank if no excerpt was entered for the post. I need to mimic the actions of get_the_excerpt() (creating an excerpt if none exists).
Dec
31
comment apply_filters() and the_excerpt are giving unexpected results
Sorry, that's what I meant. Thanks for clarifying.