Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #23357

    Hello Kriesi team,

    I would like to know how and where can I edit the Portfolio Sortable menu in order to move it from the top of the page to the end of the home page, below the Portfolio Thumbnails.

    Also, at the moment the Portfolio Items Thumbnails in the home page are organised alphabetically and I would like to know how can have my personal organisation. I would like to organise them freely but at least I would like to organise them from the oldest to the latest entry.

    Thank you very much for your attention!

    Alex.

    #119494

    1) You can use http://wordpress.org/extend/plugins/post-types-order/ to order the portfolio items.

    2) Open up wp-contentthemesangularincludesloop-portfolio.php and cut:

    if(!isset($avia_config['portfolio_sorting']) || $avia_config['portfolio_sorting'] == 'yes')
    {
    if(!empty($categories[0]))
    {
    $output = "<div id='js_sort_items' >";

    $hide = "hidden";
    if (isset($categories[1])){ $hide = ""; }

    $output .= "<div class='sort_by_cat $hide '>";
    $output .= "<a href='#' data-filter='all_sort' class='all_sort_button active_sort'>".__('All','avia_framework')."</a>";

    foreach($categories as $category)
    {
    $output .= "<span class='text-sep ".$category->category_nicename."_sort_sep'>/</span><a href='#' data-filter='".$category->category_nicename."_sort' class='".$category->category_nicename."_sort_button' >".$category->cat_name."</a>";
    $container_id .= $category->term_id;
    }

    $output .= "</div>";

    $output .= "</div>";

    echo $output;
    }
    }

    Then insert it below following line:

    echo "</div>";	// end portfolio-sort-container

    #119495

    Hi Dude,

    I used the plugin (Post Types Order) and it worked pretty much awesomely. Question: Should I also cut the PHP you reference, and then insert it below the line beginning with “echo …” ?

    I ask, as the plugin works now, and I just want to make sure I’m all set as future elements get added. One read that I get from the post string above is that I should activate the plugin AND modify the PHP. Can you clarify? Thanks!

    #119496

    No, you don’t need to move the code. However the user above asked another question: ” would like to know how and where can I edit the Portfolio Sortable menu in order to move it from the top of the page to the end of the home page, below the Portfolio Thumbnails.” and 2) is the answer.

    #119497

    Excellent, and thanks. In that case, all set and good to go.

    #119498

    Hey!

    @liberato_alexandre – I hope the plugin helped you too?

    Regards,

    Peter

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

The topic ‘Portfolio Sortable & Portfolio Items’ is closed to new replies.