• Resolved mrrl

    (@mrrl)


    Hi,

    Thanks to this topic I now have ‘more info’ links for my events.

    But I need ‘more info’ buttons for my productions as well (for use with [wpt_productions] shortcode). I tried editing the code a bit but can’t get it to work. Is this even possible?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jeroen Schmit

    (@slimndap)

    This should do it:

    function get_more_info_for_production_html( $html, $production ) {
    
    	ob_start();
    	?><a href="<?php echo $production->permalink(); ?>">More info</a><?php
    	return ob_get_clean();
    }
    
    add_filter( 'wpt_production_more_info_html','get_more_info_for_production_html', 10, 2 );
    Thread Starter mrrl

    (@mrrl)

    Works like a charm! thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘‘More info’ link for [wpt_productions]’ is closed to new replies.