Ready to get started?Download WordPress


Standout CSS3 Buttons
[resolved] Buttons in Excerpts (5 posts)

  1. draganm
    Posted 9 months ago #

    I'm quite new to WordPress, so please excuse me if this is a simple question!

    I am experiencing problems when placing the CSS3 button on the excerpts. The buttons are showing perfectly well on the posts themselves but I'm having no luck with the excerpt.

    The code rather than the buttons is showing on the excerpts!

    Any help very gratefully received.

    Thanks for any advice you can give!


  2. jp2112
    Plugin Author

    Posted 9 months ago #

  3. draganm
    Posted 9 months ago #

    Thanks so much for your help.

    but this is where I look really stupid...

    Where do I make the code change outlined in the thread? I am quite new to WordPress but have a basic understanding of coding - I just haven't really worked out how WordPress deals with code and changes (if that makes sense).

    I'm guessing in the editor somewhere...

  4. jp2112
    Plugin Author

    Posted 9 months ago #

    You have to make sure shortcodes are being processed in excerpts. If your theme is using 'get_the_excerpt' function instead of 'the_excerpt', then you need to apply the filter to that function as well. Add this to your functions.php:

    add_filter('get_the_excerpt', 'do_shortcode');

    That should force your theme to process shortcodes in excerpts. If that doesn't work, I would also apply it to the_excerpt as well:

    add_filter('the_excerpt', 'do_shortcode');

    And of course if you want to use shortcodes in widgets, you need this snippet:

    add_filter('widget_text', 'do_shortcode');


  5. draganm
    Posted 9 months ago #

    Thank you very much for your help - it really is appreciated!


You must log in to post.

About this Plugin

About this Topic


No tags yet.