• Hi everyone. I’m referencing my site HawaiiHousingNews.com here.

    I have two plugins that appear on my main posts (after clicking the post title to get to that post’s page) — the fbLikeButton plugin above the post text and the AddThis plugin at the end of the post. However, if you look at the site, neither one appears on the excerpt of the post on the homepage.

    How can I get both these plugins to similarly (FbLikeButton above, AddThis below) appear on the homepage excerpt of each post by default? I’m tech savvy but I don’t know about coding PHP or CSS. It seems to me that I should be able to take the code for the plugins as they appear on the post page and paste it into the code for the excerpt — I just don’t know where any of it is. Can someone assist?

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • also hook your plugin function with the excerpt hook.

    Thread Starter michaelborger

    (@michaelborger)

    Sorry but I need crystal clear instructions. I know tech, but I don’t know coding or scripting. If you can provide step by step instructions, I’d be most appreciative. Thanks.

    oh sorry, i thought you are programming the plugins. (ok maybe i should have read your post better ??

    try the following.

    for the fbLikeButton edit the file fblike_content_filter.php . One of the first lines is

    add_filter(‘the_content’, ‘fblike_the_content’);

    just duplicate and change the ‘the_content’ to ‘the _excerpt’

    i didnt try this, but it should work.

    regards

    marcus

    p.s. for other plugins it should work quite the same. just search for the Add_filter line….

    Thread Starter michaelborger

    (@michaelborger)

    Thanks for the notes, but unfortunately it didn’t work. Just so we’re clear, I only duplicated the one line, not the body of text that follows. I’m hoping to get the Like on both the excerpt as well as the post.

    https://HawaiiHousingNews.com — for reference

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Adding these plugins to my excerpt’ is closed to new replies.