Using Gutenberg and Twenty-TwentyThree. When I add a shortcode to a wiki page, it works fine at first but after a few edits to other parts of the page, the shortcode vanishes.
The page I need help with: [log in to see the link]
I have a test site with the free Kadence theme and the Yada Wiki plugin installed. I went to the settings and enabled Gutenberg for Yada Wiki pages. I created wiki pages adding the shortcode block, pasting in a shortcode, saving, and then switching to Code view, editing the content, switching back, saving, viewing on the front. I also tried editing existing wiki pages, converting to blocks and repeating the above steps. I also tried editing existing wiki page and not converting to blocks and editing in the classic editor block as above. I didn’t run into the issue.
Perhaps it is the theme or another plugin? Or maybe when you are pasting in the shortcode, the characters being pasted are HTML entities and not the characters (I don’t know if that is possible or matters, just guessing to try to help troubleshoot).
I have been unable to get clear steps to reproduce this problem although it has happened again. What I can reproduce is that if I add a shortcode to a YadaWiki page, it displays out of line:
So I put the shortcode link within a paragraph. It then lines up correctly but when I go back to edit in HTML. I see additional </p> and <p> tags have been inserted and the shortcode is again out of line.
My problem was caused by using wrong DoubleQuote characters in my shortcode. I had a list of my wiki pagenames from a LibreOffice document with “ instead of ” – I am now building my shortcode strings in NotePad++ and I am having no problems.