WordPress-reusable-WP-Query

This code is used in the Sage Wordpress theme, using blade templating.

  • The class contains a function, which takes 3 WP-QUERY parameters, which can be changed or added upon, it also has parameters which are used as class names for the wrapping Html elements for the retrieved data by the WP-QUERY.
  • The view instantiates the class and calls the main function with the parameters.