My connecting URL form in html to PHP does not work

I suspect the cause of your problems is here: $video = $_POST[‘subject’]; if ($video == true){ For example, if our subject is https://www.youtube.com/watch?v=dQw4w9WgXcQ then the check is: if ( ‘https://www.youtube.com/watch?v=dQw4w9WgXcQ’ == true ) And we know that true is not https://www.youtube.com/watch?v=dQw4w9WgXcQ, so the check here is incorrect. What we want is to check if $video … Read more

How to add text before posts

Ok, you are using shamrock theme. To add the desirable header you can insert in header.php right after tag following code: <?php if(is_frontpage()) : ?> <div class=”head-title”> <p class=”about-me”>your text</p> </div> <?php endif; ?> Please, note, that if you want to get updates your theme, you should create child wordpress theme with custom header.php file

Custom SportsPress list

field parameter of tax_query must be one of ‘term_id’, ‘name’, ‘slug’ or ‘term_taxonomy_id’. In your case it will be ‘term_id’, which is also the default value. https://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_Parameters

Altered Media Library URLs

If you add this in the functions.php file in your themes folder: add_filter(‘upload_dir’, ‘new_upload_dir’); function new_upload_dir( $param ){ $mydir=”/wp-content/uploads”; $param[‘path’] = $param[‘path’] . $mydir; $param[‘url’] = $param[‘url’] . $mydir; error_log(“path={$param[‘path’]}”); error_log(“url={$param[‘url’]}”); error_log(“subdir={$param[‘subdir’]}”); error_log(“basedir={$param[‘basedir’]}”); error_log(“baseurl={$param[‘baseurl’]}”); error_log(“error={$param[‘error’]}”); return $param; } It should change the directory the images are uploaded into.

external Integration with wordpress timeout error

Just in case anyone else stumbles upon the same problem, here is the most robust disabling I could think of, and it seems to work as expected: ini_set(‘max_execution_time’, 0); set_time_limit(0); ignore_user_abort(true); ini_set(‘output_buffering’, ‘off’); ini_set(‘zlib.output_compression’, false); ini_set(‘implicit_flush’, true); ob_implicit_flush(true); while (ob_get_level()) { ob_end_flush(); } flush();