What I want to do is make my Home Page. I can do it this way:

  1. Create a page and insert my gallery from plugin with that code [wonderplugin_gridgallery id=1]

  2. Set that page as HomePage.

BUT THAT IS NOT WORKING. When I add this code [wonderplugin_gridgallery id=1] to my page, I can see only code… The same doesn’t work <?php echo do_shortcode('[wonderplugin_gridgallery id=1]'); ?> (hidden).

How to fix it? I don’t know how to find the file to fix in FTP. Themes Virtue.

I hope you understand what I am writing about. Thank you in advance.

2 Answers
2

Depending on what post editor you are using:

  • Classic – make sure to switch the editor to “Text” instead of “Visual”. The latter will output anything you write in a form of text, while the first one will process the shortcode.
  • Gutenberg – find a plus sign in the top-left area of your WordPress dashboard and add a “Shortcode” block.

If you add the shortcode manually to the file, make sure it’s before the closing PHP tag: ?>

Leave a Reply

Your email address will not be published. Required fields are marked *