Support » Fixing WordPress » Show only Catagories not sub catagories

  • Hi,
    I have been trying to stop the sub catagories showing on the parent catagory
    I have tried editing my archive.php to add the code
    <? if ((is_category()) && in_category($wp_query->get_queried_object_id())) { ?>

    but the log just keeps saying unexpected ;
    and i cant seem to get it to work
    the code is from this site

    and the page i am trying to remove sub catagories from is

    any ideas would be really helpfull as I am really struggling.


Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Show only Catagories not sub catagories’ is closed to new replies.