page link

HomeSupportImage Storepage link

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #52066
    karlc
    Participant

    Hi, this is great

     

    function ims_change_album_gallery_link( $permalink, $post ){

    if( empty( $post->post_type ) || $post->post_type != ‘ims_gallery’|| is_singular(‘ims_gallery’))

    return $permalink;

     

    global $wp_rewrite;

    if( $wp_rewrite->using_permalinks() )

    return $permalink . “slideshow/”;

    else  return $permalink . “&imspage=/slideshow”;

     

    }add_filter( ‘post_type_link’, ‘ims_change_album_gallery_link’, 50, 2 );

     

    But, is there a way to link directly into the gallery/slideshow, as opposed to landing on a thumbnail link in?

    #52071
    Xpark Media
    Keymaster

    You can deactivate the “photo” page under settings > general.

    If you still want to have the photos page and land on the slideshow you will have to implement a hook to change the main link.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.