Shortcode doesn’t work in Text Widget nor Custom HTML
-
Hi there,
I have tried to call the recent posts from the Text widget first but it didn’t work.
Then I have added the
// Filter for Custom HTML widget
add_filter(‘widget_text’, ‘do_shortcode’);
to the functions.php and tried that way. It still doesn’t show up.
Instead, it shows the shortcode itself [display-posts post_per_page='2'].Can I get some help, please?
-
-
The website is https://ripplezdesign.com/ but I was trying to resolve this localhost so far. Shall I upload the previously mentioned widgets live and give you my login for the cms?
-
Hi there,
Your site is not hosted on WordPress.com, but using the open source WordPress.org software at another hosting provider. Your localhost installation also uses that version of the WordPress software.
We cannot help with this in the WordPress.com forums.
Please post in the self-hosted WordPress forums instead for help:
-
The WordPress software does not include a display posts shortcode by default. If you’re using the Display Posts Shortcode plugin to add that, you can find support for that plugin at https://wordpress.org/support/plugin/display-posts-shortcode/
-
- The topic ‘Shortcode doesn’t work in Text Widget nor Custom HTML’ is closed to new replies.