get_posts function not working since the update
-
Greetings Rachel,
First of all, thank you for the update about the memory problem. It helped on the site.
Now, my problem is that the get_post function doesn’t work anymore. I didn’t had any problem before the update. Here’s the code :
`//Articles
$articles = get_posts( array(
‘numberposts’ => -1, // we want to retrieve all of the posts
‘post_type’ => ‘post’,
‘auteur’ => $post->post_name, // we want posts who are tagged with the actors taxonomy term with the slug ‘tom-hanks’
‘suppress_filters’ => false // this argument is required for CPT-onomies
) );if( $articles ) {
?><h3>Articles</h3>
<ul><?php
foreach ( $articles as $article ) {
?><li><a href=”<?php echo get_permalink( $article->ID ) ?>” title=”<?php echo get_the_title( $article->ID ); ?>”><?php echo get_the_title( $article->ID ); ?></a></li><?php
}
?></ul><?php
}`It now displays nothing.
Thank you!
The topic ‘get_posts function not working since the update’ is closed to new replies.