Title: launchinteractive's Replies - page 37 | WordPress.org

---

# launchinteractive

  [  ](https://wordpress.org/support/users/launchinteractive/)

 *   [Profile](https://wordpress.org/support/users/launchinteractive/)
 *   [Topics Started](https://wordpress.org/support/users/launchinteractive/topics/)
 *   [Replies Created](https://wordpress.org/support/users/launchinteractive/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/launchinteractive/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/launchinteractive/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/launchinteractive/engagements/)
 *   [Favorites](https://wordpress.org/support/users/launchinteractive/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 541 through 555 (of 556 total)

[←](https://wordpress.org/support/users/launchinteractive/replies/page/36/?output_format=md)
[1](https://wordpress.org/support/users/launchinteractive/replies/?output_format=md)
[2](https://wordpress.org/support/users/launchinteractive/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/launchinteractive/replies/page/3/?output_format=md)…
[36](https://wordpress.org/support/users/launchinteractive/replies/page/36/?output_format=md)
37 [38](https://wordpress.org/support/users/launchinteractive/replies/page/38/?output_format=md)
[→](https://wordpress.org/support/users/launchinteractive/replies/page/38/?output_format=md)

 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[Merge + Minify + Refresh] Looking good](https://wordpress.org/support/topic/looking-good-11/)
 *  Plugin Author [launchinteractive](https://wordpress.org/support/users/launchinteractive/)
 * (@launchinteractive)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/looking-good-11/#post-7956471)
 * We’ve got some other sites that don’t support exec too. We are investigating 
   some alternatives that we might roll in as replacements or fallbacks. Thanks 
   for the review!
 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[Merge + Minify + Refresh] Excellent and lightweight plugin](https://wordpress.org/support/topic/excellent-and-lightweight-plugin/)
 *  Plugin Author [launchinteractive](https://wordpress.org/support/users/launchinteractive/)
 * (@launchinteractive)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/excellent-and-lightweight-plugin/#post-7956015)
 * Thanks for the review!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [How to update plugin Homepage URL](https://wordpress.org/support/topic/how-to-update-plugin-homepage-url/)
 *  Thread Starter [launchinteractive](https://wordpress.org/support/users/launchinteractive/)
 * (@launchinteractive)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/how-to-update-plugin-homepage-url/#post-6024473)
 * I found it. I just need to change the plugin URI in the plugin comments
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FooGallery Photo Gallery : Image, Video & Masonry Galleries] Albums not working](https://wordpress.org/support/topic/albums-not-working-1/)
 *  Thread Starter [launchinteractive](https://wordpress.org/support/users/launchinteractive/)
 * (@launchinteractive)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/albums-not-working-1/page/3/#post-5673664)
 * I submitted a patch that has been merged. My solution was very similar..
 * `$url = untrailingslashit( untrailingslashit( get_permalink() ) . '/' . $slug.'/'.
   $gallery->slug );`
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FooGallery Photo Gallery : Image, Video & Masonry Galleries] Albums not working](https://wordpress.org/support/topic/albums-not-working-1/)
 *  Thread Starter [launchinteractive](https://wordpress.org/support/users/launchinteractive/)
 * (@launchinteractive)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/albums-not-working-1/page/2/#post-5673627)
 * Hi. If your using the current version modify the foogallery_album_build_gallery_link
   function in this file: /wp-content/plugins/foogallery/extensions/albums/functions.
   php
 * so that it looks like this…
 *     ```
       function foogallery_album_build_gallery_link( $gallery ) {
       	return apply_filters( 'foogallery_album_build_gallery_link', $_SERVER['REQUEST_URI'] . '/gallery/' . $gallery->slug );
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Relative URL] Breaks CDN scripts](https://wordpress.org/support/topic/breaks-cdn-scripts/)
 *  [launchinteractive](https://wordpress.org/support/users/launchinteractive/)
 * (@launchinteractive)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/breaks-cdn-scripts/#post-4581192)
 * Same issue and the fix works for me too. Why not update the plugin?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FooGallery Photo Gallery : Image, Video & Masonry Galleries] Albums not working](https://wordpress.org/support/topic/albums-not-working-1/)
 *  Thread Starter [launchinteractive](https://wordpress.org/support/users/launchinteractive/)
 * (@launchinteractive)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/albums-not-working-1/#post-5673608)
 * ok, I’ve finally worked out whats going on. The gallery page existed all along
   but the link from the album was wrong. The reason is my permalink structure. 
   I like to have my permalinks without the trailing slash.
 * To solve this I’ve made this change:
 *     ```
       if ( 'default' === $format ) {
       		$url = untrailingslashit($_SERVER['REQUEST_URI']) .'/'. $slug . '/' . $gallery->slug;
       	} else {
       		$url = add_query_arg( $slug, $gallery->slug );
       	}
       ```
   
 * This works for permalinks with and without the slash as well as pages with parents.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FooGallery Photo Gallery : Image, Video & Masonry Galleries] Albums not working](https://wordpress.org/support/topic/albums-not-working-1/)
 *  Thread Starter [launchinteractive](https://wordpress.org/support/users/launchinteractive/)
 * (@launchinteractive)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/albums-not-working-1/#post-5673606)
 * hmm, do you have an example of what the rewrite rules in the htaccess should 
   be so I can compare with mine?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FooGallery Photo Gallery : Image, Video & Masonry Galleries] Albums not working](https://wordpress.org/support/topic/albums-not-working-1/)
 *  Thread Starter [launchinteractive](https://wordpress.org/support/users/launchinteractive/)
 * (@launchinteractive)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/albums-not-working-1/#post-5673589)
 * Thanks, thats now working here [https://schoolprideaccessories.com.au/album-test](https://schoolprideaccessories.com.au/album-test)
   without pretty urls. Any idea why the pretty urls aren’t working?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FooGallery Photo Gallery : Image, Video & Masonry Galleries] Albums not working](https://wordpress.org/support/topic/albums-not-working-1/)
 *  Thread Starter [launchinteractive](https://wordpress.org/support/users/launchinteractive/)
 * (@launchinteractive)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/albums-not-working-1/#post-5673482)
 * should there be more rewrite rules here?
 * [https://github.com/fooplugins/foogallery/blob/master/extensions/albums/public/class-rewrite-rules.php](https://github.com/fooplugins/foogallery/blob/master/extensions/albums/public/class-rewrite-rules.php)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FooGallery Photo Gallery : Image, Video & Masonry Galleries] Albums not working](https://wordpress.org/support/topic/albums-not-working-1/)
 *  Thread Starter [launchinteractive](https://wordpress.org/support/users/launchinteractive/)
 * (@launchinteractive)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/albums-not-working-1/#post-5673457)
 * That plugin description says not to bother as it does the same as saving the 
   permalinks which I’ve already tried. Do you still want me to install it?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FooGallery Photo Gallery : Image, Video & Masonry Galleries] Albums not working](https://wordpress.org/support/topic/albums-not-working-1/)
 *  Thread Starter [launchinteractive](https://wordpress.org/support/users/launchinteractive/)
 * (@launchinteractive)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/albums-not-working-1/#post-5673365)
 * Yeah, its currently offline atm. I’ve also tried it on a live site: [http://poboxdesigns.com.au/test](http://poboxdesigns.com.au/test)
   
   This site is also bringing up a 404.
 * Permalink structure is: /%category%/%postname%
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FooGallery Photo Gallery : Image, Video & Masonry Galleries] Albums not working](https://wordpress.org/support/topic/albums-not-working-1/)
 *  Thread Starter [launchinteractive](https://wordpress.org/support/users/launchinteractive/)
 * (@launchinteractive)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/albums-not-working-1/#post-5673213)
 * Its currently on my dev server: [http://demo.launchinteractive.com.au:8007/cool-stuff](http://demo.launchinteractive.com.au:8007/cool-stuff)
 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[Publish View] Really nice plugin](https://wordpress.org/support/topic/really-nice-plugin-26/)
 *  Plugin Author [launchinteractive](https://wordpress.org/support/users/launchinteractive/)
 * (@launchinteractive)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/really-nice-plugin-26/#post-7851290)
 * Thanks for the feedback! I’m glad you like it.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Force page for non found CPT taxonomy](https://wordpress.org/support/topic/force-page-for-non-found-cpt-taxonomy/)
 *  Thread Starter [launchinteractive](https://wordpress.org/support/users/launchinteractive/)
 * (@launchinteractive)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/force-page-for-non-found-cpt-taxonomy/#post-4932519)
 * I’ve managed to get this working hooking into the pre_get_posts action…
 *     ```
       //load page when publication term doesn't exist
       function publications_page($query) {
   
           global $wp_query;
   
           if ( !$query->is_main_query() )
               return; 
   
       		if(is_tax() && isset($wp_query->query['publication']) && !term_exists($wp_query->query['publication'])) {
   
       			$page = get_page_by_path($_SERVER['REQUEST_URI'] );
   
       			if($page != NULL) {
       			  $wp_query = new WP_Query(array(
       			      'post_type' => 'page',
       			      'page_id' => $page->ID
       			  ));
       			}
   
       		}
   
       }
       add_action('pre_get_posts','publications_page');
       ```
   

Viewing 15 replies - 541 through 555 (of 556 total)

[←](https://wordpress.org/support/users/launchinteractive/replies/page/36/?output_format=md)
[1](https://wordpress.org/support/users/launchinteractive/replies/?output_format=md)
[2](https://wordpress.org/support/users/launchinteractive/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/launchinteractive/replies/page/3/?output_format=md)…
[36](https://wordpress.org/support/users/launchinteractive/replies/page/36/?output_format=md)
37 [38](https://wordpress.org/support/users/launchinteractive/replies/page/38/?output_format=md)
[→](https://wordpress.org/support/users/launchinteractive/replies/page/38/?output_format=md)