Hi,
How would I go about adding the variable $numberofposts into a new Query?
I have tried this but my PHP skills aren't the best. I guess I'm doing something wrong after the = sign.
new WP_Query('showposts=$numberofposts');
Cheers,
Steve
Hi,
How would I go about adding the variable $numberofposts into a new Query?
I have tried this but my PHP skills aren't the best. I guess I'm doing something wrong after the = sign.
new WP_Query('showposts=$numberofposts');
Cheers,
Steve
Any ideas?
WP_Query("showposts=$numberofposts");
Use double quotes
Thank you very much.
This topic has been closed to new replies.