WordPress.org

Forums

Portfolio by BestWebSoft
[resolved] Portfolio Info > Link (4 posts)

  1. Hartsy
    Member
    Posted 2 years ago #

    I have added 6 portfolio items 3 are "print" technologies and 3 are "web" technologies. I broke them up this way to be able to sort by type of work. In the settings I have the 'short description' and 'link' checked to display additional fields.

    My question- I would like to only display the fields that I want per portfolio piece. i.e. I don't need a link to display if it is a 'print' portfolio item. Is there a way to parse by technology type? I could just put N/A in the link field for my 'print' pieces but would like to uncheck link from displaying on those pieces but let them display for the 'web' pieces.

    An easier fix would be to let me just click the fancy box image and href to the website for my 'web' pieces but I read on your site you don't have a way to do that.

    Any help would be appreciated. Oh and I need this by Sat. LOL!

    http://wordpress.org/extend/plugins/portfolio/

  2. bestwebsoft
    Member
    Plugin Author

    Posted 2 years ago #

    Hello,

    If you need to put N/A into URL then write N/A in the URL's field on the portfolio editing page. If you need URL then write URL.

    Best regards,
    Oksana

  3. Hartsy
    Member
    Posted 2 years ago #

    Actually I figured out a way with php. Sorry I was tired when I wrote that so I think I misled what I was trying to do. I needed to show the fancybox class for technologies labeled as "print" but open the URL for those labeled as "web" - The answer was a if statement checking if the $link variable was true or not then treating the h ref without the fancybox class... Hope this helps others.

    Under portfolio.php file (around line 62)
    <div class="portfolio_thumb">
    <?php if ( $link == true ) { ?>
    " title="<?php echo $image_desc; ?>">
    <img src="<?php echo $image[0]; ?>" width="<?php echo $image[1]; ?>" alt="<?php echo $image_alt; ?>" />
    }
    <?php } else { ?>
    " title="<?php echo $image_desc; ?>">
    <img src="<?php echo $image[0]; ?>" width="<?php echo $image[1]; ?>" alt="<?php echo $image_alt; ?>" />

    <?php } ?>
    </div>

  4. bestwebsoft
    Member
    Plugin Author

    Posted 2 years ago #

    We are glad to know that you solved this issue.

    Sincerely,
    Oksana

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Portfolio by BestWebSoft
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.