Just change your query to search for the category you want.
$qry = new WP_Query('category_name=paparazzi&showposts=1');
while($qry->have_posts()) : $qry->the_post();
That should most likely be all you need to do.
And please don’t use query_posts
. It alters the main query and can break things.
Related Posts:
- Get posts from sites in Multisite?
- How To Modify The Loop in archives.php To Have 11 Posts Per Page and CSS Styling
- Using categories & “stickyness” together
- Does the ‘cat’ argument in query_posts fetch posts from subcategories as well as the given ID?
- List posts by category exclude current post
- Display only the latest post from multiple categories
- Select category in custom query
- Display one latest post from multiple categories
- Return category slug / title from category ID
- Exclude category from loop not working
- “NOT ONLY IN” taxonomy query operator?
- Post count for category and tag
- Checking for two categories in query_posts
- How to query post like normal search would do. within search.php page
- Query Posts Exclude Entire Category
- how to query posts and auto assign category if post title has keyword
- How do I call posts with a certain tag?
- Modify WordPress SQL Query to pull from within a category
- query order by category
- Get link which associated with a specific category and tag
- Order by category titles
- Have parent category contain only one post?
- List posts in alphabetical order
- Randomly load categories with latest post
- Set colors depending on category
- How do I query_posts in cat=1 AND not in cat=2
- List all posts in a category with query_post() function
- query_post order desc
- Exclude a category from a query that includes its parent category
- Pagination on category.php and tag.php not working
- Problem with different query loops (and “main loop”) on category template page!
- query_posts not reading correct categories
- Pagination for query_posts();
- Posts from a category on homepage with category archieves page default css
- function query_posts disabling current_page_menu class
- query_posts by category_name and custom taxonomy
- wordpress taxonomy query posts
- PHP dynamical conditional post display
- Posts of specific category on page and excluded from index.htm
- new WP_Query issues
- how can i hide category?
- Displaying links to all posts of the same category on the post page
- Post not found when filtered by category ID
- Exclude categories from postquery
- Sort posts alphabetically by category/custom taxonomy, insert divider between different types
- Show posts from category specified using a custom field
- query_post problem
- Add class to current post in query_post
- Different post slug based on archive
- Pagination does not work with query_posts()
- Assign a class to first element in category in loop
- How to display products with multiple conditions, product_id and category_id
- Query post only from categories that have subcategories
- Displaying posts by year
- Paginate WordPress Category Pages
- How to have a category not show up in query post with page panigation?
- Query pages by category
- Showing one post from each category, paged?
- Multisite – Protect categories from deletion?
- Where/how are categories stored?
- How can I prevent users from creating new categories?
- Get child categories when clicking on parent category
- Block multiple categories from Blog
- How do I add a function on a specific post category?
- Open subcategories in submenu on click in primary menu
- Multiple categories PROBLEM and Duplicating main categories
- Retrieve Image from Media Library by it’s category
- Get Unique Categories – Group By?
- Site search needs to find posts for category topic AND Tag or keyword thats not in the post
- category url structure
- How to conditionally hide author name on Single.php if category is “news”, otherwise if category is something else display author name?
- How to let users choose posts order in categories?
- WordPress category
- And/Or Category Query
- Show subcategories on a parent category page
- not all categories being displayed
- Category archive is displaying all posts rather than the specific category
- Use the category name instead of category slug in permalinks
- How do I add a separator to my list of terms with get_category
- Trying to create a Categorised Index (archive?) to use as my Home Page
- How can i listing current category and Featured Category post list?
- Last x Posted Categories?
- Check boxes for showing categories
- Is there a “sensible” limit to WordPress Categories?
- Possible to make get_categories() hide_empty attribute honor excludes from post query?
- Display Category Name and Date Posted on Blog Post
- How to remove “Categories:” part after the post title? [closed]
- Editing categories crashes WordPress site
- Conditional Site Logo(Category Based)
- Tag Menu items based on their categories
- Accessible Subcategory URL’s pages without using .php hack
- in_category(‘category-sluga’) returns true for Archive page of Category ‘category-slugb’
- wp_list_category only showing to logged in uers
- Grouping parent categories into sections
- Querying Multiple Categories With Different Offsets
- altering theme – content generated by PAGES not PORTFOLIO
- add new input field like category?
- WordPress excerpt for specific posts in category
- How do I get a single page navigation depending on the previous page?
- How to add custom prefix before category base for category page URL?