WordPress.org

Ready to get started?Download WordPress

Forums

Ditty News Ticker
Add short code support (2 posts)

  1. Dave Navarro, Jr.
    Member
    Posted 5 months ago #

    I need short code support in the Ticker text, so I modified your code.

    I added "do_shortcode()" to get_mtphr_dnt_ticker() in functions.php

    I hope you'll consider add it into a future update so that I don't have to keep updating it every time you release a new version.

    https://wordpress.org/plugins/ditty-news-ticker/

  2. metaphorcreations
    Member
    Plugin Author

    Posted 5 months ago #

    You can use one of the built-in filters to add this outside of the plugin (in your theme functions.php file or somewhere else that won't be overwritten by any plugin or theme updates).

    function mtphr_dnt_tick_do_shortcode( $contents ) {
    	return do_shortcode( $contents );
    }
    add_filter( 'mtphr_dnt_tick', 'mtphr_dnt_tick_do_shortcode' );

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.