make parent pages and categories not clickable (4 posts)

  1. eclark
    Posted 7 years ago #

    Any idea where to start with this question?

    I would like to make my page parents not clickable
    I would also like to make my category parents not clickable

    So just the children of categories, and the children of pages,
    make not clickable, but the subpages and subcategories are clickable.


  2. eclark
    Posted 7 years ago #

    Can anyone help me at all.

    Even if you can guess, just take a stab it doesn't matter if your wrong

  3. wp_guy
    Posted 7 years ago #

    You'd need to write a custom PHP code for each one of those, instead of using the built-in wp_list_pages() and wp_list_categories() template tags, since those two don't have that option.

    Have a look at the get_pages() and get_categories() functions. They're used to return an Array with all your pages and categories.

    You'll need some PHP knowledge though.

  4. eclark
    Posted 7 years ago #

    ok I'll do that thanks very much

Topic Closed

This topic has been closed to new replies.

About this Topic