Tobias Schutter
Forum Replies Created
-
Sorry for my late reply, I was monitoring the forum post by tag instead of the support tab.
But I found a fix to this issue. Update the plugin to the current version v1.4.6 and you should be able to drag and/or hide the WordPress SEO columns again.
Please let me know if it is working properly now.
Sorry that I missed your forum post. I was monitoring it on a different tag ‘codepress-admin-columns’ instead of ‘admin-columns’. I changed my RSS feed now so I’ll won’t miss them again.
But good news, I found a fix to this issue. Update the plugin to the current version v1.4.6 and you should be able to drag/hide the WordPress SEO columns once again.
Please let me know if everything is working as you would expect.
Tobias
Hi Bert,
Currently my plugin only supports tables that are in WordPress Core. There is not an option to select another table, like the one BuddyPress has added.
Unfortunately my plugin can not help you with this at this time. I will make a note of it so I will give it another look for perhaps a feature release.
What you could do in the meanwhile is place this piece of code in your theme’s functions.php.
Make sure you change the $field_name value to your field title that you want to display:
function modify_user_table_row( $val, $column_name, $user_id ) { // edit this part $field_name = 'fill in the title of your custom buddyPress user field'; // stop editing if ( 'buddypress_field' == $column_name ) { $val = xprofile_get_field_data( $field_name, $user_id ); } return $val; } add_filter( 'manage_users_custom_column','modify_user_table_row',10,3); function add_my_custom_buddypress_user_column( $column) { $column['buddypress_field'] = 'buddypress_field'; return $column; } add_filter( 'manage_users_columns', 'add_my_custom_buddypress_user_column' );Hope this helps you on your way 🙂
Tobias
Forum: Plugins
In reply to: [Admin Columns] [Plugin: Codepress Admin Columns] make columns sortable ?Thanks for the thumbs up! These kind of comments are a joy to read and help me continue improving Codepress Admin Columns 🙂
If you don’t mind adding a piece of code to your theme’s functions.php, you could add the following:
if ( class_exists('CCTM') ) { remove_action('manage_posts_custom_column', array(CCTM::$Columns, 'populate_custom_column_data')); remove_action('manage_pages_custom_column', array(CCTM::$Columns, 'populate_custom_column_data')); }This will remove the added columns (and it’s output) that are set by Custom Content Type Manager.
Let me know if this works for you. If I find a better way I will let you know.
The output you see in the example above is generated by custom Content Type Manager. I don’t have a fix for that, as the values I set will be overwritten by this plugin.
The only thing you could try is add this piece of code to your theme’s functions.php. This will remove the added columns (and it’s output) that are set by Custom content Type Manager.
if ( class_exists('CCTM') ) { remove_action('manage_posts_custom_column', array(CCTM::$Columns, 'populate_custom_column_data')); remove_action('manage_pages_custom_column', array(CCTM::$Columns, 'populate_custom_column_data')); }Let me know if this works for you.
Hi Dave, the output “The column-meta-2 field is not defined as a custom field” is generated by Custom Content Type Manager. I have no control over this output, so unfortunately I can not implement a fix for this. Perhaps the author of Custom Content Type Manager could help you with your issue.
Hi Oliver,
My plugin only supports the date format which is used internally by WordPress. That is ‘Year-month-day hours:minutes:seconds’ all in digits.
php example:
// displays the current time in the correct date format // to be saved into a custom field for example $current_time = date('Y-m-d H:i:s'); echo $current_time; // would result in something like "2012-07-17 21:56:30"So in order to have the correct sorting output, you would need to save your dates as such:
2012-11-02
2012-08-03
2012-10-05Tobias
Forum: Plugins
In reply to: [Admin Columns] [Plugin: Codepress Admin Columns] Filter Column Names wrong…I have added the filters so you can hook into them as you like without messing with the plugin’s code. I haven’t found the time yet to document each filter, maybe I will put this example in the FAQ if it works out for you.
But I will try to help you here. In some cases it can even be easier to just use the wordpress core hooks and filters to control the value output of each column. My plugin uses the same.
What would you like to be the output of column? and what is the input exactly?
If you want to change the output of any custom field column you can also use another build in filter. Here’s an example:
add_filter('cpac_get_column_value_custom_field', 'my_custom_value', 10, 3); function my_custom_value( $meta, $fieldtype, $field ) { // change output on custom-fields KEY if ( 'my_custom_field_key' == $field ) $meta = 'my custom text'; // change output on custom-fields VALUE if ( 'my_custom_field_value' == $meta ) $meta = 'another custom text'; return $meta; }Hope this can help you get started 🙂
True, my column plugin overwrites the default value for added user columns. Which it should not do ofcourse! Doh…
I have a fix ready for this in the next release ( 1.4.6 and up). This will no longer cause my plugin to overwrite any default values which are set by other plugins – including Register IP – Multisite 🙂
Thanks for looking into it Mika.
Tobias
Forum: Plugins
In reply to: [Admin Columns] [Plugin: Codepress Admin Columns] Search Results not SortingHi Jendinsho,
I have tested it and it should work fine. Let me see if we can solve this.
A couple of things you could check:
1. Is it a valid date format you are saving in your custom fields?
Should be something like “2012-09-01 06:32” or “2012-09-01”. You can check this by going to your post and lookup the value of your custom-date-field in the “Custom Fields” Metabox. ( make sure your screen options “Custom Fields” is checked )2. Is the custom field type set to “Date”?
Go to the Admin Columns settings page and check if the “Field Type:” of the custom field is set to “Date”.Tobias
[ Signature moderated. ]Hi Bamajr, I could easily reproduce this issue thanks your explanation. I have a fix ready for this and will implement it in the next release ( 1.4.6 and up ).
If you want a beta release just send me your email and I will send you a copy.
Tobias
Hi,
Thanks for letting me know what caused it. Good to know it was not my plugin =)
Best,
Tobias Schutter
[ Signature moderated. ]I have been working on better support for wooCommerce columns, this will be in the next release v1.4.5 and up.
For generating the thumbnails I use a custom defined dimension of 80 x 80 pixels. What dimensions does your ‘normal picture’ have?
Tobias
[ Signature moderated. ]That is correct. The button will only show when there are custom fields available.