Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #20482

    on a page like http://www.kriesi.at/themes/corona/templates/portfolio-4-columns/

    Lets say that instead of portfolio items I am displaying posts from a category

    Each post has one tag like World or Event or Articles

    If I wanted to do like Huffington post for example and have a Tag before the Title so that the 4 columns would display

    (WORLD) A nice little Portfolio Slideshow….then next column (ARTICLE) Lorem ipsum Entry etc

    basically adding the tag of the post before the title…where would I modify this and any idea how I could add that tag?

    Is it in loop-portfolio? I have this where I think the modification needs to be made

    //$showcaption

    if(!isset($avia_config['remove_portfolio_text']))
    {
    echo '<div class="post-content">';
    echo "<h1 class='post-title'>";
    echo "<a href='".get_permalink()."' rel='bookmark' title='".__('Permanent Link:','avia_framework')." ".get_the_title()."'>".get_the_title()."</a>";
    echo "</h1>";

    echo '<div class="entry-content">';

    if($avia_config['portfolio_columns_iteration'] == 1)
    {
    echo '<span class="portfolio-categories minor-meta">';
    echo get_the_term_list( get_the_ID(), 'portfolio_entries', '<strong>'.__('Categories','avia_framework').': </strong><span>', '</span><span class="text-sep">/</span><span>','</span>');
    echo '</span>';

    }

    the_excerpt();
    echo '<a class="more-link" href="'. get_permalink().'">'.__('Read more &rarr;','avia_framework').'</a>';
    echo "</div>";
    echo "</div>";

    }

    is that the place?

    #107836

    Hi Monsoon,

    Yep, that would be the place. You could try using something like get_the_tags and then echoing out the tag. The codex has a sample function doing just that actually and then you can just put the if statement wherever you want the tag(s) displayed.

    See: http://codex.wordpress.org/Function_Reference/get_the_tags#Usage

    Regards,

    Devin

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

The topic ‘Adding Tag before title on Portolio page’ is closed to new replies.