• Resolved Steven Jones

    (@rainemaida)


    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

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Adding a variable into a WP Query’ is closed to new replies.