Closed

Modify wordpress get grandchildren

Hi there,

I have the following script:

ID.'&sort_column=menu_order&child_of='.$posts[0]->ID);

if($child_pages) {

foreach($child_pages as $child_page) {

// loop stuff for child pages

echo '';

// get child pages of child page (grandchild pages)

$grandchild_pages = get_pages('sort_column=menu_order&child_of='.$child_page->ID);

if($grandchild_pages) {

foreach($grandchild_pages as $grandchild_page) {

// loop stuff for grandchild pages

if(has_post_thumbnail($grandchild_page->ID)) {

echo 'ID).'">'.get_the_post_thumbnail($grandchild_page->ID).'';

}

}

}

}

}

?>

This gets grandchild pages and orders them by menu order. However it orders them under parent like:

-Parent 1

-- 1

--2

--3

-Parent 2

-1

-2

-3

I need it not to split it up by parent so the order would be:

-1

-2

-3

-4

-5

-6

Skills: HTML, PHP, WordPress

See more: wordpress 4.5, modify wordpress, modify menu, php script echo, echo script php, need modify wordpress, wordpress child pages, wordpress child, wordpress menu posts, wordpress split, wordpress modify menu, php parent child menu, order php wordpress, wordpress loop, menu wordpress parent, automatic wordpress blog rss posts, wordpress create automatic posts rss feed, wordpress modify widget, automated wordpress blog rss posts, modify number posts phpbb2, wordpress reinstalled newer posts showing, wordpress plugin process posts, wordpress export selected posts, wordpress modify widgets, wordpress modify

About the Employer:
( 21 reviews ) Whitstable, United Kingdom

Project ID: #4301095

14 freelancers are bidding on average £27 for this job

Shalena29

will be done

£30 GBP in 1 day
(149 Reviews)
7.0
rajeshsonisl

Quality work assured. Ready to get started. Thanks.

£40 GBP in 1 day
(388 Reviews)
6.9
iwebdeveloper

Hi, I am Web-Developer of WordPress. and have Great experience in integrating in wordpress

£30 GBP in 1 day
(63 Reviews)
6.2
inzaghi2006

Hi, Let me help you now. Please contact me. Thanks

£35 GBP in 1 day
(73 Reviews)
5.8
webangel1

hello sir i can do this work , i can make it working as you want only child .. please check pmb thank you

£30 GBP in 1 day
(27 Reviews)
4.5
Rafflesitpark

Please check PM

£20 GBP in 1 day
(23 Reviews)
4.7
kirilpanchev

Hi again! Please send me the script so I can have a look!

£20 GBP in 1 day
(27 Reviews)
4.3
MinorityPath

Hi, I can help you with your code by getting all childs and order it like how you want that.

£20 GBP in 0 days
(13 Reviews)
4.0
tCognition

I am a Graphics/Web Designer/Developer with 8+ years of Professional experience. I specialize in CMS designs (WordPress, Joomla, Drupal, ) Ecommerce (Magento , Zencart, Opencart) and responsive themes. I Specialize More

£50 GBP in 3 days
(3 Reviews)
3.8
ecesara

I can do it

£20 GBP in 1 day
(2 Reviews)
3.4
tevuasohe

Hello, I have extensive experience with wordpress and even more with PHP. I've done all kinds of customization jobs to wordpress plugins and core functionality. Please give me more details about the context of the pro More

£20 GBP in 1 day
(8 Reviews)
2.8
debuger001

Hi there, As I reviewed code you showed which is not complete. Your requirement is simple and I can solve it in no time. I am capable of WordPress complete development. Let me know your thoughts. Thanks and regard More

£20 GBP in 1 day
(0 Reviews)
0.0
prabhakarumpl123

Hi i am Prabhakar 5 yrs experience in php wordpress like open source please send me script and your requirement with your site.

£20 GBP in 1 day
(0 Reviews)
0.0
pahwa88

Hello sir, I can do this for you now. I have much experience in PHP and wordpress. looking for your response to start. Thanks

£20 GBP in 0 days
(0 Reviews)
0.0