• Resolved ardufour

    (@ardufour)


    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!

    https://ww.wp.xz.cn/plugins/cpt-onomies/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter ardufour

    (@ardufour)

    Another thing I have noticed since the update : the loading of the post list page in the admin is now terribly slow.

    I am using the “Codepress Admin Columns” plugin to show in the columns the posts’ relations created by CPT-onomies. For example, for the posts, it displays the CPT author and CPT collaborator.

    I know cross plugin compatibility can be a pain, but if you have any clues about this, it would be great.

    Go download the development version on the developers page and let me know if that helps.

    I’ve noticed the memory issues a little and I’m currently trying a few tweaks to see if I can help.

    Thread Starter ardufour

    (@ardufour)

    It is working with the dev version.

    Thank you!

    Great! Thanks for letting me know! I’m trying to solve as many memory issues as I can before I push out the update, which will definitely happen before the end of the weekend.

    FYI: I just pushed out version 1.3.3 with the fix so all should be well. Let me know if you have any issues. Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘get_posts function not working since the update’ is closed to new replies.