• Resolved Simon Barnett

    (@simbasounds)


    Is it possible to selectively disable Advanced Excerpt for a custom template?

    The problem is that I needed to limit excerpt length, while also parsing video oEmbed links (actually Lyte plugin httpv links). My theme – Genesis Framework – was not allowing both.

    Advanced Excerpt solved the problem, but now I need a custom template where it doesn’t parse video links, so I either need to be able to disable Advanced Excerpt’s function for my custom page template (with custom Genesis loop)..

    OR else stop Lyte’s parsing with a filter. The Lyte developer said:
    remove_filter(‘the_content’, ‘lyte_parse’);
    But it didn’t work, which made me wonder if the_content was correct with Advanced Excerpt active.

    https://wordpress.org/plugins/advanced-excerpt/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Currently there’s no easy way to do this within the plugin. I could create a filter that would allow you to skip the excerpt filtering in certain circumstances, I’ll make sure I add that in the next release.

    Thread Starter Simon Barnett

    (@simbasounds)

    Thanks Chris – appreciated. I eventually solved it by putting each post’s video URLs in a custom field and calling them via a hooked function for single posts and archive templates.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Selectively disable custom template OR filter content’ is closed to new replies.