Suljettu

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

Taidot: HTML, PHP, WordPress

Näytä lisää: 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

Tietoa työnantajasta:
( 21 arvostelua ) Whitstable, United Kingdom

Projektin tunnus: #4301095

14 freelanceria on tarjonnut keskimäärin 27 £ tähän työhön

Shalena29

will be done

30 £ GBP 1 päivässä
(149 arvostelua)
7.0
rajeshsonisl

Quality work assured. Ready to get started. Thanks.

40 £ GBP 1 päivässä
(388 arvostelua)
6.9
iwebdeveloper

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

30 £ GBP 1 päivässä
(63 arvostelua)
6.2
inzaghi2006

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

35 £ GBP 1 päivässä
(73 arvostelua)
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 1 päivässä
(27 arvostelua)
4.5
Rafflesitpark

Please check PM

20 £ GBP 1 päivässä
(23 arvostelua)
4.7
kirilpanchev

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

20 £ GBP 1 päivässä
(27 arvostelua)
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 0 päivässä
(13 arvostelua)
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 Lisää

50 £ GBP 3 päivässä
(3 arvostelua)
3.8
ecesara

I can do it

20 £ GBP 1 päivässä
(2 arvostelua)
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 Lisää

20 £ GBP 1 päivässä
(8 arvostelua)
2.8
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 0 päivässä
(0 arvostelua)
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 1 päivässä
(0 arvostelua)
0.0
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 Lisää

20 £ GBP 1 päivässä
(0 arvostelua)
0.0