Can I list a custom post type within another custom post type in the admin area?

Yes, you can. You would need to add a custom field that would store the ID of other post type. I would recommend using a select list. You could try something along these lines: add_action( ‘add_meta_boxes’, ‘wpse_143600_add_box’ ); add_action( ‘save_post’, ‘143600_save_box’ ); //create the metabox function wpse_143600_add_box() { add_meta_box( ‘related_testimonial’, __( ‘Testimonails’, ‘wpse_143600_translation’ ), ‘wpse_143600_testimonial_box’, … Read more

Deleting Custom Taxonomy Term only increments tag_ID

I’m not sure why you’re seeing the ID increment, however one problem is that your function call to get_terms() needs to include an array of taxonomy names as the first parameter. In your case, you just need to include an array with a single taxonomy name. For example: $existing_terms = get_terms(array(‘custom_taxonomy’), array( ‘hide_empty’ => false … Read more

How to Mass Delete Images from Media Library

You can do it with native WordPress codex calls like this ( source http://badlywired.com/technical-stuff/2014/11/10/code-to-delete-all-images-from-wordpress-or-nearly-all/ ) <?php /* create this code in a file in the main wordpress directory e.g. delmedia.php and access it via mydomain.com/delmedia.php */ // Include the wp-load’er include(‘wp-load.php’); $args= array( ‘post_type’ => ‘book’, // obvious ‘posts_per_page’ => -1 // get them all … Read more

Custom post type is showing custom home page, not archive page

As per the OP’s answer that was added in their question, I’ve separated it instead. In short: …deactivating and reactivating plugins, commenting and uncommenting, I now have my site working as intended. Here’s the elaboration given by the OP as well: I have a couple of custom post types in my functions.php file. Each one … Read more