WordPress.org

Ready to get started?Download WordPress

Forums

TPG Get Posts
[resolved] Can't get more_link_text to work (8 posts)

  1. hamesy202
    Member
    Posted 1 year ago #

    Currently having issues getting more_link_text to work. On my homepage I've added [tpg_get_posts numberposts=2 more_link_text="Read More"] so it displays two posts and then cut off at the more tag.

    This is my website http://thevegetableplot.co.uk in case that helps.

    http://wordpress.org/extend/plugins/tpg-get-posts/

  2. cswaim
    Member
    Plugin Author

    Posted 1 year ago #

    Did you insert the more tag when you wrote the post? There is an icon (top row) to insert the more tag at the point you want the post to break.

    In looking at your post there is a <span id="more-107"></span> tag but the WP more tag is <!--more-->

    Not sure why the difference

  3. hamesy202
    Member
    Posted 1 year ago #

    Yes I used the more tag. I've checked it on the text tab when I write the post and it says <!--more-->

  4. cswaim
    Member
    Plugin Author

    Posted 1 year ago #

    I am not sure what is happening, but if you look at the more tag imbedded in the code it is not the standard WP more tag.

  5. DerekCrosson
    Member
    Posted 1 year ago #

    Just wondering if you've got this right yet? I've used the more tag on each post and it displays correctly on a page yet when I use the plugin it shows the full post.

  6. hrmony17
    Member
    Posted 1 year ago #

    I do not use the <!--more--> tag in my posts since my theme automatically spits out an excerpt. To get more_link_text function to work, I had to use shorten_content.

    This is what I use on my front page and it works perfectly.

    [tpg_get_posts cat="blog" numberposts=3 shorten_content="w450" more_link_text="read more!" thumbnail_size=thumbnail]

  7. DerekCrosson
    Member
    Posted 1 year ago #

    I've copied and pasted that code too but it still shows the entire post... This is a really good plugin I wish that it worked in all versions... I am using it in 3.5.1

  8. cswaim
    Member
    Plugin Author

    Posted 1 year ago #

    Derek:

    Look at the source code for the generated webpage and see if the <!--more--> is embedded in the post. The plugin searches for the more tag and breaks at that point.

    As noted above, it appears some themes alter the more tag. The example above changes the tag from <!--more--> to <span id="more-107"></span> which prevents the function from working.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.