Title: Topic Tag: get_posts | WordPress.org

---

# Topic Tag: get_posts

1 [2](https://wordpress.org/support/topic-tag/get_posts/page/2/?output_format=md)
[3](https://wordpress.org/support/topic-tag/get_posts/page/3/?output_format=md) …
[14](https://wordpress.org/support/topic-tag/get_posts/page/14/?output_format=md)
[15](https://wordpress.org/support/topic-tag/get_posts/page/15/?output_format=md)
[16](https://wordpress.org/support/topic-tag/get_posts/page/16/?output_format=md)
[→](https://wordpress.org/support/topic-tag/get_posts/page/2/?output_format=md)

    - Topic
    - Participants
    - Replies
    - Last Post
 *  -  [[WPSSO Core - Complete Schema Markup and Meta Tags] Use _wpsso_meta-> schema_review_rating in meta_query](https://wordpress.org/support/topic/use-_wpsso_meta-schema_review_rating-in-meta_query/)
    -  Started by: [commadelimited](https://wordpress.org/support/users/commadelimited/)
    - 2
    - 3
    -  [1 year, 6 months ago](https://wordpress.org/support/topic/use-_wpsso_meta-schema_review_rating-in-meta_query/#post-18082014)
    -  [commadelimited](https://wordpress.org/support/users/commadelimited/)
 *  -  [[Secondary Title] Display posts ordered by secondary title](https://wordpress.org/support/topic/display-posts-ordered-by-secondary-title/)
    -  Started by: [drjeffsimmonds](https://wordpress.org/support/users/drjeffsimmonds/)
    - 2
    - 1
    -  [2 years, 3 months ago](https://wordpress.org/support/topic/display-posts-ordered-by-secondary-title/#post-17404233)
    -  [thaikolja](https://wordpress.org/support/users/thaikolja/)
 *  -  [[WPC AJAX Add to Cart for WooCommerce] Global addons not added to cart 1 out of 20 times](https://wordpress.org/support/topic/global-addons-not-added-to-cart-1-out-of-20-times/)
    -  Started by: [MauroS](https://wordpress.org/support/users/maurosp91/)
    - 1
    - 1
    -  [2 years, 6 months ago](https://wordpress.org/support/topic/global-addons-not-added-to-cart-1-out-of-20-times/#post-17188786)
    -  [MauroS](https://wordpress.org/support/users/maurosp91/)
 *  -  [Query only sticky posts (without “normal” posts)](https://wordpress.org/support/topic/query-only-sticky-posts-without-normal-posts/)
    -  Started by: [dlsn](https://wordpress.org/support/users/dlsn/)
    - 2
    - 2
    -  [3 years, 2 months ago](https://wordpress.org/support/topic/query-only-sticky-posts-without-normal-posts/#post-16478465)
    -  [dlsn](https://wordpress.org/support/users/dlsn/)
 *  -  [Is it possible to use the get_posts function within a function?](https://wordpress.org/support/topic/is-it-possible-to-use-the-get_posts-function-within-a-function/)
    -  Started by: [starapple](https://wordpress.org/support/users/starapple/)
    - 3
    - 3
    -  [3 years, 4 months ago](https://wordpress.org/support/topic/is-it-possible-to-use-the-get_posts-function-within-a-function/#post-16300568)
    -  [bcworkz](https://wordpress.org/support/users/bcworkz/)
 *  -  [Add Category names to post lists of custom post type](https://wordpress.org/support/topic/add-category-names-to-post-lists-of-custom-post-type/)
    -  Started by: [biglaugh](https://wordpress.org/support/users/biglaugh/)
    - 3
    - 12
    -  [3 years, 6 months ago](https://wordpress.org/support/topic/add-category-names-to-post-lists-of-custom-post-type/#post-16138729)
    -  [biglaugh](https://wordpress.org/support/users/biglaugh/)
 *  -  [[Code Snippets] Hooks not activating in certain cases](https://wordpress.org/support/topic/hooks-not-activating-in-certain-cases/)
    -  Started by: [Tristan](https://wordpress.org/support/users/tristanmsg/)
    - 3
    - 8
    -  [3 years, 9 months ago](https://wordpress.org/support/topic/hooks-not-activating-in-certain-cases/#post-15882906)
    -  [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 *  -  [WP query doesn’t work as expected with PHP8 when used in AJAX callback](https://wordpress.org/support/topic/wp-query-doesnt-work-as-expected-with-php8-when-used-in-ajax-callback/)
    -  Started by: [Gabor Lippert](https://wordpress.org/support/users/lunule/)
    - 2
    - 5
    -  [4 years, 2 months ago](https://wordpress.org/support/topic/wp-query-doesnt-work-as-expected-with-php8-when-used-in-ajax-callback/#post-15409014)
    -  [Gabor Lippert](https://wordpress.org/support/users/lunule/)
 *  -  [[ReOrder Posts within Categories] Good code example for get_posts call needed! 🔥](https://wordpress.org/support/topic/good-code-example-for-get_posts-call-needed/)
    -  Started by: [minimedj](https://wordpress.org/support/users/minimedj/)
    - 2
    - 5
    -  [4 years, 6 months ago](https://wordpress.org/support/topic/good-code-example-for-get_posts-call-needed/#post-14995505)
    -  [Aurovrata Venet](https://wordpress.org/support/users/aurovrata/)
 *  -  [How to determine the current post with get_posts()](https://wordpress.org/support/topic/how-to-determine-the-current-post-with-get_posts/)
    -  Started by: [fettabachi](https://wordpress.org/support/users/fettabachi/)
    - 3
    - 3
    -  [4 years, 10 months ago](https://wordpress.org/support/topic/how-to-determine-the-current-post-with-get_posts/#post-14640813)
    -  [fettabachi](https://wordpress.org/support/users/fettabachi/)
 *  -  [[MBE eShip] BUG Shipping list](https://wordpress.org/support/topic/bug-shipping-list/)
    -  Started by: [Salvatore](https://wordpress.org/support/users/mistyanet/)
    - 1
    - 0
    -  [5 years, 1 month ago](https://wordpress.org/support/topic/bug-shipping-list/)
    -  [Salvatore](https://wordpress.org/support/users/mistyanet/)
 *  -  [get_posts shows current post, not defined posts with args](https://wordpress.org/support/topic/get_posts-shows-current-post-not-defined-posts-with-args/)
    -  Started by: [helvetica123](https://wordpress.org/support/users/helvetica123/)
    - 2
    - 6
    -  [5 years, 3 months ago](https://wordpress.org/support/topic/get_posts-shows-current-post-not-defined-posts-with-args/#post-13980113)
    -  [helvetica123](https://wordpress.org/support/users/helvetica123/)
 *  -  [Is a foreach loop better for site performance / server resources than WP_Query ?](https://wordpress.org/support/topic/is-a-foreach-loop-better-for-site-performance-server-resources-than-wp_query/)
    -  Started by: [Jim](https://wordpress.org/support/users/kernix/)
    - 4
    - 7
    -  [5 years, 3 months ago](https://wordpress.org/support/topic/is-a-foreach-loop-better-for-site-performance-server-resources-than-wp_query/#post-13958956)
    -  [Jim](https://wordpress.org/support/users/kernix/)
 *  -  [[WP Custom Fields Search] Query_posts or get_posts](https://wordpress.org/support/topic/query_posts-or-get_posts/)
    -  Started by: [MrNikolsh](https://wordpress.org/support/users/mrnikolsh/)
    - 2
    - 11
    -  [5 years, 8 months ago](https://wordpress.org/support/topic/query_posts-or-get_posts/#post-13362301)
    -  [don benjamin](https://wordpress.org/support/users/dondon-benjamincouk/)
 *  -  [Memory Issues with get_the_post_thumbnail_url](https://wordpress.org/support/topic/memory-issues-with-get_the_post_thumbnail_url/)
    -  Started by: [webdesignsteyrer](https://wordpress.org/support/users/webdesignsteyrer/)
    - 2
    - 5
    -  [5 years, 10 months ago](https://wordpress.org/support/topic/memory-issues-with-get_the_post_thumbnail_url/#post-13090579)
    -  [webdesignsteyrer](https://wordpress.org/support/users/webdesignsteyrer/)
 *  -  [[PowerPress Podcasting plugin by Blubrry] 2 site-breaking function calls in Powerpress](https://wordpress.org/support/topic/2-site-breaking-function-calls-in-powerpress/)
    -  Started by: [justinmaurerdotdev](https://wordpress.org/support/users/360zen/)
    - 2
    - 2
    -  [5 years, 11 months ago](https://wordpress.org/support/topic/2-site-breaking-function-calls-in-powerpress/#post-12927340)
    -  [justinmaurerdotdev](https://wordpress.org/support/users/360zen/)
 *  -  [[WP-Paginate] wp_paginate with get_posts](https://wordpress.org/support/topic/wp_paginate-with-get_posts/)
    -  Started by: [Shirley Studebaker](https://wordpress.org/support/users/shirley-studebaker/)
    - 2
    - 3
    -  [6 years, 7 months ago](https://wordpress.org/support/topic/wp_paginate-with-get_posts/#post-12009947)
    -  [AlanP57](https://wordpress.org/support/users/alanp57/)
 *  -  [[Carousel Slider] Edit plugin or fixed post limit](https://wordpress.org/support/topic/edit-plugin-or-fixed-post-limit/)
    -  Started by: [jonathan.perez](https://wordpress.org/support/users/jonathanperez/)
    - 1
    - 0
    -  [7 years, 2 months ago](https://wordpress.org/support/topic/edit-plugin-or-fixed-post-limit/)
    -  [jonathan.perez](https://wordpress.org/support/users/jonathanperez/)
 *  -  [get_posts help](https://wordpress.org/support/topic/get_posts-help-2/)
    -  Started by: [masterross](https://wordpress.org/support/users/masterross/)
    - 2
    - 2
    -  [7 years, 4 months ago](https://wordpress.org/support/topic/get_posts-help-2/#post-11021238)
    -  [masterross](https://wordpress.org/support/users/masterross/)
 *  -  [Get Post ID when queried using author ID](https://wordpress.org/support/topic/get-post-id-when-queried-using-author-id/)
    -  Started by: [anurag.deshmukh](https://wordpress.org/support/users/anuragdeshmukh/)
    - 3
    - 5
    -  [7 years, 8 months ago](https://wordpress.org/support/topic/get-post-id-when-queried-using-author-id/#post-10686984)
    -  [anurag.deshmukh](https://wordpress.org/support/users/anuragdeshmukh/)
 *  -  [problem with fetching the most viewd posts/pages](https://wordpress.org/support/topic/problem-with-fetching-the-most-viewd-posts-pages/)
    -  Started by: [Mostafa Shahiri](https://wordpress.org/support/users/mostafadeveloper/)
    - 2
    - 3
    -  [7 years, 8 months ago](https://wordpress.org/support/topic/problem-with-fetching-the-most-viewd-posts-pages/#post-10604256)
    -  [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 *  -  [[WooCommerce] Get all product variations by category](https://wordpress.org/support/topic/get-all-product-variations-by-category/)
    -  Started by: [studiowizjo](https://wordpress.org/support/users/studiowizjo/)
    - 4
    - 4
    -  [7 years, 9 months ago](https://wordpress.org/support/topic/get-all-product-variations-by-category/#post-10587031)
    -  [Luminus Alabi](https://wordpress.org/support/users/luminus/)
 *  -  [get_posts() not returning all posts](https://wordpress.org/support/topic/get_posts-not-returning-all-posts/)
    -  Started by: [FalsAlarm](https://wordpress.org/support/users/falsalarm/)
    - 3
    - 4
    -  [8 years ago](https://wordpress.org/support/topic/get_posts-not-returning-all-posts/#post-10201144)
    -  [FalsAlarm](https://wordpress.org/support/users/falsalarm/)
 *  -  [[The Events Calendar] get_posts only returns upcoming events](https://wordpress.org/support/topic/get_posts-only-returns-upcoming-events/)
    -  Started by: [Robin Hislop](https://wordpress.org/support/users/tramuntana/)
    - 2
    - 4
    -  [8 years, 7 months ago](https://wordpress.org/support/topic/get_posts-only-returns-upcoming-events/#post-9552501)
    -  [Barry](https://wordpress.org/support/users/barryhughes-1/)
 *  -  [[Groups] Filter list of blog posts by group(s)](https://wordpress.org/support/topic/filter-list-of-blog-posts-by-groups/)
    -  Started by: [Marc Bijl](https://wordpress.org/support/users/newoceans/)
    - 2
    - 3
    -  [8 years, 7 months ago](https://wordpress.org/support/topic/filter-list-of-blog-posts-by-groups/#post-9545069)
    -  [Kento](https://wordpress.org/support/users/proaktion/)
 *  -  [getting posts and events by tag using tax_query – how to make it work?](https://wordpress.org/support/topic/getting-posts-and-events-by-tag-using-tax_query-how-to-make-it-work/)
    -  Started by: [Phil](https://wordpress.org/support/users/z2a7o9ph2dw/)
    - 2
    - 3
    -  [8 years, 11 months ago](https://wordpress.org/support/topic/getting-posts-and-events-by-tag-using-tax_query-how-to-make-it-work/#post-9230570)
    -  [Phil](https://wordpress.org/support/users/z2a7o9ph2dw/)
 *  -  [[LearnPress - WordPress LMS Plugin for Create and Sell Online Courses] Call to undefined function get_userdata()](https://wordpress.org/support/topic/call-to-undefined-function-get_userdata/)
    -  Started by: [Florian Simeth](https://wordpress.org/support/users/floriansimeth/)
    - 2
    - 1
    -  [9 years ago](https://wordpress.org/support/topic/call-to-undefined-function-get_userdata/#post-9107114)
    -  [hienphan](https://wordpress.org/support/users/hienphan/)
 *  -  [[CPT-onomies: Using Custom Post Types as Taxonomies] PHP Warning no property of non-object](https://wordpress.org/support/topic/php-warning-no-property-of-non-object/)
    -  Started by: [VGJ](https://wordpress.org/support/users/vgj/)
    - 6
    - 6
    -  [8 years, 10 months ago](https://wordpress.org/support/topic/php-warning-no-property-of-non-object/#post-9260206)
    -  [psuba](https://wordpress.org/support/users/psuba/)
 *  -  [get_posts array parameters not changing](https://wordpress.org/support/topic/get_posts-array-parameters-not-changing/)
    -  Started by: [bradleekw](https://wordpress.org/support/users/bradleekw/)
    - 2
    - 2
    -  [9 years, 1 month ago](https://wordpress.org/support/topic/get_posts-array-parameters-not-changing/#post-8998647)
    -  [bradleekw](https://wordpress.org/support/users/bradleekw/)
 *  -  [[The Events Calendar] Sort events by Speaker](https://wordpress.org/support/topic/sort-events-by-speaker/)
    -  Started by: [lizmcmillen](https://wordpress.org/support/users/lizmcmillen/)
    - 2
    - 1
    -  [9 years, 3 months ago](https://wordpress.org/support/topic/sort-events-by-speaker/#post-8697523)
    -  [shelbelliott](https://wordpress.org/support/users/shelbelliott/)
 *   

1 [2](https://wordpress.org/support/topic-tag/get_posts/page/2/?output_format=md)
[3](https://wordpress.org/support/topic-tag/get_posts/page/3/?output_format=md) …
[14](https://wordpress.org/support/topic-tag/get_posts/page/14/?output_format=md)
[15](https://wordpress.org/support/topic-tag/get_posts/page/15/?output_format=md)
[16](https://wordpress.org/support/topic-tag/get_posts/page/16/?output_format=md)
[→](https://wordpress.org/support/topic-tag/get_posts/page/2/?output_format=md)

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics

## Feeds

 * [RSS Recent Posts](https://wordpress.org/support/forums/feed/)
 * [RSS Recent Topics](https://wordpress.org/support/topics/feed/)