Link to Portfolio Page – Blog Post

Support Forums for LiveMesh Themes & Plugins Forums Extinct Theme Support Link to Portfolio Page – Blog Post

Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #5283
    nbond
    Member

    Hi,

    Is there any way to link from the portfolio image on the filter landing to a blog post instead of linking to the portfolio detail page?

    Thanks!

    Nicolette

    #5290
    Ernesto
    Member

    Hi,
    In the Edit Portfolio Item screen you need to create a Custom Field with the name “custom_url” and the value of your desired URL.

    Then, go to the theme folder and open the file framework/functions/thumbnail-functions.
    There, look for the following code $post_link = get_permalink($post_id); and replace it with: $post_link = get_post_meta($post_id, 'custom_url');

    #5333
    nbond
    Member
    This reply has been marked as private.
    #5362
    Ernesto
    Member

    Hi,
    Sorry for the mistake, this is the correct code.

    $post_link = get_post_meta($post_id, 'custom_url', true);

    Cheers!

    #5376
    nbond
    Member

    Worked perfect – thank you!!!!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Link to Portfolio Page – Blog Post’ is closed to new replies.