Support » Plugin: Reusable Content & Text Blocks by Loomisoft » auto excerpts and shortcodes

  • Resolved wasanajones

    (@wasanajones)



    Thanks for the great plugin.

    I’m hoping you can point me in the right direction – this may or may not have a fix inside the Reusable Content & Text Blocks plugin.

    I’m trying to come up with a way to use ‘default excerpts’ using content blocks which contain carefully crafted spintax and other shortcodes.

    It works great If I manually add the shortcode to the excerpt meta box together with the functions.php snippet –
    add_filter('the_excerpt', 'do_shortcode');
    everything works fine and the content block is used – and it is all pretty slick.

    But editing each individual post is not an option (news feeds etc); so I’m trying to simply let WP generate the automatic excerpt and I’m adding a content block to the beginning of posts using templates.

    But the default WP auto excerpt generator won’t execute the content block shortcode it skips over it. (whether using the template or adding shortcode manually to content)

    Using Genesis theme, which has option to simply use entry content when generating archive lists – it also is skipping over the shortcode.

    so I’m guessing I need a functions.php snippet(s) –

    one to add filter that uses the same hook as the WP generated auto excerpt to allow executing shortcodes… (I’m guessing it is different than the hook I’m already using…and/or

    one to add a filter for the entry content to include shortcodes…

    any suggestions? This will really enhance functionality and hope it is worth your time to take a look

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘auto excerpts and shortcodes’ is closed to new replies.