Last active
August 29, 2015 14:15
-
-
Save epicallan/a813eae4d32dff871395 to your computer and use it in GitHub Desktop.
Making use of a wordpress loop in a class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Template Name: mytemplate-page | |
* Description: a template page using a class | |
* | |
*/ | |
?> | |
<?php | |
$args = array( | |
"type"=>"post_type_name", | |
"taxonomy"=>"post_type_category", | |
"meta_id"=>"meta_id", | |
); | |
$obj = new ThemeClass($args); | |
$obj->getData(); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment