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; ?>

Add a featured image in my theme?

You need to add theme support in the functions.php file of your active theme like this: if ( function_exists( ‘add_theme_support’ ) ) { add_theme_support( ‘post-thumbnails’ ); } To enable it within a custom post type, you will need to do so when registering your post type with the supports argument, so you’ll need to add … Read more

Link Featured Thumb to Attachment Page, If Possible

Question 1: How do you link Featured Image to its Attachment Page In the loop: <?php if( has_post_thumbnail() ) : ?> <a href=”https://wordpress.stackexchange.com/questions/52394/<?php echo get_attachment_link( get_post_thumbnail_id() ); ?>”> <?php the_post_thumbnail(); ?> </a> <?php endif; ?> Question 2: Post Format Templating Post formats are actually just a custom taxonomy with a fancy UI. Hence, you should … Read more