WordPress.org

Ready to get started?Download WordPress

Forums

Custom Content Type Manager
[resolved] Summarize Posts Widget excerpt (3 posts)

  1. equalexchange
    Member
    Posted 1 year ago #

    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.

    http://wordpress.org/extend/plugins/custom-content-type-manager/

  2. fireproofsocks
    Member
    Plugin Author

    Posted 1 year ago #

    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.
    </rant>

    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.

  3. equalexchange
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic