0
如何在三個不同部分拆分「我的賬戶」WooCommerce選項卡式菜單。拆分我的賬戶WooCommerce選項卡式菜單
下面是當前的代碼,我得到:
<nav class="woocommerce-MyAccount-navigation">
<ul>
<?php foreach (wc_get_account_menu_items() as $endpoint => $label) : ?>
<li class="<?php echo wc_get_account_menu_item_classes($endpoint); ?>">
<a href="<?php echo esc_url(wc_get_account_endpoint_url($endpoint)); ?>"><?php echo esc_html($label); ?></a>
</li>
<?php endforeach; ?>
</ul>
</nav>
我需要什麼:我一共有15菜單項分裂這樣:
- 我想包裝前5在第一
<ul>
- 然後4項的項在第二
<ul>
- 並在第三休息
<ul>
請幫我解決這個問題。
感謝
哇,那真棒。它工作得很好。謝謝你的幫助。萬分感激。 – Chetan