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

  1. h.schiefer
    Posted 3 years 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.


  2. cswaim
    Plugin Author

    Posted 3 years 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
    Posted 3 years 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

  • TPG Get Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic