WordPress.org

Forums

Category Custom Fields
Plug in support - categorycustomfields (44 posts)

  1. alicornea
    Member
    Plugin Author

    Posted 3 years ago #

    For any question or desired improvements just write it down here.

    http://wordpress.org/extend/plugins/categorycustomfields/

  2. mremym
    Member
    Posted 3 years ago #

    doesnt seem to work for wordpress 3.1 and 3.1.2 it gives a error like this:
    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'turism_init' not found or invalid function name in \wp-includes\plugin.php on line 395

  3. alicornea
    Member
    Plugin Author

    Posted 3 years ago #

    Thank you for your reply. I will fix it later on today.

  4. thepolarway
    Member
    Posted 3 years ago #

    Hi there!
    Thank you fot the nice plugin. Worked to me like a charm, except for editing categories with images.
    Let's say i edit a category. Add an image via browse button and add some data to my fields. That is working Ok.
    Then, i want to edit some of my data fields (but leave the image). When i actually edit the category, the image i uploaded the first time would dissapear.
    I don't if you could try to reproduce it...
    Thank you in advance...

  5. alicornea
    Member
    Plugin Author

    Posted 3 years ago #

    Hi.
    I will try to fix the issue until tomorrow. Thank you for your feedback.

  6. thepolarway
    Member
    Posted 3 years ago #

    Hi,
    Thank you, i appreciate that...
    i'll stay tunned

  7. claudeschneider
    Member
    Posted 3 years ago #

    I was also going to give the same feedback, that images get deleted if you don't upload them again when submitting the form.

    Presume you'll either fix the code to check if no file is queued for upload, then don't delete the old one.
    However, I'd recommend re-using the WP media uploader, so you can re-use uploaded images, and get all the other benefits of the WP media management system already build.

    See this post (and referenced post) for details:
    http://austinpassy.com/2010/03/creating-custom-metaboxes-and-the-built-in-uploader/

  8. alicornea
    Member
    Plugin Author

    Posted 3 years ago #

    Hi guys and thank you for your feedback. I have made the changes and please update your version of the plug in.

  9. mosne
    Member
    Posted 3 years ago #

    Hi, really useful plugin!
    unfortunately i have some issues with wordpress 3.1.3.
    Form fields appears correctly but after saving the are still blank.
    at the beginning i thought that was caused by a incompatibility with qTranslate but I've tried do deactivate it and still nothing...
    i'll stay tunned :)

  10. claudeschneider
    Member
    Posted 3 years ago #

    that worked for me, though the plugin version still showed v1.0, so didn't show as an update...

  11. claudeschneider
    Member
    Posted 3 years ago #

    However, the Category Settings page is now broken (the left nav of the admin area loads, but no HTML after that, and no useful PHP errors that I can spot.

    Also, pages/ccf_settings.php has a mistype "lable" in the HTML at line 53

  12. claudeschneider
    Member
    Posted 3 years ago #

    sorry, more bugs:

    - If I create a text field, I can't save/update values
    - categoryCustomFields.php has a typo on l.74: widht

  13. alicornea
    Member
    Plugin Author

    Posted 3 years ago #

    Please try the version 1.2

  14. claudeschneider
    Member
    Posted 3 years ago #

    Thanks for the fix - 1.2 is now allowing me to save/update text values, as well as image values.

    The Category Settings page is still blank (PHP error?), meaning I can't edit the custom fields.

  15. alicornea
    Member
    Plugin Author

    Posted 3 years ago #

    Very strange. Can I see the logs or something? I think it is a conflict with some other plug in you have.

  16. thepolarway
    Member
    Posted 3 years ago #

    Hi alicornea!
    Thank you for the fixing. Works like a charm to me right now.
    Thank you again...

    Daniel

  17. thepolarway
    Member
    Posted 3 years ago #

    Hi alicornea,

    I tried the version of the plugin and updating images is now working. However, updating other custom fields (i.e. text) is not working anymore.
    Do you have any clue on what's happening?

    Thank you in advance,

    Daniel

  18. thepolarway
    Member
    Posted 3 years ago #

    Hi all,
    I just found the fix for the problem updating text custom fields.
    You just have to replace the condition in line 28 in categoryCustomFieldsAdminHandle.php for:

    if( !(($f->field_type =='image' || $f->field_type =='file') && strlen($value)<=0))

    Hope it helps

  19. peterjanes
    Member
    Posted 3 years ago #

    @alicornea: The reason the new versions aren't showing up on http://wordpress.org/extend/plugins/ may be that the "Version" field hasn't been updated in categoryCustomFields.php. There's been no update to the Changelog in readme.txt for 1.2, either.

    Also, @claudeschneider's bug isn't completely fixed: one of the occurrences of "width" is still misspelled as "widht" on line 74 of categoryCustomFields.php.

  20. andreaamado
    Member
    Posted 3 years ago #

    I can put an image in the category, but now I decided to leave one category blank. the problem is that there is no button to remove the picture. how I do it?
    thanks

  21. rwalktheplank
    Member
    Posted 3 years ago #

    How do i call the content in the fields within index.php?

    Is it something like:
    <?php get_category_meta('video'); ?> // Where 'video' is the name of my custom field.

    Thanks in advance for your help.

  22. alicornea
    Member
    Plugin Author

    Posted 3 years ago #

    I will try to fix all the issues today and will provide a function for @rwalktheplank

  23. alicornea
    Member
    Plugin Author

    Posted 3 years ago #

    Hi all. Please use version 1.4 (don't know why it says Download version 1.0). If you whant to get the custom field of a category please use the method categoryCustomFields_GetCategoryCustomField(catID,fieldName)
    where catID is the category ID and fieldNAme the custom field for which you whant to retrieve the value. For any problems please address it on this topic.

    Cheers

  24. rwalktheplank
    Member
    Posted 3 years ago #

    I'm still having trouble getting the function to display the content:

    I'm using function as follows:

    <?php categoryCustomFields_GetCategoryCustomField($category->cat_ID,'slideshow'); ?>

    to display the contents of the field "slideshow" for all categories.

  25. alicornea
    Member
    Plugin Author

    Posted 3 years ago #

    @rwalktheplank you have to display the content :

    <?php $result = categoryCustomFields_GetCategoryCustomField($category->cat_ID,'slideshow');
    print_r($result);

    ?>

  26. Jpyper
    Member
    Posted 3 years ago #

    I can't get this to work. I'm using

    $image = categoryCustomFields_GetCategoryCustomField(120, 'Series Image');
    print_r($image);

    Series Image is the name of the custom field I created using the plugin. It's on a custom taxonomy attached to a custom post type. When I run this all I get is an empty array.

    When I go to the Edit Category screen my image field is always blank like I never uploaded an image.

    My ccf_Value field in the database is empty as well, which make me think that my uploaded image is not actually being uploaded.

    I'm running WP 3.3.1, so hopefully the plugin works with that version.

    Thanks for any help!

  27. HDready Graphic
    Member
    Posted 3 years ago #

    Hi,
    I can't use the plug-in because I've got an error :

    Parse error: syntax error, unexpected T_VARIABLE in /wp-content/plugins/categorycustomfields/pages/ccf_settings.php on line 1

    I'm using WordPress 3.3.1 with multisite and Advanced Custom Field.

    Thanks for help.

    Greg

  28. alicornea
    Member
    Plugin Author

    Posted 3 years ago #

    @HDready Graphic I will take a look later today

  29. milanno
    Member
    Posted 3 years ago #

    Here is the quick way around for the text field saving/update.

    Text fields can't be saved if you use spaced Field Name (for example: 'my field name'), however fields are correctly saved if you use Field Name without space (for example: 'myfieldname').

    I hope this was helpful and that this bug will be fixed in the new plugin version.

    Cheers!

  30. alicornea
    Member
    Plugin Author

    Posted 3 years ago #

    New version is out (1.5).
    If a custom field would have been composed of words with spaces then saving would have failed. So this fixes @milanno and @Jpyper problem.

    @HDready Graphic I couldn't reproduce your defect. I don't have multisite. Could you try without it?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Category Custom Fields
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic