Forums

make parent pages and categories not clickable (4 posts)

  1. eclark
    Member
    Posted 2 weeks 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.

    Anyone?

  2. eclark
    Member
    Posted 1 week 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
    Member
    Posted 1 week 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
    Member
    Posted 1 week ago #

    ok I'll do that thanks very much

Reply

You must log in to post.

About this Topic