Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #7065

    Hi,

    I have set on the portfolio items link to the image as Link to the page.

    But it doesn’t work in the widget Latest portfolio. Is there any simple way how to solve it?

    #56457

    please…

    #56458

    Hi,

    excuse me for the delay. Could you link to your page and specify which items you’re talking about? This way I can provide specific information.

    #56459

    http://www.kosmetikald.cz/wp/?page_id=566

    The right sidebar-widget Last portfolio – (Fytoterapie etc.) – portfolio items have the featured picture linked to the page (I don’t want “link to this post” ),

    It can be seen on

    http://www.kosmetikald.cz/wp/

    #56460

    Try following – in coronaframeworkphpclass-framework-widgets.php replace:

    echo "<a class='news-link' title='".get_the_title()."' href='".get_permalink()."'>";

    with:

    if ($slides[0]['slideshow_link'] == 'url'){
    echo "<a class='news-link' title='".get_the_title()."' href='".slides[0]['slideshow_link_url']."'>";
    }else{
    echo "<a class='news-link' title='".get_the_title()."' href='".get_permalink()."'>";
    }

    #56461

    Hi

    Thanks for your reply…but it isn’t url, but the page.

    So I’ve changed the code to:

    if ($slides[0]['slideshow_link'] == 'page'){
    echo "<a class='news-link' title='".get_the_title()."' href='".get_page_link($slides[0]['slideshow_link_page'])."'>";
    }else{
    echo "<a class='news-link' title='".get_the_title()."' href='".get_permalink()."'>";

    it wasn’t easy to find it, but now it works…

    #56462

    Glad that it works now :)

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

The topic ‘portfolio item-link to the page’ is closed to new replies.