Title: Custom Gallery Page
Last modified: August 21, 2016

---

# Custom Gallery Page

 *  Resolved [rootseire2014](https://wordpress.org/support/users/rootseire2014/)
 * (@rootseire2014)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/custom-gallery-page/)
 * Hi,
 *  I have just installed and customised image store for a client, and it is working
   great. At the moment, on one page, I have hacked the code so that it shows the
   slideshow for each gallery, and I have made some changes to it without any problem.
 * On another page, I want to link to this when mobile users access the site, so
   that they are taken to links with the lightbox. I have been able to setup the
   page and add in the image store module, but, I am trying to set it up so that
   the slideshow links are not showing. In store.php I am using the following code:
 *     ```
       if($slideshow!='off'){
       		$output .= '<a data-id="' . $enc . '" href="'. $link . 'slideshow" class="url fn item-url" title="' . esc_attr( $data['title'] ) . '" rel="bookmark">';
       		}else{
       		$output .= '<a data-id="' . $enc . '" href="'. $link . '" class="url fn item-url" title="' . esc_attr( $data['title'] ) . '" rel="bookmark">';
       		}
       ```
   
 * Here I am trying to get the PHP code to pull in the variable $slideshow which
   is posted on the wordpress page. I have tried to use the “insert php” plugin,
   but the store.php page is not accessing the variable.
 * Is there any way that I can pass a variable either on the worpress page, or in
   the code in store.php, which will recognise that that page is for mobile?
 * Thank you in advance,
    Pat
 * [https://wordpress.org/plugins/wordpress-popular-posts/](https://wordpress.org/plugins/wordpress-popular-posts/)

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

 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/custom-gallery-page/#post-5016258)
 * Hi Pat,
 * Are you sure you posted at the right place? How is that related to the WordPress
   Popular Posts plugin?
 *  Thread Starter [rootseire2014](https://wordpress.org/support/users/rootseire2014/)
 * (@rootseire2014)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/custom-gallery-page/#post-5016388)
 * Oops thanks for that! Just reposted…

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

The topic ‘Custom Gallery Page’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-popular-posts/assets/icon-256x256.png?rev=1232659)
 * [WP Popular Posts](https://wordpress.org/plugins/wordpress-popular-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-popular-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-popular-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-popular-posts/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [rootseire2014](https://wordpress.org/support/users/rootseire2014/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/custom-gallery-page/#post-5016388)
 * Status: resolved