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

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

Projektin tunnus: #4301095

13 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön

rajeshsonisl

Quality work assured. Ready to get started. Thanks.

£40 GBP 1 päivässä
(976 arvostelua)
8.6
Shalena29

will be done

£30 GBP 1 päivässä
(325 arvostelua)
7.9
inzaghi2006

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

£35 GBP 1 päivässä
(261 arvostelua)
7.6
iwebdeveloper

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

£30 GBP 1 päivässä
(117 arvostelua)
7.0
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ä
(54 arvostelua)
6.4
kirilpanchev

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

£20 GBP 1 päivässä
(33 arvostelua)
4.7
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ä
(6 arvostelua)
4.6
Rafflesitpark

Please check PM

£20 GBP 1 päivässä
(50 arvostelua)
5.5
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ä
(29 arvostelua)
4.7
ecesara

I can do it

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