Title: Query Posts
Author: Justin Tadlock
Published: <strong>15 mars 2009</strong>
Last modified: 23 november 2010

---

Sök tillägg

Det här tillägget **har inte testats med någon av de 3 senaste huvudversionerna 
av WordPress**. Det kanske inte längre underhålls och kan ha kompatibilitetsproblem
när det används tillsammans med nyare versioner av WordPress.

![](https://s.w.org/plugins/geopattern-icon/query-posts.svg)

# Query Posts

 Av [Justin Tadlock](https://profiles.wordpress.org/greenshady/)

[Ladda ner](https://downloads.wordpress.org/plugin/query-posts.0.3.2.zip)

 * [Detaljer](https://sv.wordpress.org/plugins/query-posts/#description)
 * [Recensioner](https://sv.wordpress.org/plugins/query-posts/#reviews)
 *  [Installation](https://sv.wordpress.org/plugins/query-posts/#installation)
 * [Utveckling](https://sv.wordpress.org/plugins/query-posts/#developers)

 [Support](https://wordpress.org/support/plugin/query-posts/)

## Beskrivning

The _Query Posts_ widget was written to allow users that don’t know their way around
PHP to easily show posts in any way they’d like. It’s like having a cool WordPress
developer as a friend ready to do your bidding. Seriously.

The widget has over 40 options to choose from. You can list posts by category, tag,
custom taxonomies, author, date, time, name, or anything you can imagine. You can
choose to show the full content, excerpts, or even a simple list. You can order 
the posts in all sorts of ways. Oh, and you can even show pages.

This is the widget that keeps users out of the code and gives them the ability to
display items on their site how they want.

## Skärmdumpar

[⌊View of the Query Posts widget settings.⌉⌊View of the Query Posts widget settings
.⌉[

View of the _Query Posts_ widget settings.

## Installation

 1. Upload `query-posts` to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the _Plugins_ menu in WordPress.
 3. Go to _Appearance > Widgets_ and place the _Query Posts_ widget where you want.

More detailed instructions are included in the plugin’s `readme.html` file.

## Vanliga frågor

  Installation Instructions

 1. Upload `query-posts` to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the _Plugins_ menu in WordPress.
 3. Go to _Appearance > Widgets_ and place the _Query Posts_ widget where you want.

More detailed instructions are included in the plugin’s `readme.html` file.

  Why was this plugin created?

End users sometimes want to do complicated things but don’t nave the technical _know-
how_ of seasoned developers. This creates a massive barrier between users that can
have _really_ cool sites and those that have to use what their theme developer gave
them.

This plugin is about removing that barrier.

  How do I set it up?

There’s not a lot of work you have to do. Just add the widget to your theme’s widget
area(s). If anything, you’ll probably be overwhelmed by the myriad of options. I’ve
included a handy guide on what each option means with supplemental reading material.
Just check out the `readme.html` included with the plugin download.

## Recensioner

![](https://secure.gravatar.com/avatar/791b9a7857034ead37df1baef8c05607f9ba1ee80b4f5a1b2f6c97518a01367f?
s=60&d=retro&r=g)

### 󠀁[Abandoned plugin](https://wordpress.org/support/topic/abandoned-plugin-117/)󠁿

 [letto1](https://profiles.wordpress.org/letto1/) 8 juli 2026

Doesn’t work past PHP 7.4. The plugin has been abandoned. Unfortunately my site 
relied on it and I’ve spent a year paying my host for extended PHP support before
I was able to figure out how to replace it. While I really appreciate developers
that create free plugins, it can be really difficult when they abandon them. It 
should probably be removed from the plugin database so more people don’t get stuck
in this trap.

![](https://secure.gravatar.com/avatar/3d71436a8733afd77f5d8fc1cf03f943bbdc9cbb4e78ec644a287fe0ecb5f089?
s=60&d=retro&r=g)

### 󠀁[Mostly works, but uses deprecated calls & not compatible with PHP7, abandoned](https://wordpress.org/support/topic/mostly-works-but-uses-deprecated-calls-not-compatible-with-php7-abandoned/)󠁿

 [Marty](https://profiles.wordpress.org/bozzmedia/) 13 april 2018

This can get the job done in a pinch, but the plugin is not updated or supported
any longer and has the above mentioned issues. Best to look for a more up to date
plugin to fill this job.

 [ Läs alla 4 betyg ](https://wordpress.org/support/plugin/query-posts/reviews/)

## Bidragsgivare och utvecklare

”Query Posts” är programvara med öppen källkod. Följande personer har bidragit till
detta tillägg.

Bidragande personer

 *   [ Justin Tadlock ](https://profiles.wordpress.org/greenshady/)

”Query Posts” har översatts till 5 språk. Tack till [översättarna](https://translate.wordpress.org/projects/wp-plugins/query-posts/contributors)
för deras bidrag.

[Översätt ”Query Posts” till ditt språk.](https://translate.wordpress.org/projects/wp-plugins/query-posts)

### Intresserad av programutveckling?

[Läs programkoden](https://plugins.trac.wordpress.org/browser/query-posts/), kika
på [SVN-filförvaret](https://plugins.svn.wordpress.org/query-posts/) eller prenumerera
på [utvecklarloggen](https://plugins.trac.wordpress.org/log/query-posts/) via [RSS](https://plugins.trac.wordpress.org/log/query-posts/?limit=100&mode=stop_on_copy&format=rss).

## Ändringslogg

**Version 0.3.2**

 * Clean up of debug notices.
 * Only show thumbnail settings if theme supports post thumbnails or the `get_the_image()`
   function is present.
 * Apply widget title filters to the widget title.
 * Better escaping of widget settings form elements.

**Version 0.3.1**

 * Fix post types so individual IDs work.
 * Fix `enable_widget_title` for some instances where it didn’t work.
 * Fix `post_class` issue for the instances where it didn’t work.
 * Make sure correct image size is used.
 * Only use `post_mime_type` when it’s set.
 * Use `tag` instead of `tag_slug__in` for the post tag taxonomy.

**Version 0.3**

 * Completely redesigned the entire widget to just work better.
 * Important! Users will likely have to reset any instances of the Query Posts widget
   in use.

**Version 0.2.1**

 * Fixed the checkbox issue where it didn’t save on widget settings update.

**Version 0.2**

 * Recoded the widget from the ground up to use WP 2.8’s new widget class. Users
   will likely need to reset each widget instance because of this.
 * Fixes bug in WP 2.8 where more than one _Query Posts_ widget wouldn’t display.
 * Dropped support for versions of WP below 2.8.
 * New setting: `post_type`.
 * New setting: `post_status`.
 * Added ability to show posts in ordered list as well as the normal unordered list.
 * Hover tooltips to explain what each setting means.
 * Added support for custom taxonomies created by users and other plugins for posts.

**Version 0.1**

 * This is version 0.1. Everything’s new!

## Meta

 *  Version **0.3.2**
 *  Senast uppdaterat **9 år sedan**
 *  Aktiva installationer **800+**
 *  WordPress-version ** 3.0 eller senare **
 *  Testat upp till **3.0.5**
 *  Språk
 * [English (US)](https://wordpress.org/plugins/query-posts/), [Spanish (Chile)](https://cl.wordpress.org/plugins/query-posts/),
   [Spanish (Colombia)](https://es-co.wordpress.org/plugins/query-posts/), [Spanish (Mexico)](https://es-mx.wordpress.org/plugins/query-posts/),
   [Spanish (Spain)](https://es.wordpress.org/plugins/query-posts/) och [Spanish (Venezuela)](https://ve.wordpress.org/plugins/query-posts/).
 *  [Översätt till ditt språk](https://translate.wordpress.org/projects/wp-plugins/query-posts)
 * Etiketter
 * [page](https://sv.wordpress.org/plugins/tags/page/)[pages](https://sv.wordpress.org/plugins/tags/pages/)
   [posts](https://sv.wordpress.org/plugins/tags/posts/)[sidebar](https://sv.wordpress.org/plugins/tags/sidebar/)
   [widget](https://sv.wordpress.org/plugins/tags/widget/)
 *  [Avancerad vy](https://sv.wordpress.org/plugins/query-posts/advanced/)

## Betyg

 3 av 5 stjärnor.

 *  [  2 5-stjärniga recensioner     ](https://wordpress.org/support/plugin/query-posts/reviews/?filter=5)
 *  [  0 4-stjärniga recensioner     ](https://wordpress.org/support/plugin/query-posts/reviews/?filter=4)
 *  [  0 3-stjärniga recensioner     ](https://wordpress.org/support/plugin/query-posts/reviews/?filter=3)
 *  [  0 2-stjärniga recensioner     ](https://wordpress.org/support/plugin/query-posts/reviews/?filter=2)
 *  [  2 1-stjärniga recensioner     ](https://wordpress.org/support/plugin/query-posts/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/query-posts/reviews/#new-post)

[Se alla recensioner](https://wordpress.org/support/plugin/query-posts/reviews/)

## Bidragande personer

 *   [ Justin Tadlock ](https://profiles.wordpress.org/greenshady/)

## Support

Har du något att säga? Behöver du hjälp?

 [Visa supportforum](https://wordpress.org/support/plugin/query-posts/)

## Donera

Skulle du vilja bidra till utvecklingen av detta tillägg?

 [ Donera till det här tillägget ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3687060)