WordPress.org

Support

Support » Plugins and Hacks » List category posts » posts_morelink doesn't work with a custom template

posts_morelink doesn't work with a custom template

Viewing 4 replies - 1 through 4 (of 4 total)
  • I’m having a similar problem with both the posts_morelink and morelink. Neither are working. I am using a custom template and version 0.30.3 of the plugin.

    Actually, I figured part of it out. I’ve been using this plugin since before this option was added and hadn’t updated my custom template.

    Adding this code to my custom template adds it to every item:

    //Permalink:
    $lcp_display_output .= ‘ID).'”>Read more‘;

    However, it doesn’t fix the issue with the shortcodes not working.

    I couldn’t find anything on this either.
    However, Dangrgals solution didn’t work for me but sent me in the right direction.

    $lcp_display_output .= '<a href="';
    $lcp_display_output .= get_permalink($single->ID);
    $lcp_display_output .= '">Read more...</a>';

    The above code will provide you with a correct link for each and every post. It’s not neat, but it works.

    That works. You can combine it into one line if you prefer.

    $lcp_display_output .= '<a href="' . get_permalink($single->ID) . '">Read more...</a>';

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘posts_morelink doesn't work with a custom template’ is closed to new replies.
Skip to toolbar