• Resolved crystalgroves

    (@crystalgroves)


    I’m interested in finding out if this plugin will output a sorted list of entries based off a custom field.

    I have one field that is numerical text (Like #123), and I want it to sort the posts based off that number.

    I have another that I want sorted by date in either ascending or descending order.

    I thought I saw something that would do this for this particular plugin yesterday, but I can’t find it.

    http://ww.wp.xz.cn/plugins/custom-content-type-manager/

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter crystalgroves

    (@crystalgroves)

    Actually I just found it under the advanced tab, but in testing it out it doesn’t appear to work. Using Version 0.9.7.11

    Depending on how your theme is displaying posts, look up using a “meta_query” with either query_posts() or get_posts().

    http://codex.ww.wp.xz.cn/Class_Reference/WP_Meta_Query

    This could also be added in using ‘the pre_get_posts’ hook: http://wordpress.stackexchange.com/questions/20237/using-meta-query-how-can-i-filter-by-a-custom-field-and-order-by-another-one

    Thread Starter crystalgroves

    (@crystalgroves)

    I have not been able to resolve this issue with those links as of yet. Anyone else run into the problem of the sort order/order by portion of this plugin not working?

    Thread Starter crystalgroves

    (@crystalgroves)

    Bumping due to a clients needs for this functionality.

    Plugin Contributor fireproofsocks

    (@fireproofsocks)

    There is a bug in the bug-tracker for this issue: https://code.google.com/p/wordpress-custom-content-type-manager/issues/detail?id=526 — you can subscribe to updates of it there. Unfortunately until it’s my client who needs work on it (i.e. until I myself have a budget), I generally can’t carve out much time out to work on the plugin.

    With due all respect for you needs – and ours – then it’s not truly resolved. Sorts that don’t sort properly (700 comes after 5990 in a “low to high” sort in our case) is a bug for the website visitor, not a “nice to have” enhancement for the site owner.

    With this type of support, we are not able to “Break out of our blog” and it’s not “true CMS functionality”. You ought to warn people on your description page that there is no PRO version and you’re not supporting it any longer.

    I’m willing to pay for a PRO version that includes support. But this “if you pay me I’ll fix it” approach for this type of issue, (not mention pagination) feels unfair.

    Plugin Contributor fireproofsocks

    (@fireproofsocks)

    I can’t track bugs in the forum, so saying this topic is “resolved” merely refers to the appropriate place to track an issue (the bugtracker). The CCTM is a free plugin, and it is supported, but if you are using it independently and outside of any contract with a developer then you can’t dictate timelines. The specifics of your project’s requirements don’t affect my availability, unfortunately. That’s not intended to sound flippant, it’s just the reality of any open-source project. When you grouse about fairness, keep in mind that you are benefitting from thousands of hours of work that others have paid for to have the free plugin in front of you in the first place.

    A pro version is in the works. You can sign up for the newsletter to receive updates about it.

    hi crystal !
    did you succeed what you tried to do ? i also want to sort post by custom fields date 🙂

    thanks to the author for his plugin !

    Someone posted a “fix” in the bug tracker, I haven’t tried it yet. If you try it and it works, can you let me know? Thanks!
    https://code.google.com/p/wordpress-custom-content-type-manager/issues/detail?id=526

    (see the post near the bottom dated Oct 17)

    Oh thanks !! i will never found that without you ^^

    I would love to try this, the thing is i don’t really know where to put that code.
    I watched this : http://code.google.com/p/wordpress-custom-content-type-manager/wiki/summarize_posts_shortcode
    Summarize code can be set in pages only ? not categories ? I think a PHP solution will work better for what i’m trying to do.

    My goal is that a common user of the website could change the posts order via drop-down menu.

    Yes, it’s just a short code you put in a page or post, that displays your custom post type content.

    Just like in the “Fix” example, you would change the values to your own:
    [summarize_posts post_type=”your_post_type_name” before=” ” after=” ” orderby=”your_date_field_name” order=”DESC”]

    Replace your_post_type_name and your_date_field_name with the values you created when you created your custom post type.

    Thanks for the anwser 🙂

    If i understand, the shortcode can’t be set in dropdown menu as in the post order widget plugin ?
    I want the user to choose how the results are displayed.

    Plugin Contributor fireproofsocks

    (@fireproofsocks)

    The functionality of the Summarize Posts shortcode is available as a widget: https://code.google.com/p/wordpress-custom-content-type-manager/wiki/Widget

    Keep in mind the shortcode just passes values to an underlying php class, so the widget does the same thing but instead of passing shortcode values, it’s passing values from an HTML form. So you can define your query in your widget and display that somewhere on your page.

    You can control the format of the HTML output in both cases by adjusting the formatting strings used. The default output is an unordered list. See Example 1 here: https://code.google.com/p/wordpress-custom-content-type-manager/wiki/summarize_posts_shortcode

    To modify to make it into a dropdown, you could use something like:

    [summarize_posts post_type="movies" before="<select>" after="</select>"]<option>[+post_title+]</option>[/summarize_posts]

    Keep in mind that handling any form submissions there would be up to you. You can use the cctm_post_form (https://code.google.com/p/wordpress-custom-content-type-manager/wiki/cctm_post_form) to generate forms on the front-end of your site and use them to save data to the database.

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

The topic ‘Sorting by a dated or numerical custom field?’ is closed to new replies.