[resolved] Unlink Category Parent (3 posts)

  1. delete
    Posted 8 years ago #

    I have a client who wants to unlink the Category Parent and have only the 'childs' as linked, what is the easiest/fastest way? I'm find with editing core files if needed.

  2. delete
    Posted 8 years ago #

    I was able to find the category link code. For others it can be found in ./wp-includes/classes.php

    Starts around line 637. I just added an if statement for $category->parent and removed all the link tags. Basically just set it to $link = $cat_name;

  3. diablo829
    Posted 7 years ago #

    Bumping this up because I can't get this to work. I have some parent pages that have sub pages and some parent pages that do not have sub pages. For those parent pages with sub pages I do not want the parent page to be "clickable" or go anywhere. I only want the sub pages in the drop down to click to a page.

    Any advice?

Topic Closed

This topic has been closed to new replies.

About this Topic