Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter nick1973

    (@nick1973)

    Just saying I am really desperate for help on this one as I am hitting a brick wall everytime get anywhere near. Please please can someone help me with this one. Really need to find a way and not sure how.

    Thread Starter nick1973

    (@nick1973)

    Just wondered if anybody had any further ideas how I might achieve this?

    Thread Starter nick1973

    (@nick1973)

    Yes possible and I think that approach might be more or less how it should work.

    The Page where the links are input into custom fields has its own category.

    The links that are put in the custom fields ‘MIGHT’ belong to different categories.

    Because of this, the links need to be sorted under their correct category heading in the sidebar, but the category heading should only display if there are links for that category heading. The links cannot have a category assigned to them at the input field in the admin because they might switch category at a later date and therefore if that happens the image which is the title needs to switch to the correct image site wide.

    I’m not really a heavy weight coder with this sort of thing so not really sure where to start. This goes beyond my capabilities, so some code examples would be good.

    Thread Starter nick1973

    (@nick1973)

    Just a quick follow up and to make it clearer. The menu at the moment displays like this:

    Digital Connectivity
    – Internal Connectivity
    – External Connectivity
    – Clever Cogs
    – Bathroom

    I want it to display like this:

    Digital Connectivity
    – Internal Connectivity
    – External Connectivity
    – Clever Cogs

    Rooms & Areas
    – Bathroom

    ‘Digital Connectivity’ and ‘Rooms & Areas’ are both images which are applied as a category image and display as the category title rather than the category title text.

    Don’t know if this will help Anne, but I had a similar issue where i had to display a menu using Advanced Custom Fields in the header. I am also using the Max Mega Menu plugin so I can generate a menu shortcode.

    This is what I did anyway. You might be able to adapt it. I made a text field called ‘page_menu’ and applied it into the top level parent page using ACF. The text field should contain the Max Mega Menu shortcode.

    Then I applied this code into my template and the menu appeared everywhere on parent, child, children, grandchildren, great grandchildren, great great grandchildren etc etc

    if ( 0 == $post->post_parent ) {
    the_field(‘page_menu’);
    } else {
    $parents = get_post_ancestors( $post->ID );
    echo do_shortcode( get_field (‘page_menu’, end ( $parents ) ) );
    }

Viewing 5 replies - 1 through 5 (of 5 total)