• Resolved janamtrup

    (@janamtrup)


    Hi ??

    If I have to sections on same page, which are getting posts form network, one big box with only 1 absolutely latest post from network,
    is it then possible to exclude this absolutely latest post in the next section, that have 6 latest posts in smaller design ?

    So i dont show the same post double…

    So the second box shows 2-7 latest posts ?
    ??

    Thanks for any help

    Jan

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author johnzenausa

    (@johnzenausa)

    There’s two ways to go about it. The first is as follows:

    There are two attributes for the offset.

    number_latest_x_posts_excluded

    which includes offsetting the latest posts from any category. So if you have number_latest_x_posts_excluded='3' it will not show the three most recent posts.

    The second argument is exclude_latest_x_posts_from_category so you may specify a category/taxonomy. So if you wanted to skip the three most recent posts from taxonomy “books” you would do so as follows:
    [netsposts taxonomy='books' exclude_latest_x_posts_from_category='books' number_latest_x_posts_excluded='3']

    The second way is as follows:
    You can also use the following two arguments. 1) taxonomy_offset_names= and 2) taxonomy_offsets=. So for example if you wanted to offset three different categories it would look like so: [netsposts taxonomy_offset_names='books,flowers,sports' taxonomy_offsets='5,4,10'] then books would be offset by 5, flowers 4, and sports 10.

    Hence the first shortcode will include the argument list='1' to only show the most recent post and the second argument would include number_latest_x_posts_excluded='1' so it will exclude the most recent post and start from the 2nd most recent post.

    • This reply was modified 5 years, 2 months ago by johnzenausa. Reason: Forgot to tell her about first shortcode
    Thread Starter janamtrup

    (@janamtrup)

    Thanks , this works fine, 5***** from me ??

    Just using the most simple code, hiding the last post.

    Jan

    Plugin Author johnzenausa

    (@johnzenausa)

    Okay I’ll mark this as resolved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Exclude posts’ is closed to new replies.