Tobias Schutter
Forum Replies Created
-
Please try to disable all plugins and see if the problem still exist. If it still does try switching to a default theme (like twentyfifteen) and check again.
This wil let us know if the issue is being caused by any other plugin or your theme.
Forum: Reviews
In reply to: [Admin Columns] Promising WordPress pluginGood suggestion! We have added the Child pages column.
Cheers, Tobias
Forum: Reviews
In reply to: [Admin Columns] Bought the pro versionI have added your suggested feature to our roadmap. You can follow it’s progress on github. Thank you for taking the time to leave a review!
Forum: Plugins
In reply to: [Admin Columns] Edit Taxonomy Columns?No need to wait for it to be build, we have already done it 🙂 Admin Columns Pro let’s you create editable ACF columns, even on taxonomy pages.
Forum: Plugins
In reply to: [Admin Columns] https is not workingWhat exactly is not working? Do you get any error messages?
Forum: Plugins
In reply to: [Admin Columns] Translation not loadedHere is a small function I came up with to give all files in the “/plugin/languages/” folder presendence over their original translations. You could use this for other projects aswell.
function cpac_load_custom_plugin_translations_first( $mofile ) { $moplugin = WP_LANG_DIR . '/plugins/' . basename( $mofile ); if ( false !== strpos( $mofile, '/wp-content/plugins/' ) && file_exists( $moplugin ) ) { $mofile = $moplugin; } return $mofile; } add_filter( 'load_textdomain_mofile', 'cpac_load_custom_plugin_translations_first' );Forum: Plugins
In reply to: [Admin Columns] Translation not loadedIt seems placing the .mo file in the “plugins/languages” is not enough after all 🙁 But you can disable the first check by using ‘load_textdomain_mofile’.
Try this:function cpac_load_cpac_translation_from_theme( $mofile, $domain ) { return 'cpac' === $domain && strpos( strrev( $mofile ), strrev( 'codepress-admin-columns/languages/cpac-da_DK.mo' ) ) === 0 ? false : $mofile; } add_filter( 'load_textdomain_mofile', 'cpac_load_cpac_translation_from_theme', 10, 2 );Forum: Plugins
In reply to: [Admin Columns] Translation not loadedWithout the .mo files none of the translation will work. They are the binary ones getting loaded by WordPress.
The .po files only contains the raw translation strings, which are only used by translators. If you’d like to use these, they are either available on Transifex or in the plugin languages folder.
Overwriting any plugin language is easy. Just place your own .mo file in this folder: /wp-content/languages/plugins/cpac-da_DK.mo’. That’s it! Works for all plugins.
If you rather have your admin columns language file in a theme. Place your .mo file inside the “/languages” folder in your theme and place this code in the functions.php:
function cpac_load_cpac_translation_from_theme( $mofile, $domain ) { if ( 'cpac' === $domain ) { $mofile = get_template_directory() . '/languages/' . $domain . '-' . get_locale() . '.mo'; } return $mofile; } add_filter('load_textdomain_mofile', 'cpac_load_cpac_translation_from_theme', 10, 2 );Forum: Reviews
In reply to: [Admin Columns] This thing is a lifesaver!Hi aibrean,
Thank you for this kind review! I would love to use it on our new site, is that okay?
Best, Tobias
Forum: Plugins
In reply to: [Admin Columns] Translation not loadedThe mo files contain all translations, we have to ship them with the plugin.
If you have any improvements for the translation you can help us by translating them at Transifex. We update all our translations from there for each release. You can contribute here.
Cheers, Tobias
Forum: Plugins
In reply to: [Admin Columns] Modify plugin function outside plugin folderYes, you can use the built-in filter ‘cac/column/meta/raw_value’ or ‘cac/column/meta/value’ to change the value. In our documentation you will find an example on how to use it in your functions.php
Forum: Plugins
In reply to: [Admin Columns] Table Size to smallHi Manollo, here is a quick solution to put in your theme’s functions.php.
function my_wider_table() { ?> <style type="text/css"> #posts-filter table.fixed { table-layout: auto; } #posts-filter table.wp-list-table { min-width: 3000px; overflow-x: scroll; } </style> <?php } add_action( 'admin_head', 'my_wider_table' );You can change the min-width to whatever value you like.
Forum: Plugins
In reply to: [Admin Columns] Translation not loadedWe use the standard function “load_plugin_textdomain( ‘cpac’, …. )” for all our translations. You should be able to overwrite the textdomain with your own translations.
Forum: Plugins
In reply to: [Admin Columns] How can i show all child pages in admin custom columns?We did not add a column which displays child pages from a particular “depth”. I will add it to the roadmap for perhaps a future release.
Thank you for the suggestion! Tobias
Forum: Plugins
In reply to: [Admin Columns] Advanced custom fields capital letters in urlI will be looking into this! thank you for reporting it.