Ditty News Ticker
[resolved] Add short code support (3 posts)

  1. Dave Navarro, Jr.
    Posted 2 years 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.


  2. metaphorcreations
    Plugin Author

    Posted 2 years 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' );
  3. Dave Navarro, Jr.
    Posted 1 year ago #

    Just got around to looking at this again. Thanks so much!! I haven't updated the plugin in months.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.