Viewing 1 replies (of 1 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    No, unfortunately, this Extension can only use the URL itself as the link text.
    To use a common text like “Click here”, you would need a small custom Extension. That’s actually not really different from that old one for WP-Table Reloaded. The corresponding code from thread that you mentioned, adjusted for TablePress, would be

    add_filter( 'tablepress_cell_content', 'tablepress_add_custom_links', 10, 4 );
    function tablepress_add_custom_links( $cell_content, $table_id, $row_idx, $col_idx ) {
    	if ( 123 != $table_id )
    		return $cell_content;
    
    	if ( 5 != $col_idx )
    		return $cell_content;
    
    	if ( 1 == $row_idx )
    		return $cell_content;
    
    	return '<a href="' . $cell_content . '" target="_blank">Click Here for more Info</a>';
    }

    Regards,
    Tobias

Viewing 1 replies (of 1 total)
  • The topic ‘URL conversion extension – static text output instead of full URL’ is closed to new replies.