• Resolved feverdog

    (@feverdog)


    Hi,

    I was using custom text in the shortcode for the ‘Read More’ link on different parts of the site and after updating to the new version all my links have the default ‘Read More’ text.

    Is it possible to use different text for separate links in the shortcode like before?

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’m having the same issue. Could someone please reply to this thread. Thanks.

    Plugin Author George Gkouvousis

    (@gkouvousisg)

    Hi guys.

    Happy new year.

    The way that version 3.x provides the shortcode output is dynamic and based on a settings page.

    Thus, there is no way to provide a different text.

    Hi,

    i replaced the read_main function by the following function:

    This way, you can have both code based on a settings page and individual Settings.

    Kind regards
    Holger

    function read_main($atts, $content = null) {
    	extract(shortcode_atts(array(
    		'more' => 'READ MORE',
    		'less' => 'READ LESS'
    	), $atts));
    
    	mt_srand((double)microtime() * 1000000);
    	$rnum = mt_rand();
       
    	$new_string = '<span><a onclick="read_toggle(' . $rnum . ', \'' . get_option('rm_text') . '\', \'' . get_option('rl_text') . '\'); return false;" class="read-link" id="readlink' . $rnum . '" style="readlink" href="#">' . get_option('rm_text') . '</a></span>' . "\n";
    	$new_string = '<span><a onclick="read_toggle(' . $rnum . ', \'' . (($more == 'READ MORE') ? get_option('rm_text') : $more) . '\', \'' . (($less == 'READ LESS') ? get_option('rl_text') : $less) . '\'); return false;" class="read-link" id="readlink' . $rnum . '" style="readlink" href="#">' . (($more == 'READ MORE') ? get_option('rm_text') : $more) . '</a></span>' . "\n";
    	$new_string .= '<div class="read_div" id="read' . $rnum . '" style="display: none;">' . do_shortcode($content) . '</div>';
    
    	return $new_string;
    }
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Ran Into a problem after updating’ is closed to new replies.