WordPress.org

Ready to get started?Download WordPress

Forums

Posts in Page
[resolved] limiting the amount of post that happens from a tag (7 posts)

  1. fitsydwag
    Member
    Posted 1 year ago #

    How do i limit the number of post that appears for tags, example at the minute I use the [ic_add_posts tag='education'} where education is the tag.
    I have all of the post that's tag with education appearing on my page, I only want the latest 4 post for the education tag appearing.

    Please can you tell me how I can do this.. thanks

    http://wordpress.org/extend/plugins/posts-in-page/

  2. fitsydwag
    Member
    Posted 1 year ago #

    tried [ic_add_posts tag='education' showposts='1'] and it doesn't work..

  3. ivycat
    Member
    Plugin Author

    Posted 1 year ago #

    Hello fitsydwag,

    What isn't working for you? I threw posts in page on a dev site of ours, created two posts with the tag "education" and used your shortcode and it showed one of the education posts only. Which is what is expected, correct?

    Are you getting errors, showing more than 1 post, etc?

  4. fitsydwag
    Member
    Posted 1 year ago #

    Hi thanks for getting back so fast, I am not getting any errors, just showing all of the post for some reason, I can send you the link I am developing the page at minute...http://www.dwayne.fah-designs.com/nwl/online/

    iam using [ic_add_posts tag='education' showposts='1']

    I did use you page the posts_loop_template in my theme using a featured image php script you gave some weeks ago. Would that be the reason?

  5. ivycat
    Member
    Plugin Author

    Posted 1 year ago #

    That page is using the [ic_add_posts tag='education' showposts='1'] shortcode? It's strange that it's only pulling in posts tagged "apps" if that's the case, if there was something broken, I think it'd show all posts.

    If the problem is only that shortcode is showing the whole post though, it could be that you'll need to create another template file for it and change it so it uses the excerpt rather than the content.

  6. fitsydwag
    Member
    Posted 1 year ago #

    Thanks for that its the weirdest thing though if i use [ic_add_posts showposts='1'] it will only show 1 post I am using the the default wordpress template, not my page template I made.

    but as soon as i put in a tag it shows all the post from that tag...?

    Thanks for you help...will see what I can do with some trial and errors to limit the tags.

  7. fitsydwag
    Member
    Posted 1 year ago #

    it works, just delted and started again and it works perfectly appreciate your time and help

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic