Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #22156


    i added ACF custom fields il php code as you explained to me, in the portfolio. And it works, thanks.

    Now I would add a link in the portfolio overview, below my text, which should conduct to the portfolio single page and the rest of the text/description (what did the Read More balise in your theme)

    I add a link as this :

    echo Read More

    but what is the target (php file ?) to link directly and automatically with the portfolio single page corresponding to the current portfolio item ?





    Sorry, if I understood you correctly, what you need is line 114 of /includes/loop-portfolio.php In that line the function get_permalink() is used to retrieve the URL of the portfolio-item page,. Since you plan on using that. simply add code below to overwrite line 114

    $temp_url_portfolio_item = get_permalink();
    echo "<a href='".$temp_url_portfolio_item."' rel='bookmark' title='".__('Permanent Link:','avia_framework')." ".get_the_title()."'>".get_the_title()."</a>";

    and now you should have the url in the $temp_url_portfolio_item variable. so when you need to echo it out on the next few lines (i guess) just echo $temp_url_portfolio_item;




    thanks nick, i will try it !



    echo it out like

    echo '<a href="'.$temp_url_portfolio_item.'">read more</a>';



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

The topic ‘ACF & Portfolio – 2’ is closed to new replies.