Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Vikram S Sangotra

    (@vikkram)

    Hello @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,
    Vikram

    Thread Starter Vikram S Sangotra

    (@vikkram)

    Hi @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,
    Vikram

    Thread Starter Vikram S Sangotra

    (@vikkram)

    Hello @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

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