• Resolved marlybob

    (@marlybob)


    I’m running into an issue with Shared Counts (fantastic plugin by the way) where wordpress automatically-generated excerpts are pulling tags from the Shared Counts shortcode at the top of the page. The excerpts read like this: “facebooklinkedintwittergoogle-plusmyspaceOver the last few months…” Any way to flag the shortcode so that wordpress skips this content when it generates the excerpt? Thanks in advance.

Viewing 1 replies (of 1 total)
  • Plugin Author Bill Erickson

    (@billerickson)

    If your theme has hooks to allow us to insert things before the post content, we use those, which prevents the issue you describe. It sounds like your theme doesn’t have hooks, so the plugin inserts the share buttons directly in the post content.

    There are two ways to solve this:
    1. Instead of displaying buttons “Before Content”, set it to “After Content”

    OR

    2. Add hooks to your theme

    For the second option, add this to your theme’s functions.php file:

    add_theme_support( 'tha_hooks', [ 'entry' ] );

    And add this above the post content in single.php:

    do_action( 'tha_entry_top' );

Viewing 1 replies (of 1 total)
  • The topic ‘Publishing to automatically-generated excerpt’ is closed to new replies.