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 Mediabutton, - Choose the
Upload Filestab on theCreate Gallerypage, - Upload DICOM data (as the one from the DWV test data),
- It should be selected in the
Media Librarytab, - Note: DICOM data may not show in the media list, in that case, choose the
DICOMoption in the first drop down on the search line, - Click the
Create a new gallerybutton, - No need to change the DICOM files order in the
Edit Gallerypage, it will be set by the viewer; what you can do is choose the size in theSettingscolumn (thumbnail,mediumorlarge), - Click the
Insert gallerybutton, - This brings you back to the editor and adds the
galleryshortcode to the post, - Click the
Preview Changesbutton 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"]