WordPress.org

Ready to get started?Download WordPress

Forums

TPG Get Posts
More tag not working (7 posts)

  1. DerekCrosson
    Member
    Posted 9 months ago #

    Hi there,

    I've installed this plugin and it's been working great except that I cannot display teasers. I am using the plugin to display a bit of the latest post on the home page of my site and some posts are very long.

    I have tried using the built in WordPress more tag in the post but it does not work. Also tried shorten_content="w55" which doesn't work. I've been trying to get this right for 3 days, if anyone knows of a solution please let me know.

    Thanks

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

  2. DerekCrosson
    Member
    Posted 9 months ago #

    This is my code, not sure if it'll help...

    [tpg_get_posts category_name="Blog" numberposts=1 show_meta="false" show_byline="false" title_tag="h4" show_entire="false" shorten_content="w55"]

  3. cswaim
    Member
    Plugin Author

    Posted 9 months ago #

    First question is did you insert a 'more' tag into the post? You do that on the post with the icon 'more', next to spell check by default.

    Try the basic shortcode to make sure it works. Once you have it working without any options, then try
    [tpg_get_posts cat="Blog" numberposts=1 fields="title,content" title_tag="h4" ]

  4. DerekCrosson
    Member
    Posted 9 months ago #

    Hi I know how to insert a more tag, I have done it and I know that it works because it shows the read more link on my blog page(the one displaying all the posts) but does not work for the post that I'm displaying on the home page using the plugin...

    I've tried using the shortcode that you've posted but it does the same thing.

  5. cswaim
    Member
    Plugin Author

    Posted 9 months ago #

    Did you try a short code without any options?

    The standard WordPress more tag is <!--more-->

    Look at the source output on the home page and see if the tag is imbedded in the post. The plugin splits the content by searching for <!--more(any characters)--> Can you tell me what the more tag looks like in the post?

  6. DerekCrosson
    Member
    Posted 9 months ago #

    It looks the same as what you've posted... I know what it is and how to add it(Alt+Shift+T, The more tage button, manually typing it in...). The plugin isn't slitting it at the tag it just ignores the tag and shows the whole post...

  7. DerekCrosson
    Member
    Posted 9 months ago #

    The short code without any options still shows the full post

Reply

You must log in to post.

About this Plugin

About this Topic