My primary issue arises when creating a textarea field in one of my Ultimate Member forms. Despite setting the height to 800px, it still displays at 100px when viewed, and links are not visible. What could be causing this, and is there a way to override it?
]]>I have browsed this forum and not seen this specific question, though I did see other post about nonloading forms under conditions different from ours. I also read up on Ajax vs page reload (I am using Ajax for Behavior, which seemed to be the recommended method) and now understand the difference conceptually (reloading changed elements only vs. reloading the full page). I am not a developer by any means; together Vito and I looked at source code to see if we could find where the form loading did not happen, and there did not seem to be a difference between what I was seeing and what he was seeing.
]]>//DESCRIZIONE -DE
add_action( 'add_meta_boxes_post', "description_de_add_meta_box" );
/*
* Routine to add a meta box. Called via a filter hook once WordPress is initialized
*/
function description_de_add_meta_box(){
add_meta_box(
"description_de_meta_box", // An ID for the Meta Box. Make it unique to your plugin
__( "Descrizione_DE", 'textdomain' ), // The title for your Meta Box
"description_de_meta_box_render", // A callback function to fill the Meta Box with the desired UI in the editor
"post", // The screen name - in this case the name of our custom post type
"side" // The context or placement for the meta box. Choose "normal", "side" or "advanced"
);
}
/*
* Routine to display a custom meta box editor
* Note: In this example our custom meta data is saved as a row in the postmeta database table.
* $post PostObject An object representing a WordPress post that is currently being loaded in the post editor.
*/
function description_de_meta_box_render( $post ){
// Get the name and display it in a text field
$description_de = get_post_meta( $post->ID, "description_de", true );
echo '<div><textarea id="description_de" name="description_de" rows="5" cols="30" class="regular-text" style="width: 700px;" value="'.$description_de.'" placeholder="Descrizione-DE" /></textarea></div>';
}
// Hook into the save routine for posts
add_action( 'save_post', 'description_de_meta_box_save');
/*
* Routine to save the custom post meta data from the editor
* Note: We retrieve the form data through the PHP Global $_POST
* $post_id int The ID of the post being saved
*/
function description_de_meta_box_save( $post_id ){
// Check to see if this is our custom post type (remove this check if applying the meta box globally)
if($_POST['post_type'] == "post"){
// Retrieve the values from the form
$description_de = $_POST['description_de'];
// Clean, sanitize and validate the input as appropriate
// Save the updated data into the custom post meta database table
update_post_meta( $post_id, 'description_de', sanitize_textarea_field( $_POST['description_de']));
]]> <textarea id="periodo_affitti" name="periodo_affitti"rows="5" cols="30" class="regular-text" ><?php echo esc_attr( get_the_author_meta( 'periodo_affitti', $user->ID ) ); ?></textarea><br />
<span class="periodo_affitti">periodo affitti</span>
]]>Is there any way to do this? All I’ve managed to do is to get only one Custom Field and in a single text line, not in a text area…
Thanks in advance!!!
]]>I’ve got a problem with Phlox theme in combination with Contact Form 7.
I can’t adjust the height of the textarea. CSS ist not working as well as the option from CF7 (x5 or x10 for expample).
It seem that the theme has a style that says that a textarea field has a minimum height. In my case 11 lines. Making it bigger than these 11 lines works (x15).
It must be a “limitation” of the Phlox theme as the WP standard theme “Twenty Twenty-One” doesn’t have that limitiation.
I hope there is a solution.
Regards,
Andreas
I’d like to use this:
<a href="#" onclick="document.querySelector('.mwai-input textarea').value += 'test'; return false;">Test</a>
To copy some text without input but send button don’t work if I do so. Is like textarea don’t listen the text inside. Thanks for every support.
]]>