• Resolved scoobydooobyd00

    (@scoobydooobyd00)


    I’m new to wordpress and this is the first design I’ve made for wordpress (https://scoobydooobyd00.com/).

    My site has all my tutorials, and sources to my tutorials. You’ll notice that under that Navigation there’s a link to the Videos page (which is a category) but I want it to have its own page style like this page (https://scoobydooobyd00.com/videos) – this page is an actual page

    At first I Tried to make the videos page (not the category) load all the post under the category “videos”, but after searching the forums I realized I needed to use a category but when I do that I can’t specify the page template I want.

    Also I don’t want my tutorials/videos to show up on the home page so I used this script to exclude the posts from the home page

    function exclude_category($query) {
    	if ( $query->is_home ) {
    		$query->set('cat', '-19');
    	}
    return $query;
    }

    add_filter(‘pre_get_posts’, ‘exclude_category’);
    Thanks in advance, ScoobyDooobyD00

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How would I change the page template for a categories page?’ is closed to new replies.