Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #2102

    Hello i been attempting to add a button on the portfolio next to the Read more, what i want this to do is be able to have a custom field in the portfolio where i put the url to the project and people can click on the button. This is what i have so far.

    In the template_portfolio.php

    echo ““.__(‘Read more’,’avisio’).”“;

    echo ““.__(‘Visit Site’,’avisio’).”“;

    In the meta_box.php

    $options = array();

    $boxinfo = array(‘title’ => ‘Visit Site’, ‘id’=>’extra_option’, ‘page’=>array(‘post’,’page’,’portfolio’), ‘context’=>’side’, ‘priority’=>’low’, ‘callback’=>”);

    $options[] = array( “name” => “URL“,

    “desc” => “”,

    “id” => “_visitsite”,

    “std” => “”,

    “size” => 31,

    “type” => “text”);

    $new_box = new kriesi_meta_box($options, $boxinfo);

    what i cant figure out is how to echo the content in the portfolio page.


    thanks in advance. and by the way awesome theme this is. ^ ^



    get_post_meta($post->ID, '_visitsite', true)

    so i.e.

    <a href="<?php get_post_meta($post->ID, '_visitsite', true); ?>"> My link</a>


    thank you so much, it work

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Visit Site Link in Portfolio’ is closed to new replies.