Trouble figuring out how to get my button to submit comment

Try this. You were missing the tags and the “type” attribute for the tag. The php tag at the bottom echo’s the result that was input in the textarea. Read this http://www.w3schools.com/html/html_forms.asp it should help you get started. <div class=”font-wrap”> <div class=”wrapper”> <form action=”” method=”post”> <textarea name=”comment” id=”comment” class=”talk-bubblecomment” tabindex=”4″ placeholder=”Enter comment…”></textarea> <p class=”sign-in”> Post … Read more

Where is the POST response body generated in PHP? [closed]

The answer is, anything that is echod after the POST request, is sent back to the requester via the RESPONSE body. Thus any echo statements issued after processing whatever was sent via the $_POST is generated and sent back. In this template’s case, it would be better to re-direct the user immediately to a new … Read more

Load files content [closed]

You should use WordPress’s built in function wp_enqueue_style for loading styles. /** * Proper way to enqueue scripts and styles */ function wpdocs_theme_name_scripts() { wp_enqueue_style( ‘style-name’, get_stylesheet_uri() ); wp_enqueue_script( ‘script-name’, get_template_directory_uri() . ‘/js/example.js’, array(), ‘1.0.0’, true ); } add_action( ‘wp_enqueue_scripts’, ‘wpdocs_theme_name_scripts’ ); https://developer.wordpress.org/reference/functions/wp_enqueue_style/

Place max_execution_time in plugin [closed]

yes you can, but this will be applied to all the requests to the site which might actually bring it down if you have some infinite loop somewhere. A better way to do it is to find an action that is being used specifically in the upload process and call it only for that action.

Wrap every 2 divs in row – for each loop [closed]

You need to create a variable with the count and then check against it e.g. $num = 1; foreach ( $terms as $term ) { if($num%2) { echo ‘<div class=”something”>’; } // other stuff if($num %2) { echo ‘</div>’; } $num++ } The %2 is the part you need, it checks whether the number is … Read more

Load a Header in wordpress

You’re really close – get_header_image() returns the URL of the image, whereas header_image() echo’s out the URL. Because you’re setting your style tag in a variable and then echo’ing that, you need to use the function that returns the header image URL – so, like this: $banner=”style=”background-image:url(“. get_header_image() .’);”‘; Using header_image() will, as you found, … Read more

Query category name by variable

It seems that you miss some PHP basics? http://php.net/manual/en/language.operators.string.php Anyhow, This $post_categoria = new WP_Query(‘category_name=name-category’); Should become this: $post_categoria = new WP_Query(‘category_name=” . $nisola);