d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Quick Question Regarding Wordpress Php Query > Permalink Stuff
Prev12
Add Reply New Topic New Poll
Retired Moderator
Posts: 18,570
Joined: Feb 27 2004
Gold: 11,858.00
Trader: Trusted
Aug 12 2014 04:10pm
Try the following, notice the underscore instead of the dash:

Code
$args = array(
'posts_per_page' => 6,
'cat' => 2,
'order' => 'DESC'
);


This post was edited by Blind[zF] on Aug 12 2014 04:34pm
Member
Posts: 9,202
Joined: Sep 22 2009
Gold: 18,819.66
Aug 13 2014 09:37am
Quote (Blind[zF] @ Aug 12 2014 06:10pm)
Try the following, notice the underscore instead of the dash:

Code
$args = array(
    'posts_per_page'    => 6,
    'cat'              => 2,
    'order'            => 'DESC'
);


Ahhh that's what it was. Thanks for all the help Blind!
Member
Posts: 1,358
Joined: Dec 30 2012
Gold: 0.10
Aug 13 2014 11:51am
nvm

This post was edited by SelfTaught on Aug 13 2014 11:52am
Go Back To Programming & Development Topic List
Prev12
Add Reply New Topic New Poll