Using RoyalSlider with the new wordpress post options.

chrisfawkes's Avatar

chrisfawkes

07 Dec, 2018 02:22 PM

I had a bit of dicking around trying to add the shortcode but seem to have worked it out.

Posting here in case anyone else is having trouble. If there is a better way i'm interested to hear it.

I start in the visual editor and select Gallery. Once added I go to the three vertical dots in the top right corner and from the drop down menu select the html editor. This is what I get

----------------------

<!-- wp:gallery {"ids":[8958,8555,8522,8518,8520,8511,8508,8509,8510,8500,8501]} -->
<ul class="wp-block-gallery columns-3 is-cropped"><li class="blocks-gallery-item"><figure><img src="https://chrisfawkes.com/blog/wp-content/uploads/2018/12/Chloe-Cat.jpg" alt="" data-id="8958" data-link="https://chrisfawkes.com/blog/chloe-cat/" class="wp-image-8958"/></figure></li><li class="blocks-gallery-item"><figure><img src="https://chrisfawkes.com/blog/wp-content/uploads/2017/12/sunset2017.jpg" alt="" data-id="8555" data-link="https://chrisfawkes.com/blog/2018/11/14/test__trashed-2/sunset2017/" class="wp-image-8555"/></figure></li><li class="blocks-gallery-item"><figure><img src="https://chrisfawkes.com/blog/wp-content/uploads/2017/10/bannockburnstation.jpg" alt="" data-id="8522" data-link="https://chrisfawkes.com/blog/2017/10/19/geelong-coffee-my-recommendations/bannockburnstation/" class="wp-image-8522"/></figure></li><li class="blocks-gallery-item"><figure><img src="https://chrisfawkes.com/blog/wp-content/uploads/2017/10/stmarksrainbw.jpg" alt="" data-id="8518" data-link="https://chrisfawkes.com/blog/2018/11/14/venice__trashed/stmarksrainbw/" class="wp-image-8518"/></figure></li><li class="blocks-gallery-item"><figure><img src="https://chrisfawkes.com/blog/wp-content/uploads/2017/10/bannockburnstation-bw.jpg" alt="" data-id="8520" data-link="https://chrisfawkes.com/blog/2018/11/21/__trashed-2/bannockburnstation-bw/" class="wp-image-8520"/></figure></li><li class="blocks-gallery-item"><figure><img src="https://chrisfawkes.com/blog/wp-content/uploads/2017/06/Mgarden.jpg" alt="" data-id="8511" data-link="https://chrisfawkes.com/blog/2018/11/15/my-goddaughter__trashed/mgarden/" class="wp-image-8511"/></figure></li><li class="blocks-gallery-item"><figure><img src="https://chrisfawkes.com/blog/wp-content/uploads/2017/05/IMG_6981.jpg" alt="" data-id="8508" data-link="https://chrisfawkes.com/blog/img_6981/" class="wp-image-8508"/></figure></li><li class="blocks-gallery-item"><figure><img src="https://chrisfawkes.com/blog/wp-content/uploads/2017/05/web1.jpg" alt="" data-id="8509" data-link="https://chrisfawkes.com/blog/web1/" class="wp-image-8509"/></figure></li><li class="blocks-gallery-item"><figure><img src="https://chrisfawkes.com/blog/wp-content/uploads/2017/06/Mahalah-ChrisWeb.jpg" alt="" data-id="8510" data-link="https://chrisfawkes.com/blog/2018/11/15/my-goddaughter__trashed/mahalah-chrisweb/" class="wp-image-8510"/></figure></li><li class="blocks-gallery-item"><figure><img src="https://chrisfawkes.com/blog/wp-content/uploads/2017/04/Screen-Shot-2017-04-05-at-1.59.14-AM.png" alt="" data-id="8500" data-link="https://chrisfawkes.com/blog/2018/11/15/my-goddaughter__trashed/screen-shot-2017-04-05-at-1-59-14-am/" class="wp-image-8500"/></figure></li><li class="blocks-gallery-item"><figure><img src="https://chrisfawkes.com/blog/wp-content/uploads/2017/04/Screen-Shot-2017-04-05-at-2.05.55-AM.png" alt="" data-id="8501" data-link="https://chrisfawkes.com/blog/screen-shot-2017-04-05-at-2-05-55-am/" class="wp-image-8501"/></figure></li></ul>
<!-- /wp:gallery -->

-----------------------

The only thing I need out of all of that is the id's on the first line. So now I post the following above the code

[gallery royalslider="1" ids=" "]

and copy and past in the id's between the quotation marks, just the numbers.

Then delete the rest of the code.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac