WordPress.org

Ready to get started?Download WordPress

Forums

TPG Get Posts
Exclude current post from list (3 posts)

  1. h.schiefer
    Member
    Posted 1 year ago #

    I have a widget and tpg is calling all the posts in a particular category. I would like to exclude what ever post is being displayed on that page from the list.

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

  2. cswaim
    Member
    Plugin Author

    Posted 1 year ago #

    I assume your widget is generating a list of posts? If so, you could use the offset in your widget to skip the number of posts being displayed by tpg_get_posts.

    Did I understand you question correctly?

  3. h.schiefer
    Member
    Posted 1 year ago #

    What is the "offset"? I'm using the tpg shortcode in a text widget. Is there another way to use this in a widget?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic