• Resolved ElginC

    (@elginc)


    Hello. First of all Thank you for your plugin I have been searching for something like this in like a month. This plugin actualy works perfectly but at the end of the excerpt there appears the […] which should be a link. I tried to add the php code you provided to my functions.php but then I got server error (the site wont load at all with that code inserted). I would realy appreciate the help. Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter ElginC

    (@elginc)

    Please someone help me, this is the last feture for my website to start… Thanx.

    Thread Starter ElginC

    (@elginc)

    I found a solution of my problem. For everyone having this problem, here is what I did:
    I added the following code inside the display-posts-shortcode.php

    function be_excerpt_link( $more ) {
    	return '<a href="' . get_permalink() . '">' . $more . '</a>';
    }
    add_filter( 'excerpt_more', 'be_excerpt_link', 20 );

    Here it is where I added this code:

    // Create the shortcode
    add_shortcode( 'display-posts', 'be_display_posts_shortcode' );
    function be_display_posts_shortcode( $atts ) {
    
    function be_excerpt_link( $more ) {
    	return '<a href="' . get_permalink() . '">' . $more . '</a>';
    }
    add_filter( 'excerpt_more', 'be_excerpt_link', 20 );

    Plugin Author Bill Erickson

    (@billerickson)

    You can place that code in your theme’s functions.php file. Do not place it in the plugin files as it will be overwritten when you update the plugin

    Thread Starter ElginC

    (@elginc)

    Hello, I tried to do that but that messes up the website (the website wont load at all when I add the code to theme-functions.php) Maybe adding the code manualy after the plugin update would do it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[…] Appears like plain text [no link]’ is closed to new replies.