TroyDesign.IT
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Move custom meta box above editorHello Shaun, there are many way to do that. The simpler, I think, is to output a style in the head.
I have updated my solution here:
https://software.troydesign.it/php/wordpress/move-wp-visual-editor.html
look at “action_admin_head”.Forum: Plugins
In reply to: [WooCommerce] Woocommerce widget, layered navHello, i have a similar problem… I have last version of woocommerce(and wordpress) and layered nav widget is displayed but woocommerce_layered_nav_init is never executed and so filters don’t work. I had to create another plugin with 2 simple line:
remove_action( ‘init’, ‘woocommerce_layered_nav_init’, 1 );
add_action( ‘init’, ‘woocommerce_layered_nav_init’, 2 );Hello,
sorry for my intrusion.
Somebody contacted me to have my hack(that i wrote above) to let an user edit his entry(without using directory addon).
For people who are interested, i posted a simple plugin here:
https://software.troydesign.it/php/wordpress/adminsingle-gravity-forms-add-on.htmlForum: Fixing WordPress
In reply to: Move custom meta box above editorJust a small correction.
The function the_editor is deprecated(but still works) in WP3.3, use wp_editor instead.Forum: Fixing WordPress
In reply to: Move custom meta box above editorYou are welcome ??
P.S.
Tested on versions 3.2.1 and 3.3.1Forum: Fixing WordPress
In reply to: Move custom meta box above editor… but I’m looking for a WordPress only solution, if one exists.
My solution:
add_action( 'add_meta_boxes', 'action_add_meta_boxes', 0 ); function action_add_meta_boxes() { global $_wp_post_type_features; if (isset($_wp_post_type_features['post']['editor']) && $_wp_post_type_features['post']['editor']) { unset($_wp_post_type_features['post']['editor']); add_meta_box( 'description_section', __('Description'), 'inner_custom_box', 'post', 'normal', 'high' ); } if (isset($_wp_post_type_features['page']['editor']) && $_wp_post_type_features['page']['editor']) { unset($_wp_post_type_features['page']['editor']); add_meta_box( 'description_sectionid', __('Description'), 'inner_custom_box', 'page', 'normal', 'high' ); } } function inner_custom_box( $post ) { the_editor($post->post_content); }
Hello, i use a workaround that allow users to add/edit/delete their entries or add/edit a unique entry for user (like a profile)… and i use it to display forms(and directories) in the dashboard, so it looks like a Use Control Panel.
The problem is that it requires a code hack (just one line in gravityforms/form_display.php) because gravityforms doesn’t seem to support entry editing(execpt via admin that inhibits some functions like captcha, required fields check etc).
At the moment i haven’t found another way to do this.
If you are interested to hack gravityforms code(1 line!), i will be glad to share my code.