Viewing 2 replies - 1 through 2 (of 2 total)
  • change this:

    if (is_page() ) {
    $category = get_post_meta($posts[0]->ID, 'category', true);
    }

    to:

    $category = 'uncategorised';

    (make sure this is the spelling you want – the default category is spelled with a z)

    be aware that PageOfPosts is written for the kubrick theme, and that you need to adjust the html structure to suit your existing theme.

    Thread Starter tlw22

    (@tlw22)

    Awesome thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to apply category to page’ is closed to new replies.