Tobias Schutter
Forum Replies Created
-
Unfortunately I could not reproduce your issues with CCTM enabled. It could well be any of the many different setting combination that CCTM has. I also noticed that CCTM has a sorting option from itself, which might have a conflict.
CCTM had another issue, perhaps it is related, not sure. The thread is here.
I have a fix ready for this. I will include this in the next release v1.4.6.5.
In the meanwhile you can change the code to:
public function handle_requests() { // only handle updates from the admin columns page if ( isset($_REQUEST['page']) && CPAC_SLUG == $_REQUEST['page'] ) { // settings updated if ( ! empty($_REQUEST['settings-updated']) ) { $this->store_wp_default_columns(); } // restore defaults if ( ! empty($_REQUEST['cpac-restore-defaults']) ) { $this->restore_defaults(); } } }Thanks for spotting that. I will include a fix in the next release of Codepress Admin Columns (v1.4.6.5), so it can no longer interfere with possible setting-updates from other plugins.
After you upgrade make sure to go to the admin columns settings page and click “save changes”. And thanks for reporting it.
I have put up a fix for that in version 1.4.6.4.
Let me know if that fixes it.
That is a bug that slipped through. I have a patch commited now. Try version 1.4.6.4, should be up soon.
If you just want to remove the columns, I would suggest using the filter.
If you want more control over them the use Codepress Admin Columns. It will again support all columns set by WordPress SEO. It will save your column settings across all users and you can set the columns for Pages and Posts(types) in one convenient place.
Forum: Plugins
In reply to: [Admin Columns] [Plugin: Codepress Admin Columns] Add 'Sticky' ColumnIt seems a theme related error because I can not reproduce this error with other themes. It could well be that this theme has it’s own version for ‘sticky posts’.
WordPress does only support stickies on the “Posts” posttype. And my plugin will display a sticky-column for this posttype.
This error has been fixed in version 0.2 of Column Shortcodes. Please mark as resolved.
This is a duplicated forum post of:
http://wordpress.org/support/topic/plugin-column-shortcodes-codestyling-localization-column-shortcodes-malfunction?replies=2That would be much simpeler indeed… Well as long as you know a little bit of coding 🙂
But this hook has been long on my list, and I will be adding it to the next release v1.4.6.3. There was already a hook in place but that one did not pass sufficient variables to be of good use. So the new one will pass 2 additional variables.
add_filter( 'cpac_get_column_value_custom_field', 'my_custom_field_value', 10, 5 );Filter explained:
$value is the orignal value which would otherwise be displayed
$internal_field_key is only used internally to store the column
$custom_field is the name of your custom field
$type will return either the posttype or if it is any other type it will return wp-comments, wp-links, wp-users, wp-media.
$object_id will return the ID of the object.See following example:
function my_custom_field_value( $value, $internal_field_key, $custom_field, $type, $object_id ) { $my_post_type = 'page'; $my_field_name = 'city'; // make sure we have the correct posttype and fieldname if ( $my_post_type == $type && $my_field_name == $custom_field ) { if ( '33' == $value ) $value = 'Amsterdam'; elseif ( '34' == $value ) $value = 'New York'; } return $value; } add_filter( 'cpac_get_column_value_custom_field', 'my_custom_field_value', 10, 5 );This will be in the FAQ section aswell. But now you have a good idea what to expect.
The new release will be soon available.
Forum: Plugins
In reply to: [Admin Columns] [Plugin: Codepress Admin Columns] Filter Column Names wrong…Hi Bart, Good News. I have made adjustments to the filter to give better control. There will be an easy to understand example in the FAQ section.
The release is not out yet but the fix will be included in v1.4.6.3
If you need a beta release just send me a PM and I will send you one!
I will have a look and let you know.
@2046 Thanks for the heads up. Since the latest release of WordPress SEO, my admin columns plugin no longer controls it’s columns. I will see what I can do to fix this.
Forum: Plugins
In reply to: [Admin Columns] [Plugin: Codepress Admin Columns] Last revisorMy plugin “Codepress Admin Columns” doesn’t add any data to your pages or posts. It will add columns and fill it with existing data that is available.
If you have the data for “who revised pages/posts and when” stored in your post/page as metada you would be able to display it in a column.
If you do not have this data stored, you’ll won’t be able to display it. Perhaps you should then look for an additional plugin that will store this data for you, but I am not sure if it exists.
When you got the sorting addon it will make all supported columns sortable. There is no option yet to turn sorting of for a particular column. I can see why it would be usefull, I will put it on my list.