Gallery redirect url

Tagged: ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #10404
    Jalisojaliso
    Member

    Hello
    Is possible to have a redirect url in a gallery or portfolio item?
    I want to have a gallery page where images links to shop categories

    Thanks
    Javier

    #10426
    VeenaVeena
    Moderator

    We will get back to you shortly.

    #10498
    VeenaVeena
    Moderator

    Sorry for the delayed response.
    Kindly follow the steps —
    1.Pls modify file custom-post-types.php (framework/presentation/custom-post-types.php) line no:255 to –

    'supports' => array('title', 'thumbnail', 'excerpt', 'custom-fields')
    

    2.In the gallery Edit page enter a custom field named mo_url to the name field and give the desired link to the value field.
    3. Insert following code in thumbnail-functions.php (framework/functions/thumbnail-functions.php)line no:114

    $gallery_url = get_post_meta(get_the_ID(), 'mo_link', true);
    

    Also modify line no:132 to –

    $image_info .= '

    ' . $post_title . '

    ';
    Attachments:
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Agile Theme Support’ is closed to new topics and replies.