
Tagged: shortcode not rendering
-
AuthorPosts
-
June 3, 2025 at 11:35 am #1485017
Hi,
while trying different methods to implement shortcodes (as text, html block-type shortcode and content-elment “code”, in the main site , the footer or the widget) the shortcode is not rendererd and always occurs literally as shortcode.
So, for e.g. [pagelist] doesn’t show a list of all pager but “[pagelist]”.
Due to every shortcode I tried.
I found in an very old topic from 2013 that there was a problem in the functions.php, but this seems not to be the case here.
How to troubleshoot this problem?
A link of example in the private area.
June 4, 2025 at 5:36 am #1485059Hey slikslok,
Thank you for the inquiry.
Are you using the Page-list plugin? Please provide the login details in the private field so we can check the issue further. Make sure that the Appearance > Theme File Editor is accessible.
Best regards,
IsmaelJune 4, 2025 at 8:22 am #1485065Hi Ismael,
No plugin, As I said, EVERY shortcode is not rendered!
Setup a Admin-Account for you.And there is a strange thing happening: I use a php-snippet with the Plugin code snippet. I run it on the site mentioned in the private area. There I activate a List with child-pages, which works fine – but only for some ours (or logout). Then the settings are overwirtten. If you set “Child Pages Top Level Shortdode” to “Enable at end of content”, it works. Some hours later the checkbox is empty and the snippet is ignored! Very strange.
I guess its a caching-issue (all cachings are disabled everywhere!), bacause there is another problem: when refreshing a page after editing something in snippets, it is not laoded. If I do a hard-reset of the site it works.
June 5, 2025 at 6:13 am #1485104Hi,
The shortcodes [list-pages], [sibling-pages] and [child-pages] are not included in WordPress by default. To use these shortcodes, you’ll need to install a plugin called “List Pages Shortcode”.
When we added a WPForms shortcode to the code block element, the contact form rendered correctly, confirming that shortcodes are functioning as expected.
This a list of available WordPress shortcodes:
— https://wordpress.com/support/wordpress-editor/blocks/shortcode-block/#available-shortcodes
Best regards,
IsmaelJune 6, 2025 at 4:07 pm #1485153Ok, so the shortcode thing is cleared. My own shortcodes written with php then seems to be with failures.
But you didn’t answered about this:
And there is a strange thing happening: I use a php-snippet with the Plugin code snippet. I run it on the site mentioned in the private area. There I activate a List with child-pages, which works fine – but only for some ours (or logout). Then the settings are overwirtten. If you set “Child Pages Top Level Shortdode” to “Enable at end of content”, it works. Some hours later the checkbox is empty and the snippet is ignored! Very strange.
I guess its a caching-issue (all cachings are disabled everywhere!), bacause there is another problem: when refreshing a page after editing something in snippets, it is not laoded. If I do a hard-reset of the site it works.
-
AuthorPosts
- You must be logged in to reply to this topic.