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 Media
button, - Choose the
Upload Files
tab on theInsert Media
page, - Upload DICOM data (as this dicompyler-ct.0.dcm from the DWV test data),
- It should be selected in the
Media Library
tab, - Click the
Insert into post
button, - This brings you back to the editor and adds the
dcm
shortcode to the post, - Click the
Preview Changes
button 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.