WordPress.org

Ready to get started?Download WordPress

Forums

Add/Remove posts in the loop (1 post)

  1. johannesfosseus
    Member
    Posted 4 years ago #

    Hi

    Is it possible to add or remove posts in the origin "loop" from the inside of a plugin?

    For exampel if I want to remove post 122 and 32, and the add post 32 to the loop. As I understand this can bee done using the WP_Query(), but then I have to do that from the templates?

    Many thanks for some help // Johannes

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags