Title: Plugin not working with shortcode on static page
Last modified: August 31, 2016

---

# Plugin not working with shortcode on static page

 *  Resolved [bettyhills](https://wordpress.org/support/users/bettyhills/)
 * (@bettyhills)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/plugin-not-working-with-shortcode-on-static-page/)
 * Thank you for your time and generosity offering the plugin. I am desperate to
   get it to work — likely “user error.”
    I am using WordPress twentytwelve child
   theme. I want a static page to show the cactus-masonry to array images of posts
   of three categories only. To achieve this, I used a **front page template** titled**
   Pastimes** (no sidebar) with minimal text at the top, and inserted this shortcode
   below the text. ‘[cactus-masonry masonry=”true” show_pages=”false” show_posts
   =”true” post_category=”reading, serging, sewing” link_location=”post” open_in_new_windows
   =”true” post_orderby=”date” post_order=”DESC” default_image_id=”false” quality
   =”medium” display_post_titles=”true” width=”33.33%” infinite_scroll=”true” horizontal_spacing
   =”20″ vertical_spacing=”20″ hover_intensity=”1″ require_javascript=”true” javascript_error_message
   =”text”]’ I created a first post with an image but it does not feed to the plugin.
   Nothing happens. The URL is [Graces](http://www.hailsangels.us/graces) What am
   I doing wrong? Thank you for any help.
 * [https://wordpress.org/plugins/masonry-post-gallery/](https://wordpress.org/plugins/masonry-post-gallery/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [bettyhills](https://wordpress.org/support/users/bettyhills/)
 * (@bettyhills)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/plugin-not-working-with-shortcode-on-static-page/#post-6902756)
 * Still trying to figure this out, I found in another posting with a similar problem.
   The solution mentioned enqueuing jquery. That is WAY above my pay grade, but 
   I did my best to research the topic.
 * Jquery appears nowhere in twentytwelve or twentytwelvechild functions.php. If
   inserting code referencing it is the answer, I do not know the correct syntax.
   I DID find some code for **Owl Carousel**, another plugin, that may be a clue
   to what is missing in my **Cactus-Masonry** installation. Should I be adding 
   something like this to the functions.php (referencing **Cactus-Masonry** files
   where applicable)? Here is the code:
    ‘// in functions.php
 * add_action( ‘wp_enqueue_scripts’, ‘bboyjuss_load_javascript_conditionally’ );
 * function bboyjuss_load_javascript_conditionally() {
    wp_register_script( ‘owl-
   script’, get_stylesheet_directory_uri() . ‘/js/owl-carousel/owl.carousel.min.
   js’, array(‘jquery’), false, true ); wp_enqueue_script( ‘owl-script’ );
 *  wp_register_style(‘owl-style-carousel’, get_stylesheet_directory_uri() . ‘/js/
   owl-carousel/owl.carousel.css.’);
    wp_enqueue_style(‘owl-style-carousel’);
 *  wp_register_style(‘owl-style-theme’, get_stylesheet_directory_uri() . ‘/js/owl-
   carousel/owl.theme.css.’);
    wp_enqueue_style(‘owl-style-theme’);
 *  wp_register_style(‘owl-style-transition’, get_stylesheet_directory_uri() . ‘/
   js/owl-carousel/owl.transitions.css.’);
    wp_enqueue_style(‘owl-style-transition’);}’
   I will be very grateful for any help getting the **Cactus-Masonry** image array
   to work for posts that fall into the three filtered categories. Thanks.
 *  Plugin Author [cactus.cloud](https://wordpress.org/support/users/bortpress/)
 * (@bortpress)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/plugin-not-working-with-shortcode-on-static-page/#post-6902763)
 * Hi bettyhills,
 * The solution _may_ not be too complicated. Just so I understand the problem better,
   may I ask some questions?
 * So, you are trying to show the gallery on your from page – not a normal page –
   but one generated by your theme, right? Does it have to be a theme generated 
   page, or is any page okay?
 * What is happening when you load the page? Does the shortcode appear unaltered,
   do images appear, or does nothing at all happen?
 * Also, have you tried just `[cactus-masonry]` with no parameters? Does that display?
 * Finally, I cannot see which page on your site has the shortcode. There is no 
   evidence of it running or being asked to run. If I can see it run I may be able
   to identify any errors which turn up. You can also see JavaScript errors yourself
   by opening the code inspector for your browser and by refreshing the page.
 * Cheers
 *  Thread Starter [bettyhills](https://wordpress.org/support/users/bettyhills/)
 * (@bettyhills)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/plugin-not-working-with-shortcode-on-static-page/#post-6902838)
 * Thank you so much for responding.
 * On the [**Graces**](http://http://www.hailsangels.us/graces/) site, I am trying
   to show the gallery on the page called [PASTIMES](http://http://www.hailsangels.us/graces/pastimes).
   I am new to WordPress, and as far as I know it is a normal page that I created
   using the front page template because I wanted it to be a full page across without
   a sidebar and I wanted a small amount of text at the top before the **Cactus-
   Masonry** gallery displayed an array of images from posts of specific categories
   only beneath the text on the same page.
 * Instead, the first sample post with image that I created is appearing on the 
   HOME page. I figure that I will deal with that later.
 * I do not believe the page is theme-generated. Any page will do for the gallery.
   If we can get it working on any page, I will be thrilled. I can move pages around
   later on.
 * If you go to the page [**PASTIMES**](http://http://www.hailsangels.us/graces/pastimes)
   where the shortcode resides, you will see that nothing happens. The shortcode
   does not appear. The images do not appear.
 * At your suggestion, I tried **[cactus-masonry]** with no parameters. It does 
   not display.
 * Thank you for directing me to the code inspector. I ran it as you suggested on
   PASTIMES. It showed the Cactus-Masonry plugin on the page but I do not know enough
   to recognize whether the plugin is operating as it should. It did not look like
   it was reporting javascript errors.
 * Questions:
    Does Cactus-Masonry require a lightbox plugin installation? Should
   my functions.php file or something else on my site have a command line asking
   Cactus-Masonry to run?
 * Thank you for taking time to help me with this.
 *  Thread Starter [bettyhills](https://wordpress.org/support/users/bettyhills/)
 * (@bettyhills)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/plugin-not-working-with-shortcode-on-static-page/#post-6902869)
 * Bortpress, thank you. The **Cactus-Masonry** Gallery is working. The problem 
   indeed was _user error_. I did not select a “featured image” for my sample post
   thinking that it would change my site header image. Once I selected the featured
   image, it popped right into the Cactus-Masonry Gallery as it should.
 * Thank you for your swift response to my query and patient help. I am marking 
   the topic solved. Also, thank you for this WONDERFUL plugin. You are most generous.
 *  Plugin Author [cactus.cloud](https://wordpress.org/support/users/bortpress/)
 * (@bortpress)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/plugin-not-working-with-shortcode-on-static-page/#post-6902877)
 * Hey bettyhills,
 * I’m glad to hear that it all worked out. I’m happy to help, although it sounds
   like you solved this one yourself. Feel free to get in touch if you have any 
   more questions.
 * Cheers

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Plugin not working with shortcode on static page’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/masonry-post-gallery.svg)
 * [Cactus Masonry Classic](https://wordpress.org/plugins/masonry-post-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/masonry-post-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/masonry-post-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/masonry-post-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/masonry-post-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/masonry-post-gallery/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [cactus.cloud](https://wordpress.org/support/users/bortpress/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/plugin-not-working-with-shortcode-on-static-page/#post-6902877)
 * Status: resolved