How do I display all my favorites in a the loop
-
<?php $temp = $wp_query; $wp_query = null; $wp_query = new WP_Query(); $wp_query->query($favorites = WeDevs_Favorite_Posts::init()->get_favorites()); while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
thats obviously wrong, but what do I need to to here?
- The topic ‘How do I display all my favorites in a the loop’ is closed to new replies.