problem with projects listings templates
Hi,
I have created a page called browse-tasks and attached 'projects listings' template. now, when I browse to that page, i get an error:
Fatal error: Call to a member function have_posts() on a non-object in C:\xampp\htdocs\wordpress\
wp-content\themes\hirebee\loop-project.php on line 20
can you tell me how to fix that error?
I tried adding line no:19 -- $projects= new WP_Query( array( 'post_type' => array( 'project')) );
That worked fine and generated that page fine. however, after that search options ( in the_hrb_projects_sort_dropdown) didn't seem to work..
I also noticed that your 'Find work' menu item is linked to ..../projects/. why is that? why you didn't have a page and then linked it to projects listings template?
Lastly, can I please get a copy of your template hierarchy that you are using for hirebee theme?