Find Jobs
Hire Freelancers

Wordpress show pages and parent pages content in right way

$10-70 USD

Cerrado
Publicado hace más de 5 años

$10-70 USD

Pagado a la entrega
I have Wordpress website were I have added multiple pages, subpages and third level pages. Now I need to display them on page. Below is javascript which i used to fetch categories. $allServices = $my_wp_query->query($allServicesArg); $serviceParentNames = array(); foreach ($allServices as $service) { $parentPostName = get_post($service->post_parent)->post_name; $serviceParentNames[$parentPostName] = true; $services[$parentPostName] = $services[$parentPostName] ?: array(); array_push($services[$parentPostName], $service); } $level1 = array(); $pages = array( 'numberposts' => '-1', 'post_type' => 'page', 'meta_key' => '_wp_page_template', 'meta_value' => 'page-templates/[login to view URL]', 'post_status' => 'publish', ); foreach (get_posts($pages) as $page) { $level1[$page->post_name] = $page; } $level2 = array(); foreach ($level1 as $level_1_page) { foreach (get_childs($level_1_page->ID) as $level_2_page) { if (isset($serviceParentNames[$level_2_page->post_name])) { $level2[$level_1_page->post_name] = $level2[$level_1_page->post_name] ?: array(); array_push($level2[$level_1_page->post_name], $level_2_page); } } // Remove empty categories if (!isset($level2[$level_1_page->post_name])) { unset ($level1[$level_1_page->post_name]); } } Below is my HTML which should be filled <div class="col-holder"> <strong class="heading"> <a href="#">Level 2 Menu</a> </strong> <ul class="submenucat"> <li><a href="#">Level 3 Link</a></li> </ul> </div>
ID del proyecto: 17957852

Información sobre el proyecto

7 propuestas
Proyecto remoto
Activo hace 5 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
7 freelancers están ofertando un promedio de $53 USD por este trabajo
Avatar del usuario
Hi, By the way code you shared is PHP code not JavaScript code anyways I can show the multilevel pages (normal, subpage and third level) on one page as links, from there all pages can be opened.
$61 USD en 2 días
5,0 (487 comentarios)
7,5
7,5
Avatar del usuario
Hello. The code you shown is PHP not javascript but I can help you. Thanks
$77 USD en 1 día
4,9 (319 comentarios)
7,0
7,0
Avatar del usuario
Hi there, why are you getting the list of categories from the posts? You need to query up to down (not down to up - from post to category). Do you have a nested category structure too? sub category under category. Have you got any output from your code? Looking forward to hear from you. Thank you
$70 USD en 0 día
5,0 (12 comentarios)
6,2
6,2
Avatar del usuario
Hi there, Thanks for the project. I am an experienced WordPress developer and i read and understood your requirements. I am available and ready to take up your project and ensure delivery to your expectations. Regards
$50 USD en 1 día
4,9 (157 comentarios)
6,4
6,4
Avatar del usuario
Hello how are you? Over 60 projects successfully completed. Hi mfrolovs! Please Send me a message so that we can discuss more about this project
$45 USD en 5 días
4,7 (60 comentarios)
5,7
5,7
Avatar del usuario
HEY, ITS NOT CLEAR IF YOU ARE ASKING FOR A CHANGE OR YOU NEED ANY HELP WITH YOUR CODE. ANYWAY WE CAN DISCUSS AND FIX THIS NOW. THANKS FOR CONSIDERING.
$25 USD en 0 día
5,0 (12 comentarios)
3,4
3,4

Sobre este cliente

Bandera de LATVIA
Riga, Latvia
5,0
36
Forma de pago verificada
Miembro desde may 20, 2011

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.