logo
Ask your WordPress questions! Pay money and get answers fast! (more info)

Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

If the asker does not get an answer then they have 10 days to request a refund.

$10
Custom wp_list_categories function

Hi,

I'm looking for a solution to extend the wp_list_categories function possibly via a custom Walker?

Note that this is for a Custom Post Type and taxonomies and non-javascript solutions are preferred.

Categories with child categories must link to the first child category with the lowest ID otherwise do the default link.

For example, look at this page: http://www.lightyourway.co.za/turnstar/?categories=turnstiles

In the left sidebar menu, when you click on Turnstiles, you should be directed to the first child category (Full Height Industrial).

Cheers

barrycrous | 02/03/13 at 9:08am Edit
Tutorial: How to assign prize money

Previous versions of this question: 02/03/13 at 9:20am | 02/03/13 at 9:33am | 02/03/13 at 9:35am

(3) Responses

Note: barrycrous felt their question was unanswered, so we granted them a refund.

Note: barrycrous requested a refund. They offered this explanation:

"We've found a better solution which doesn't require this functionality at this stage."

If no one challenges a refund request, then they are automatically granted and proccessed after 48 hours. Admins of this site only review refund requests if someone challenges the request. If you are curious about how we handled previous refund requests, you may read over all refund requests and their challenges.

See a threaded view of answers?

Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

  • avatar
    Last edited:
    02/03/13
    9:30am
    Arnav Joy says:

    try this using jquery method

    <script>
    jQuery(document).ready(function($){
    var href = $('#sidebarbox').find('ul.sidebarmenu').find('ul.children').find('li').eq(0).find('a').attr('href');

    $('#sidebarbox').find('ul.sidebarmenu').find('ul.children').parent('li').find('a').attr('href', href);

    });
    </script>

  • avatar
    Last edited:
    02/03/13
    9:34am
    barrycrous says:

    Hi Arnav,

    Sorry, should have mentioned that we require non-javascript solutions.

  • avatar
    Last edited:
    02/03/13
    9:35am
    barrycrous says:

    Hi Arnav,

    Sorry, should have mentioned that we require non-javascript solutions.

This question has expired.





Current status of this question: Refunded



Please log in to add additional discourse to this page.





Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

If the asker does not get an answer then they have 10 days to request a refund.