Image not displayed

The first thing to check with a ‘headers already sent by…’ error is that you have no white space at the very start or the end of your php file. Check your images-options.php file and remove any errant space at the very start or the end of your code.

How can I demonstrate themes well?

Use a multisite installation. Let the main site be your announcement page and at least on sub-site the theme demo site. Then you can use special content like WP Test on that site. Some themes might require special content, like a shop theme that needs products. You can use another, separate sub-site for these themes.

Trouble creating custom sanitization function when uploading video files

validate_file doesn’t quite work the way you’re expecting it to – it checks if $file is in the allowed files array, not just its extension/mime type. You’re looking for wp_check_filetype. However, all that ultimately does is check the extension (i.e. it doesn’t read the headers of the file/ascertain the mime type otherwise). Unless you implement … Read more

Show category and description

Just need to use get_categories and a foreach $cats = get_categories(); if ( !empty( $cats ) && !is_wp_error( $cats ) ){ foreach ( $cats as $cat ) { echo ‘<h1 class=”categoryTitle”><a href=”‘.get_category_link( $cat->term_id ).'”>’.$cat->name.'</a></h1>’; echo ‘<p class=”cateSubTitle”>’.$cat->description.'</p>’; } } To Add each one in it’s own div, just add a tag after the foreach e.g. … Read more