741 posts
  • Has been a member for 5-6 years
  • Sold between 50 000 and 100 000 dollars
  • Exclusive Author
  • Most Wanted Bounty Winner
  • Bought between 50 and 99 items
  • Poland
  • Referred between 10 and 49 users
Orbital_Themes says

Where exactly do you use this code? On page.php? Why do you call global $wp_query;? Why do you reset query?

506 posts
  • Bought between 10 and 49 items
  • Envato Studio (Microlancer) Beta Tester
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 1 and 9 users
  • United Kingdom
Gareth_Gillman says

Thanks so much NuclearThemes, that works a treat.

PogoKing, I am using global Query as it was outside of the loop, I am using it on page.php.

I am still getting my head around custom fields and stuff like that so was following tutorials online which doesn’t seem to have helped.

Thanks everyone for the input

217 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Referred between 1 and 9 users
  • Sold between 1 000 and 5 000 dollars
  • United Kingdom
NuclearThemes says
Gareth_Gillman said
Thanks so much NuclearThemes, that works a treat.

PogoKing, I am using global Query as it was outside of the loop, I am using it on page.php.

I am still getting my head around custom fields and stuff like that so was following tutorials online which doesn’t seem to have helped.

Thanks everyone for the input

No problem, good luck with the site.

by
by
by
by
by
by