Support » Plugins and Hacks » [Resolved] Summarize Posts Widget excerpt

[Resolved] Summarize Posts Widget excerpt

  • Hello, I’m finding custom-content-type-manager really useful.
    The summarize posts widget allows me to access the manual excerpt in the database (i.e. ‘post_excerpt’). However, as 99% of my content doesn’t use this field, would there be a way to access the dynamic excerpt which wordpress creates elsewhere: for example, would the_excerpt() be available if added to SummarizePosts_widget.php?
    Thank you.


Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor fireproofsocks


    Oh man, that would be nice. If I may vent for a moment, the way that the WP devs chose to implement that excerpt function is absolutely idiotic. Grade F bullarky stuff (bring on the flames, the source code tells all). So trying to tie into that function and offer it inside of summarize-posts was an exercise in futility and madness that I do not care to repeat. So much of the WP core is coded very poorly, I’m afraid, so using its functions outside of the narrow scope in which they were conceived can be incredibly difficult or impossible. the_excerpt() the_content() and all of that are perfect examples of how NOT to code something (in my biased opinion). The insane devotion to global variables, the over-reliance and pollution of events, and the consistent in-line PRINTING of values instead of the more sensible RETURNING of values is really a recipe for disaster, as you’ll quickly discover if you try to customize and scale any WordPress site. It really drives me nuts that WP has this clean and appealing face, but this rotted nasty stuff behind the scenes.

    The easy solution here? Add the excerpt manually. The more flexible solution? Use an output filter (e.g. a custom one) to come up with your own variation of the “excerpt” functionality that works cleanly.

    Now I’ve had a look through in more detail, I think I agree. I’ll try to come up with something I’m happy with, and many thanks for replying.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Summarize Posts Widget excerpt’ is closed to new replies.