Note: it is recommended to use the ‘Dicom’ block, these steps are for wordpress version < 5 (before blocks)
The gallery allows to load more than one slice and activates the scroll button. The steps to add DICOM files to a gallery are similar than for images. They are:
- In the post editor, click the
Add Media
button, - Choose the
Upload Files
tab on theCreate Gallery
page, - Upload DICOM data (as the one from the DWV test data),
- It should be selected in the
Media Library
tab, - Note: DICOM data may not show in the media list, in that case, choose the
DICOM
option in the first drop down on the search line, - Click the
Create a new gallery
button, - No need to change the DICOM files order in the
Edit Gallery
page, it will be set by the viewer; what you can do is choose the size in theSettings
column (thumbnail
,medium
orlarge
), - Click the
Insert gallery
button, - This brings you back to the editor and adds the
gallery
shortcode to the post, - Click the
Preview Changes
button to see it in action!
You can write the gallery
shortcode yourself but for that you will need to know the ids of the files you want. The result looks like:
[
gallery size="large" ids="233,234,235,236,237,238,239,240,241,242"
]