WordPress.org

Ready to get started?Download WordPress

Forums

Query Custom Fields
multiple errors on activation (8 posts)

  1. Dave Wright
    Member
    Posted 3 years ago #

    Hi, this looks like just the plugin for me, am looking to search based on a price range as per your example however I'm getting errors and haven't managed to get this working.
    The error appears when I add

    function my_queryable_custom_fields() {
        register_queryable_custom_field( 'price', array(
            'numeric' => true
        ) );
    }
    add_action('init', 'define_queryable_custom_fields');

    to my functions.php I get struck with...

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'define_queryable_custom_fields' was given in **MY URL**/wp-includes/plugin.php on line 395

    not sure what to do from here?

    http://wordpress.org/extend/plugins/query-custom-fields/

  2. kateM82
    Member
    Posted 3 years ago #

    I get that too! Anyone??

  3. Jens Wedin
    Member
    Posted 2 years ago #

    @scribu: I know that you don't actively support this plugin anymore. But could you just let us know if the plugin still work or not.

    On the plugin page you write that we should use

    function my_queryable_custom_fields() {
        register_queryable_custom_field( 'price', array(
            'numeric' => true
        ) );
    }
    add_action('init', 'define_queryable_custom_fields');

    If I do: http://tax.xyz.com/?price=100

    It gives me this error

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'define_queryable_custom_fields' was given in /storage/content/15/136215/tax.xyz.com/public_html/wp-includes/plugin.php on line 395

    If I change the code example into

    function my_queryable_custom_fields() {
        register_queryable_custom_field( 'price', array(
            'numeric' => true
        ) );
    }
    add_action('init', 'my_queryable_custom_fields');

    If I do: http://tax.xyz.com/?price=100

    I get this error message

    Fatal error: Class 'scbQueryManipulation' not found in /storage/content/15/136215/tax.xyz.com/public_html/wp-content/plugins/query-custom-fields/core.php on line 107

    So, is the plugin still working? I'm on WP 3.2.1 and QCF 0.1.1

    /Jens

  4. nfaust
    Member
    Posted 2 years ago #

    Jens,

    Any luck implementing this?

    -Nick

  5. Jens Wedin
    Member
    Posted 2 years ago #

    No. And Scribu has not answered to any of my questions. Think he is a busy man :)

    @scribu: Any thoughts on this?

  6. scribu
    Member
    Plugin Author

    Posted 2 years ago #

    I'm going to be perfectly honest with you: This plugin will be updated only if one of the following things happens:

    • some other developer adopts it
    • I find out I need it in one of my own projects

    Most likely scenario is that somebody else writes a different plugin for this. Let me know if there already is one.

  7. Jens Wedin
    Member
    Posted 2 years ago #

    @scribu: Thanks for the reply. Yes, I thought that this was your point of view. Maybe it should be removed from the plugin directory as it doesn't work.

  8. scribu
    Member
    Plugin Author

    Posted 2 years ago #

    It will be automatically removed from searches if it remains un-updated for two years, I think.

    You can help by pressing the "Broken" button in the compatibility box.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic