Don’t inherit query from template, but still get category from URL?

[ad_1]

I’m setting up a site where the concept is that I have posts in multiple different categories, and I’d like each Category Archive page to display two columns: a left column that shows exactly 1 (stickied) post essentially explaining the category, and a right column that shows the excerpts from the X (say, 3) most recent non-sticked posts in the category.

The problem that I’m running into is that if I leave “Inherit query from template” *on*, then I don’t have the ability I need to set things like “Sticky Posts” to include/exclude/only, or to set a number of posts to display. If I turn “Inherit query from template” *off*, I get the granularity I need, but I also lose the ability to filter by category. That is…. [http://example.com/category/foo](http://example.com/category/foo) shows me the excerpts from posts in category foo as well as bar.

Does anyone have any advice for me?

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer