Support » Plugin: Custom Content Shortcode » Permalink?

  • cassihl

    (@cassihl)


    How can I insert a “read more” link after the excerpt? Or maybe link the title to the post’s permalink?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Peter Berger

    (@peterpolow)

    You can try something like this:

    [loop type=post count=4]
    <div>
    <h3><a href="[field url]" title"[field title escape=true]">[field title escape=true]</a></h3>
    <p>[field excerpt words=25] <a href="[field url]" title="Read more"> Read more</a></p>
    </div> 
    [/loop]

    Let me know if it is what you’re looking for!

    Peter

    cassihl

    (@cassihl)

    Thanks!!

    Hi there, when I do this, it populates the URL of the current page rather than the blog post.

    Any suggestions as to what’s going wrong & how to fix?

    Hey Raychill, I recommend you open a new thread if the topic is a different one. It keeps things cleaner and helps other users find problems easier. To add info to the current post I suggest you consider a plugin that lets you append or preppend info to the post, such as this one:
    https://wordpress.org/plugins/append-or-prepend-content/

    Once istalled go to Settings > Writing and add in the corresponding box (post type & before or after):
    [loop]
    [field you-field]
    [field you-other-field]
    [/loop]

    Append and Preppend with custom content shortcodes

    There is no need for parameters since it will detect the current post.
    Good luck!

    • This reply was modified 11 months, 1 week ago by  MrFoxTalbot.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Permalink?’ is closed to new replies.