• Resolved Alice Brosey

    (@ambrosey)


    I’ve read some other threads on this topic, but I’m not seeing the same error, exactly.

    I have the plugin running for a client, and it works just fine, but although the shortcode in use is
    [summarize-posts post_type=”members” meta_key=”member_type” meta_value=”‘.$memberty.'” orderby=”post_title” order=”ASC”] (where it’s being run through a PHP function, clearly) it won’t actually orderby post_title. In fact, it’s ordering by oldest to newest post.

    There are no other plugins that I could imagine interfering at all, so I’m pretty confused how to change the ordering.

    I tried overriding the defaults by using a post_selector.php file with the following contents:
    <?php

    CCTM::$post_selector[‘search_columns’] = array(‘post_title’, ‘post_content’);
    CCTM::$post_selector[‘post_type’] = ‘attachment’;
    CCTM::$post_selector[‘post_mime_type’] = ‘image’;
    CCTM::$post_selector[‘post_status’] = array(‘publish’,’inherit’);
    CCTM::$post_selector[‘orderby’] = ‘post_title’;
    CCTM::$post_selector[‘order’] = ‘ASC’;
    CCTM::$post_selector[‘limit’] = 10;
    CCTM::$post_selector[‘paginate’] = 1;

    ?>

    http://wordpress.org/extend/plugins/custom-content-type-manager/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor fireproofsocks

    (@fireproofsocks)

    Please, ALWAYS include your version here. Help me help you. Thanks.

    In working through the functionality of the GetPostsQuery class (the class that drives the querying and shortcodes etc) I found some bugs that are being fixed on the dev branch, so you may want to download the latest dev version to see if that rectifies the problem:

    http://downloads.wordpress.org/plugin/custom-content-type-manager.zip

    Plugin Contributor fireproofsocks

    (@fireproofsocks)

    Thread Starter Alice Brosey

    (@ambrosey)

    Thank you thank you very much. I’m sorry for not being specific, it was the latest version of WP and the latest version of your plugin that was available at the moment I posted, through the plugin repository.

    I downloaded that .zip and it did indeed fix the problem. Thank you very much for the quick response.

    Plugin Contributor fireproofsocks

    (@fireproofsocks)

    Ok, glad that helped. It’s always best to list the exact version number. Someone reading this post in a week or a month will have no idea what the “most recent” version of WordPress or the plugin is.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Custom Content Type Manager] Orderby error’ is closed to new replies.