Note: it is recommended to use the ‘Dicom’ block, these steps are for wordpress version < 5 (before blocks)
The steps to add a DICOM file to a post are similar than adding an image except you do not have a preview in the editor. They are:
- In the post editor, click the
Add Mediabutton, - Choose the
Upload Filestab on theInsert Mediapage, - Upload DICOM data (as this dicompyler-ct.0.dcm from the DWV test data),
- It should be selected in the
Media Librarytab, - Click the
Insert into postbutton, - This brings you back to the editor and adds the
dcmshortcode to the post, - Click the
Preview Changesbutton to see it in action!
Or if you want to write the short-code yourself:
[dcm src="https://path/to/file.dcm"]
The shortcode accepts optional width and height arguments.