Hi! I´m having a little problem with my wordpress theme. I want to use query_posts on my theme, but when I add query_posts before the loop, than the page gets all white and everuthing on the page disappears. I´m using this before my loop.
How do i solve this problem ?
Here is my code :
<?php query_posts(‘category_name=Portfolio’); ?>
<?php if(have_posts()) : ?>
<?php while(have_posts()): the_post(); ?>
Could not find any blogpost<? endelse <?php endif ; ?>
- Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
- Open a support ticket if you would like specific help with your account, deposits or purchases.
- Item Support by authors is optional and may vary. Please see the Support tab on each item page.
Most of all, enjoy your time here. Thank you for being a valued Envato community member.