743 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Had an item that became a weekly top seller
  • Had an item featured on Envato Market
  • Won a Most Wanted contest
+5 more
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?

1073 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+5 more
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

221 posts
  • Has been part of the Envato Community for over 4 years
  • Located in United Kingdom
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+2 more
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