Homepage portfolio link back goes to 404

resolved (3 posts) (2 voices)

  1. traffography
    Member

    I have created a portfolio at ....../portfolio/corporate-hire/ which displays on my homepage using [portfolio_grid cat="packages" column="3"  fancy_layout="true"], however when I use the read more button it links to .....portfolio/corporate-hire/gallery/ but the gallery folder does not exist and I have spent hours trying to fathom it out.

    Your comments would be gratefully received.

    Regards

    Simon.

    P.S. The best theme I have ever come across and worth even penny!!!!

    Posted 6 months ago #
  2. Elliott
    Support

    Hello traffography,

    That's just a variable added to the end, it doesn't effect the permalink. You can take it off in /wp-content/themes/[your_theme]/lib/shortcodes/15-portfolio.php and comment out or delete lines 203 - 207,

    if( $wp_rewrite->using_permalinks() ) :
    	$url = home_url( '/' ) . 'portfolio/' . $post->post_name . '/gallery/' . $gallery_post . '/';
    else :
    	$url = htmlspecialchars( add_query_arg( array( 'gallery' => $gallery_post ), get_permalink( $id )) );
    endif;
    Posted 6 months ago #
  3. traffography
    Member

    Hi Elliott,

    Commenting out had the consequence of messing up the image display on the homepage, however I just deleted the '/gallery/' . and that did the trick

    Cheers

    Simon

    Posted 6 months ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme