WordPress.org

Support

Support » Themes and Templates » make parent pages and categories not clickable

make parent pages and categories not clickable

  • 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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Can anyone help me at all.

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

    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.

    ok I’ll do that thanks very much

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘make parent pages and categories not clickable’ is closed to new replies.
Skip to toolbar