Remove image from post also removes photo from media library

Don’t know if there is an easy way out but you can do this to achieve: Introduce an admin js in your functions.php like this: //Admin JS add_action(‘admin_init’, ‘custom_admin_js’); function custom_admin_js() { wp_register_script( ‘admin-js’, get_stylesheet_directory_uri() . ‘/js/admin.js’ ); wp_enqueue_script( ‘admin-js’ ); } The js file will go in the theme you are using make another … Read more

Adding graphics to 404.php page

How are you changing the text and links? If you’re editing a 404.php file, then you simply need to add html to output whatever images you want, i.e.: <img src=”https://www.google.com/images/logos/ps_logo2.png” /> Will output this: For more on HTML, check out w3schools.com’s excellent material: http://www.w3schools.com/html/

Retrieving images from a NextGEN gallery

For anyone interested I found a solution to what I wanted. You simply need to create a custom template Then I accessed the images like this: <?php foreach ($images as $image) : ?> <?php echo do_shortcode(‘[singlepic id=”‘ . $image->pid . ‘”]’); ?> <?php endforeach; ?>