Vikram S Sangotra
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: get_pages & numberHello @bcworkz,
As per your suggestions I tried :
1) child_of & it doesn’t work with number.
2) parent it ignores number🙁 Any more suggestions.
Thanks again,
VikramForum: Developing with WordPress
In reply to: get_pages & numberHi @bcworkz – good morning,
Ok – I got third level parents and have used it in ‘child_of’ like :
$parent_four=get_pages( array('parent'=>$parent_three_id, 'child_of'=>$parent_three_id, 'number'=>2,'sort_column'=>rand) );Now what happens is number->2 gives me 2 child pages of each parent. So I made little adjustments by displaying 4 columns – till this it is absolutely fine.
But what if in future when there’ll be 3 or more parents? 😀 😀 😀
Please advise.
Thanks again,
VikramForum: Developing with WordPress
In reply to: get_pages & numberHello @bcworkz,
Thanks for your detailed reply. Things at my ends are like :
a) 2 Main Categories
b) Both these categories have 4-4 sub categories
c) These sub categories are having content pages.
e) I want to show 3 random content pages (from random sub categories) in 2 different sections ie. main categories.
f) In future Main Categories &/or Sub Categories may increase.I may be making it more complex. And I also think there should be simpler way to present it.
Please advise.
Thanks again,
Vikram